❗ PowerShell v7.1.1 now released.
General Cmdlet Updates and Fixes
- Avoid an exception if file system does not support reparse points
- Make AppLocker Enforce mode take precedence over UMCI Audit mode
Code Cleanup
- Fix syntax error in Windows packaging noscript
Build and Packaging Improvements
General Cmdlet Updates and Fixes
- Avoid an exception if file system does not support reparse points
- Make AppLocker Enforce mode take precedence over UMCI Audit mode
Code Cleanup
- Fix syntax error in Windows packaging noscript
Build and Packaging Improvements
📌 Index accessors in PowerShell support multi-key access (read-only):
Same with dictionaries:
PS > @(1..5)[2,1]32Same with dictionaries:
PS> @{ A=1; B = 2; C = 3 }[-split 'A C']13💡 A Powershell Template For Creating The Perfect Function
Powershell Template
Comment Based Help
CmdletBinding and the Param Block
SupportsShouldProcess
Create Powershell Function Parameters
How To Use Alias
How To Use ValidateSet and ValidateRange
How To Use ValidateScript
How To Use ParameterSetName
Begin, Process And End Blocks
Begin and End Blocks
Process Block
https://thesysadminchannel.com/powershell-template/
Powershell Template
Comment Based Help
CmdletBinding and the Param Block
SupportsShouldProcess
Create Powershell Function Parameters
How To Use Alias
How To Use ValidateSet and ValidateRange
How To Use ValidateScript
How To Use ParameterSetName
Begin, Process And End Blocks
Begin and End Blocks
Process Block
https://thesysadminchannel.com/powershell-template/
the Sysadmin Channel
A Powershell Template For Creating The Perfect Function
Learn the ins and out of creating a function using the exact template I use for all my noscripts. This guide should get you from zero to hero with a little practice.
❗ Windows Terminal Preview 1.6 Release
- IN PREVIEW TODAY: Terminal now has an optional graphical settings editor! Until it's ready for prime time, it's hidden behind a NON-DEFAULT key binding.
- Terminal now supports "Startup Actions"
- Terminal 1.6 has gained experimental support for HLSL pixel shaders
- We've gained support for application progress reports on OSC 9;4
- Terminal has gained two new visual bell features
- The italic graphic rendition (SGR 3) is now supported
- Terminal has learned a new cursor style: double underscore
- Tabs can now be moved left/right with the keyboard with action binding moveTab
https://devblogs.microsoft.com/commandline/windows-terminal-preview-1-6-release/?WT.mc_id=WDIT-MVP-5002293
- IN PREVIEW TODAY: Terminal now has an optional graphical settings editor! Until it's ready for prime time, it's hidden behind a NON-DEFAULT key binding.
- Terminal now supports "Startup Actions"
- Terminal 1.6 has gained experimental support for HLSL pixel shaders
- We've gained support for application progress reports on OSC 9;4
- Terminal has gained two new visual bell features
- The italic graphic rendition (SGR 3) is now supported
- Terminal has learned a new cursor style: double underscore
- Tabs can now be moved left/right with the keyboard with action binding moveTab
https://devblogs.microsoft.com/commandline/windows-terminal-preview-1-6-release/?WT.mc_id=WDIT-MVP-5002293
Windows Command Line
Windows Terminal Preview 1.6 Release | Windows Command Line
Welcome to our first Windows Terminal release of 2021! This release brings new features to Windows Terminal Preview version 1.6 as well as moves Windows Terminal to version 1.5, which includes the features from this previous blog post. You can download both…
📦 Code coverage for PowerShell module development
We’re going to explore how to create code coverage metrics and automatically send the results to the service codecov.io
https://robstr.dev/code-coverage-PowerShell-module-development/
We’re going to explore how to create code coverage metrics and automatically send the results to the service codecov.io
https://robstr.dev/code-coverage-PowerShell-module-development/
Robstr - A cloud automators blog
Code coverage for PowerShell module development
Cloud architect working with Azure, DevOps, infrastructure automation, PowerShell and more! Open Source advocate, speaker and meetup organizer.
💡Reddit: I finished a noscript for work but I'm not comfortable showing it to others, what can I do to make it look professional?
🎁 The Ultimate Guide to Terminal User Interfaces in PowerShell
Why not...
https://blog.ironmansoftware.com/tui-powershell/
Why not...
https://blog.ironmansoftware.com/tui-powershell/
🎬 Notebooks in VS Code revamped. ToC, Diffing, Gather, LiveShare, and more.
https://www.youtube.com/watch?v=g5EykzAsCC0
https://www.youtube.com/watch?v=g5EykzAsCC0
YouTube
Notebooks in VS Code Are Getting Revamped!
We've revamped notebooks in VS Code! Come check out how the new notebook editor and complimentary features will improve your data science workflow.
https://marketplace.visualstudio.com/items?itemName=ms-python.python&WT.mc_id=devcloud-8766-cxa
https://…
https://marketplace.visualstudio.com/items?itemName=ms-python.python&WT.mc_id=devcloud-8766-cxa
https://…
📌 PowerCLI now supports parallel operations on PowerShell foreach-object commands!
Happy to inform you all that foreach-object -Parallel is now supported with PowerCLI. This can be achieved by 2 ways.
- Inline -Server parameter
- Use PowerCLI Context
More details in the announcement:
https://blogs.vmware.com/PowerCLI/2021/02/new-release-vmware-powercli-12-2.html
Happy to inform you all that foreach-object -Parallel is now supported with PowerCLI. This can be achieved by 2 ways.
- Inline -Server parameter
- Use PowerCLI Context
More details in the announcement:
https://blogs.vmware.com/PowerCLI/2021/02/new-release-vmware-powercli-12-2.html
📘 PowerShell Sleep Duration Accuracy and Windows Timers
TL;DR
When high accuracy is desired, change the timer resolution and use the
Long read with lot of details here:
https://xkln.net/blog/powershell-sleep-duration-accuracy-and-windows-timers/
TL;DR
When high accuracy is desired, change the timer resolution and use the
[System.Threading.Thread]::Sleep()Long read with lot of details here:
https://xkln.net/blog/powershell-sleep-duration-accuracy-and-windows-timers/
xkln.net
PowerShell Sleep Duration Accuracy and Windows Timers
I’ve previously written about different methods of pausing PowerShell noscript execution but it’s spread over several unrelated posts and it was never the core…
🎬 Thomas reacts to PowerShell Deep Dive
Take a serious look at Learning PowerShell with PowerShell, at Predictive IntelliSense, at the VS Code extensions, at Crescendo, and secret management with PowerShell
https://www.youtube.com/watch?v=kbhsUwGZxww
Take a serious look at Learning PowerShell with PowerShell, at Predictive IntelliSense, at the VS Code extensions, at Crescendo, and secret management with PowerShell
https://www.youtube.com/watch?v=kbhsUwGZxww
YouTube
Thomas reacts to PowerShell Deep Dive
Join the Livestream to see Thomas's reaction to the PowerShell Deep Dive session from the ITOps Talks All Things Hybrid event!
Let's watch, talk, and chat together!
We are going to watch the following session:
Pierre Roman, Joey Aiello (Senior Program Manager…
Let's watch, talk, and chat together!
We are going to watch the following session:
Pierre Roman, Joey Aiello (Senior Program Manager…
Starting from next week PSScriptAnalyzer will be pre-installed on all Windows and Mac images and Ubuntu 20.04 in Azure DevOps and GitHub Actions
https://github.com/actions/virtual-environments/issues/2659
https://github.com/actions/virtual-environments/issues/2659
GitHub
Add PSScriptAnalyzer Powershell module · Issue #2659 · actions/virtual-environments
Tool information Tool name: PSScriptAnalyzer Tool license: MIT Add or update? Add Desired version: Latest (1.19.1) Approximate size: 288 MB If this is an add request: Brief denoscription of tool: Pow...
This media is not supported in your browser
VIEW IN TELEGRAM
❗ Just add "1s" after "github" when viewing code on http://github.com and VS Code loads up instantly
💡 Proposal. Handling Parameter Binding in Native Executables
PowerShell team's making a change on how PowerShell7 passes arguments to native commands to work more predictably.
https://github.com/PowerShell/PowerShell/issues/14747
PowerShell team's making a change on how PowerShell7 passes arguments to native commands to work more predictably.
https://github.com/PowerShell/PowerShell/issues/14747
GitHub
PowerShell/PowerShell
PowerShell for every system! Contribute to PowerShell/PowerShell development by creating an account on GitHub.
Secrets Management in PowerShell with Sydney Smith
Richard chats with Sydney Smith who is the product manager for Secrets Management about how this PowerShell extension helps you access and manage multiple key stores in your organization and provides secrets for your PowerShell noscripts.