PowerShell – Telegram
PowerShell
820 subscribers
214 photos
4 videos
1 file
802 links
Task automation and configuration management framework #PowerShell
Download Telegram
Nightmare Fuel with I am Jakoby
By: The Powershell Podcast

In this episode, we talk with ethical hacker I am Jakoby who gives us insights into the many ways someone can get access to your systems. We talked about how he started his journey into ethical hacking, and the support he got when he submitted for hak5.
Link
👍1
Today's cmdlet ‣ New-Service
Creates a new Windows service.

Example's Remarks:
• This command uses `Get-CimInstance` to get the Win32_Service object for the new service.
• This object includes the start mode and the service denoscription.

#tutorial
👍2
Today's tip ‣ Basic concepts: Scopes

”Unless dot source notation is used, each of the following creates a new scope:
- A noscript file
- A noscript block
- A function or filter”

#tip
CodeConversion
By: Ironman Software, LLC

Orginally a feature of PowerShell Pro Tools, this module provides the ability to convert between C# and PowerShell. No license required.
Link
👍2
Today's cmdlet ‣ Disable-PSBreakpoint
Disables the breakpoints in the current console.

Example's Remarks:
• The `Set-PSBreakpoint` cmdlet creates a breakpoint on the `$Name` variable in the `Sample.ps1` noscript and saves the breakpoint object in the `$B` variable.
• The `Disable-PSBreakpoint` cmdlet disables the new breakpoint.
• It uses a pipeline operator (`|`) to send the breakpoint object in `$B` to the `Disable-PSBreakpoint` cmdlet.

#tutorial
Convert to and from Windows and Unix timestamps with PowerShell
By: Darren Robinson

In this post I detail a module I've just published that is another of those I've done this before, but how do I find it again moments. Converting from Windows and Unix timestamps with PowerShell.
Link
Lessons Learned from Using Azure Automation with PowerShell Scripts
By: Tony Redmond

I've spent some time investigating Azure Automation PowerShell recently. In this article, I discuss three learnings that might be of interest to others. Debugging, cost, and tracking the use of Azure Automation PowerShell might not interest everyone, but they've certainly helped me to understand how the platform works.
Link
Write great AWS Lambda PowerShell functions
By: Alex Neihaus

In this post, I share some tips I use when I write AWS Lambda PowerShell functions. You can find lots of help writing .Net end user functions for Lambda. By end user, I mean things that are part of an application system, like kicking off Glue jobs, working with Redshift and so on.
Link
Today's cmdlet ‣ Remove-Item
Deletes the specified items.

Example's Remarks:
• In the `Get-ChildItem` command, Path has a value of (`*`), which represents the contents of the current folder.
• It uses Include to specify the CSV file type, and it uses Recurse to make the retrieval recursive.
• If you try to specify the file type the path, such as `-Path *.csv`, the cmdlet interprets the subject of the search to be a file that has no child items, and Recurse fails.

#tutorial
👍1
Invoke-AKSH and easily manage your local lab
By: Uday Mittal

Having worked on AKSH (my Discord bot) and witnessing how easy it made deploying and managing a lab on AWS, I wanted something similar for my local lab as well. On my local machines I use VMWare Workstation to create and manage virtual labs. Even though it has an intuitive GUI, it lacks a mechanism to perform actions (start, stop, snapshot, revert etc.) on multiple virtual machines via single click (maybe that's where vSphere comes in!). However, to compensate for that, it exposes a command line interface (vmrun.exe) that can aid in automating actions on multiple virtual machines.
Link
Hackers use new stealthy PowerShell backdoor to target 60+ victims
By: Bill Toulas

A previously undocumented, fully undetectable PowerShell backdoor is being actively used by a threat actor who has targeted at least 69 entities.
Link
Reporting Teams Channel Email Addresses
By: Tony Redmond

No Microsoft 365 admin portal will tell you about the set of email addresses assigned to Teams channels. Fortunately, it's relatively easy to create a report with PowerShell and just a little Graph magic.
Link
5 Ways to install PowerShell 7 on Windows
By: Patrick Gruenauer

PowerShell 7 is the successor to PowerShell 5.1. It's fast, reliable and it is cross-platform. Without a doubt, PowerShell 7 is the future.
Link
👍1
Using PowerShell to Manage Azure AD Custom Security Attributes
By: Tony Redmond

Azure AD custom security attributes can mark user and service principal objects for special processing, which is how the app filter for conditional access policies works. It's nice to be able to interact with data through PowerShell and the Microsoft Graph PowerShell SDK cmdlets support setting, updating, and retrieval of Azure AD custom security attributes. Everything works, but it's a pity that it's a little clunky.
Link
Optimizing Visual Studio Code for Powershell Development by Justin Grote – YouTube
By: Justin Grote

I’ve used VSCode as my primary Powershell environment for over 3 years and have tried a lot of extensions and settings, and now is your turn to learn from my experience! Here are some examples of items we will cover:
Link
👍1
Today's cmdlet ‣ Get-WinEvent
Gets events from event logs and event tracing log files on local and remote computers.

Example's Remarks:
• The `Get-WinEvent` cmdlet gets log information from the computer.
• The ListProvider parameter specifies the provider, Microsoft-Windows-GroupPolicy .
• The expression is wrapped in parentheses and uses the Events property to get objects.
• The objects are sent down the pipeline to the `Format-Table` cmdlet.
• `Format-Table` displays the Id and Denoscription of the event objects.

#tutorial
Introduction to the Microsoft Graph PowerShell SDK Part II: Performing Common User and Group Operations
By: Sean McAvinue

This article dives deep into using the SDK to perform common day-to-day tasks to manage users and groups through the Graph. Be on the look out for the next part of this series!
Link
Today's tip ‣ Types: Value types

”The switch type is used to constrain the type of a parameter in a command. If an argument having the corresponding parameter name is present the parameter tests $true; otherwise, it tests `$false`. In PowerShell, `switch` maps to `System.Management.Automation.SwitchParameter`.”

#tip
How to Use Microsoft PowerShell Core on Linux Virtual Machines
By: Brien Posey

PowerShell was designed as a Windows management tool, but Microsoft has created cross-platform versions of PowerShell. That way, you can use a standard command line interface to manage a variety of system types. This article explains how to install PowerShell on a Linux virtual machine as well as the differences between PowerShell and PowerShell Core.
Link