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
”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
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
GitHub
GitHub - ironmansoftware/code-conversion: Code conversion command line tool for PowerShell and C#
Code conversion command line tool for PowerShell and C# - ironmansoftware/code-conversion
👍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
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
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
darrenjrobinson - Bespoke Identity and Access Management Solutions
Convert to and from Windows and Unix timestamps with PowerShell - darrenjrobinson - Bespoke Identity and Access Management Solutions
A PowerShell module to convert to and from Windows and Unix timestamps from DateTime objects relative to local time or Universal Time (UTC)
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
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
Office 365 for IT Pros
3 Azure Automation PowerShell Learnings and Experiences
I've spent some time investigating Azure Automation PowerShell recently. In this article, I discuss three learnings that might be of interest to others.
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
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
Thinking aloud
Thinking aloud | Write great AWS Lambda PowerShell functions
How to write great Lambda functions in PowerShell
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
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
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
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
BleepingComputer
Hackers use new stealthy PowerShell backdoor to target 60+ victims
A previously undetected and undocumented PowerShell backdoor is being actively used by a threat actor who has targeted at least 69 entities.
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
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
Office 365 for IT Pros
How to Report Teams Channel Email Addesses
No administration portal reports Teams channel email addresses. However, it's relatively easy to create a report with PowerShell and just a little Graph magic.
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
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
SID-500.COM
5 Ways to install PowerShell 7 on Windows
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. You can install PowerShell 7 on Windows, Linux and …
👍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
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
Office 365 for IT Pros
Azure AD Custom Security Attributes PowerShell management
This article covers using PowerShell to manage Azure AD custom security attributes. including searching for objects assigned values in custom attributes.
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
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
YouTube
Optimizing Visual Studio Code for Powershell Development by Justin Grote
PowerShell Summit videos are recorded on a "best effort" basis. We use a room mic to capture as much room audio as possible, with an emphasis on capturing the speaker. Our recordings are made in a way that minimizes overhead for our speakers and interruptions…
👍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
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
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
Practical 365
Introduction to the Microsoft Graph PowerShell SDK Part II: Performing Common User and Group Operations
This article dives deep into using the SDK to perform common day-to-day tasks to manage users and groups through the Graph.
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
”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
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
TechGenix
How to Use Microsoft PowerShell Core on Linux Virtual Machines
Interested in learning how to run PowerShell on a Linux system? This article has all the answers.
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-Date` cmdlet uses the AddDays method to get a date that is seven days before the current date.
• The date object is stored in the `$StartTime` variable.
#tutorial
Gets events from event logs and event tracing log files on local and remote computers.
Example's Remarks:
• The `Get-Date` cmdlet uses the AddDays method to get a date that is seven days before the current date.
• The date object is stored in the `$StartTime` variable.
#tutorial
A WPF Countdown Timer
By: Jeffery Hicks
Last year I released a PowerShell module called PSClock. The module contains a command to create a transparent WPF form displaying a clock. Shortly after, someone posted a request for a countdown timer. Not an unreasonable request and one I finally got around to implementing.
Link
By: Jeffery Hicks
Last year I released a PowerShell module called PSClock. The module contains a command to create a transparent WPF form displaying a clock. Shortly after, someone posted a request for a countdown timer. Not an unreasonable request and one I finally got around to implementing.
Link
The Lonely Administrator
A WPF Countdown Timer • The Lonely Administrator
I've published an update to my PSTimers module with a new command that creates a WPF-based countdown timer. Great for presentations or classes.
🤮1