📌Essential Interfaces: IDisposable
https://blog.iisreset.me/essential-interfaces-idisposable/
IDisposable interface, what it's for, and how to use types that implement it in PowerShell.https://blog.iisreset.me/essential-interfaces-idisposable/
graceful is noforce
Essential Interfaces: IDisposable
Ever wondered how to correctly wrap IDisposable types in PowerShell classes? Here's a couple of hints!
📘 PowerShell Variable Scope Guide: Using Scope in Scripts and Modules.
PowerShell scope protects variables and other artifacts by limiting where they can be read and modified. Scope levels protect items that should not be changed.
https://www.varonis.com/blog/powershell-variable-scope/?utm_source=dlvr.it&utm_medium=twitter
PowerShell scope protects variables and other artifacts by limiting where they can be read and modified. Scope levels protect items that should not be changed.
https://www.varonis.com/blog/powershell-variable-scope/?utm_source=dlvr.it&utm_medium=twitter
Varonis
PowerShell Variable Scope Guide: Using Scope in Scripts and Modules
PowerShell variable scopes can cause confusion in writing noscripts and functions. This post will cover PowerShell scopes in relation to noscripts and modules.
❗ Announcing PSArm preview
PSArm is an experimental PowerShell module that provides a domain-specific language (DSL) embedded in PowerShell for Azure Resource Manager (ARM) templates, allowing you to use PowerShell to build ARM templates.
https://devblogs.microsoft.com/powershell/announcing-the-preview-of-psarm/
PSArm is an experimental PowerShell module that provides a domain-specific language (DSL) embedded in PowerShell for Azure Resource Manager (ARM) templates, allowing you to use PowerShell to build ARM templates.
https://devblogs.microsoft.com/powershell/announcing-the-preview-of-psarm/
PowerShell Team
Announcing the preview of PSArm
Announcing PSArm preview Today, we are pleased to announce the first preview of a new experimental module that make it easier than ever for PowerShell users to create Azure Resource Manager (ARM) templates: PSArm. This module enables existing PowerShell users…
📌 PowerShell File Checksum Integrity Verifier (PsFCIV) is now a separate package.
The module replaces and enhances discontinued Microsoft's File Checksum Integrity Verifier (FCIV) which is intended to monitor file share integrity.
https://www.pkisolutions.com/powershell-file-checksum-integrity-verifier-psfciv/
The module replaces and enhances discontinued Microsoft's File Checksum Integrity Verifier (FCIV) which is intended to monitor file share integrity.
https://www.pkisolutions.com/powershell-file-checksum-integrity-verifier-psfciv/
📘 Local PowerShell Module Repository, No Server Required
https://blog.devolutions.net/2021/03/local-powershell-module-repository-no-server-required
https://blog.devolutions.net/2021/03/local-powershell-module-repository-no-server-required
blog.devolutions.net
Local PowerShell Module Repository, No Server Required
Simple PowerShell noscripts can go a long way on their own, but they can go even further with PowerShell modules. The largest PowerShell repository is PSGallery, where one can find modules to get the jo...
📦 SecretManagement and SecretStore are Generally Available
Two modules are now generally available on the PowerShell Gallery:
- Microsoft.PowerShell.SecretManagement
- Microsoft.PowerShell.SecretStore
https://devblogs.microsoft.com/powershell/secretmanagement-and-secretstore-are-generally-available/
Two modules are now generally available on the PowerShell Gallery:
- Microsoft.PowerShell.SecretManagement
- Microsoft.PowerShell.SecretStore
https://devblogs.microsoft.com/powershell/secretmanagement-and-secretstore-are-generally-available/
Microsoft News
SecretManagement and SecretStore are Generally Available
We are excited to announce two modules are now generally available on the PowerShell Gallery: Microsoft.PowerShell.SecretManagement Microsoft.PowerShell.SecretStore To install the modules, open any PowerShell console and run: Install-Module Microsoft.Pow…
📦 A lightweight wrapper module for handling mutexes in PowerShell
The Mutex module is designed as a minimal wrapper around the .NET mutex functionality. It is designed to synchronize resource access across process boundaries within the same host.
Are plainly put, it is used to prevent access conflicts. For examples from writing to the same file.
https://github.com/friedrichweinmann/mutex
The Mutex module is designed as a minimal wrapper around the .NET mutex functionality. It is designed to synchronize resource access across process boundaries within the same host.
Are plainly put, it is used to prevent access conflicts. For examples from writing to the same file.
https://github.com/friedrichweinmann/mutex
GitHub
FriedrichWeinmann/Mutex
Contribute to FriedrichWeinmann/Mutex development by creating an account on GitHub.
📦 v7.2.0-preview.5 Release of PowerShell.
Breaking Changes
- Make PowerShell Linux deb and RPM packages universal
- Enforce AppLocker Deny configuration before Execution Policy Bypass configuration
- Disallow mixed dash and slash in command line parameter prefix
Experimental Features
-
Engine Updates and Fixes
General Cmdlet Updates and Fixes
Breaking Changes
- Make PowerShell Linux deb and RPM packages universal
- Enforce AppLocker Deny configuration before Execution Policy Bypass configuration
- Disallow mixed dash and slash in command line parameter prefix
Experimental Features
-
PSNativeCommandArgumentPassing: Use ArgumentList for native executable invocation (breaking change) Engine Updates and Fixes
General Cmdlet Updates and Fixes
📌 A PowerShell users' guide to regular expressions: part 1 and part 2 (of 3).
Even experts can be a little intimidated by reading through a noscript and meeting something like
So here is piece of good news - It won’t take much longer to understand that monster. Let’s start at the beginning.
https://jhoneill.github.io/powershell/2021/04/10/regex1.html
https://jhoneill.github.io/powershell/2021/04/11/regex2.html
Even experts can be a little intimidated by reading through a noscript and meeting something like
^\{?[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}\}?$So here is piece of good news - It won’t take much longer to understand that monster. Let’s start at the beginning.
https://jhoneill.github.io/powershell/2021/04/10/regex1.html
https://jhoneill.github.io/powershell/2021/04/11/regex2.html
jhoneill.github.io
A PowerShell users' guide to regular expressions: part 1 (of 3).
PowerShell (or PWSH if you prefer). Devops (especially Azure Devops), Photography, and general thoughts
🎬 PowerShell Testing with Pester 5
0:00 Intro
2:28 About Jakub Jares
3:15 Install Pester
4:46 Overview of Pester
13:32 Practical Example
34:38 Pester VSCode Extension
37:22 Debugging in VSCode with Pester
43:24 Practical Example
1:07:00 Test Drive
1:16:00 Other Features
1:34:00 VS Code Code Coverage
1:49:00 Q&A
https://www.youtube.com/watch?v=qeiy8fRMHf8
0:00 Intro
2:28 About Jakub Jares
3:15 Install Pester
4:46 Overview of Pester
13:32 Practical Example
34:38 Pester VSCode Extension
37:22 Debugging in VSCode with Pester
43:24 Practical Example
1:07:00 Test Drive
1:16:00 Other Features
1:34:00 VS Code Code Coverage
1:49:00 Q&A
https://www.youtube.com/watch?v=qeiy8fRMHf8
YouTube
PowerShell Testing with Pester 5
At this meeting we will have Pester owner and maintainer Jakub Jares as guest speaker.In this session the following topics are covered:0:00 Intro2:28 About...
📚 5 new modules on Microsoft Learn for PowerShell
▪️ Introduction to PowerShell
▪️ Connect commands into a pipeline
▪️ Introduction to noscripting in PowerShell
▪️ Write your first PowerShell code
▪️ Automate Azure tasks using noscripts with PowerShell
▪️ Introduction to PowerShell
▪️ Connect commands into a pipeline
▪️ Introduction to noscripting in PowerShell
▪️ Write your first PowerShell code
▪️ Automate Azure tasks using noscripts with PowerShell
PowerShell Summit 2021: Day 1
▪️ State of the Shell
▪️ Pwsh with GitHub Actions
▪️ Writing accessible Tools
▪️ Incident Management with PowerShell
▪️ State of the Shell
▪️ Pwsh with GitHub Actions
▪️ Writing accessible Tools
▪️ Incident Management with PowerShell
🎬 PowerShell Secrets Management Module - Easily use any secret provider
https://www.youtube.com/watch?v=7b0KGVI4VLY
https://www.youtube.com/watch?v=7b0KGVI4VLY
YouTube
New PowerShell Secrets Management Module - Easily use any secret provider
In this video I explore a solution to the problem of handling secrets in noscripts and having to use secret implementation specific code. The new Secrets Management module solves this.
My demo code is at https://github.com/johnthebrit/RandomStuff/blob/mas…
My demo code is at https://github.com/johnthebrit/RandomStuff/blob/mas…
Second preview of PowerShell Crescendo
A framework to rapidly develop PowerShell cmdlets for native commands, regardless of platform.
- Added support for native command elevation on Windows and Linux platforms.
- Export-CrescendoModule now exports a module manifest (psd1) along with the module file (psm1).
- Added support for generating aliases for Crescendo cmdlets
- Added support for SupportsShouldProcess.
https://devblogs.microsoft.com/powershell/announcing-powershell-crescendo-preview-2/
A framework to rapidly develop PowerShell cmdlets for native commands, regardless of platform.
- Added support for native command elevation on Windows and Linux platforms.
- Export-CrescendoModule now exports a module manifest (psd1) along with the module file (psm1).
- Added support for generating aliases for Crescendo cmdlets
- Added support for SupportsShouldProcess.
https://devblogs.microsoft.com/powershell/announcing-powershell-crescendo-preview-2/
PowerShell Team
Announcing PowerShell Crescendo Preview.2 | PowerShell Team
We are pleased to announce the second preview of PowerShell Crescendo, a framework to rapidly develop PowerShell cmdlets for native commands, regardless of platform. The updated preview releases are now available for download on the PowerShell Gallery: M…
I know, I missed "Announcing PSDesiredStateConfiguration on PowerShell Gallery" ☹️
But, how about Puppet's support for the PowerShell DSC configuration framework for Windows ?
See more details here:
But, how about Puppet's support for the PowerShell DSC configuration framework for Windows ?
See more details here:
PowerShell 7.2-preview.6 is out!
Experimental Features
- [Breaking Change] Update prediction interface to provide additional feedback to a predictor plugin
Performance
- Avoid collecting logs in buffer if a pipeline execution event is not going to be logged
- Avoid allocation in
- Replace
- Use
General Cmdlet Updates and Fixes
- Use
- Add completions for
- Add completions for comment-based help keywords
- Move cross platform DSC code to a PowerShell engine subsystem
- Fix
- Handle exception if ConsoleHost tries to set cursor out of bounds because screen buffer changed
- Fix
- Update
- Update the summary comment for
- Remove the unusable alias
- Fix tab completion for un-localized
- Remove the unneeded SSH stdio handle workaround
- Add
- Re-implement
- Kill native processes in pipeline when pipeline is disposed on Unix
- Default to MTA on Windows platforms where STA is not supported
Experimental Features
- [Breaking Change] Update prediction interface to provide additional feedback to a predictor plugin
Performance
- Avoid collecting logs in buffer if a pipeline execution event is not going to be logged
- Avoid allocation in
LanguagePrimitives.UpdateTypeConvertFromTypeTable - Replace
Directory.GetDirectories with Directory.EnumerateDirectories to avoid array allocations- Use
List.ConvertAll instead of LINQGeneral Cmdlet Updates and Fixes
- Use
AllocConsole before initializing CLR to ensure codepage is correct for WinRM remoting - Add completions for
#requires statements- Add completions for comment-based help keywords
- Move cross platform DSC code to a PowerShell engine subsystem
- Fix
Minimal progress view to handle activity that is longer than console width- Handle exception if ConsoleHost tries to set cursor out of bounds because screen buffer changed
- Fix
NullReferenceException in DSC ClearCache() - Update
ControlSequenceLength to handle colon as a virtual terminal parameter separator- Update the summary comment for
StopTrannoscriptCmdlet.cs- Remove the unusable alias
d for the -Directory parameter from Get-ChildItem- Fix tab completion for un-localized
about topics - Remove the unneeded SSH stdio handle workaround
- Add
LoadAssemblyFromNativeMemory API to load assemblies from memory in a native PowerShell host - Re-implement
Remove-Item OneDrive support- Kill native processes in pipeline when pipeline is disposed on Unix
- Default to MTA on Windows platforms where STA is not supported