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
💡Preview updating PowerShell 7.2 with Microsoft Update
With Microsoft Update, you’ll get the latest PowerShell 7 updates directly in your traditional Windows Update management flow
https://devblogs.microsoft.com/powershell/preview-updating-powershell-7-2-with-microsoft-update/
With Microsoft Update, you’ll get the latest PowerShell 7 updates directly in your traditional Windows Update management flow
https://devblogs.microsoft.com/powershell/preview-updating-powershell-7-2-with-microsoft-update/
PowerShell Team
Preview updating PowerShell 7.2 with Microsoft Update
Updating PowerShell 7 with Microsoft Update Today, we’re happy to announce that we’re taking the first steps to making PowerShell 7 easier than ever to update on Windows 10 and Server. In the past, Windows users were notified in their console that a new version…
❗ v7.2.0-preview.7 Release of PowerShell
Breaking Changes
- Remove PSDesiredStateConfiguration v2.0.5 module and published it to the PowerShell Gallery
Engine Updates and Fixes
- Fix splatting being treated as positional parameter in completions
- Prevent PowerShell from crashing when a telemetry mutex can't be created
- Ignore all exceptions when disposing an instance of a subsystem implementation
- Wait for SSH exit when closing remote connection
Performance
- Retrieve ProductVersion using informational version attribute in AmsiUtils.Init()
General Cmdlet Updates and Fixes
- Fix retrieving dynamic parameters from provider even if globbed path returns no results
- Revert "Enhance Remove-Item to work with OneDrive" due to long path issue
https://github.com/PowerShell/PowerShell/releases/tag/v7.2.0-preview.7
Breaking Changes
- Remove PSDesiredStateConfiguration v2.0.5 module and published it to the PowerShell Gallery
Engine Updates and Fixes
- Fix splatting being treated as positional parameter in completions
- Prevent PowerShell from crashing when a telemetry mutex can't be created
- Ignore all exceptions when disposing an instance of a subsystem implementation
- Wait for SSH exit when closing remote connection
Performance
- Retrieve ProductVersion using informational version attribute in AmsiUtils.Init()
General Cmdlet Updates and Fixes
- Fix retrieving dynamic parameters from provider even if globbed path returns no results
- Revert "Enhance Remove-Item to work with OneDrive" due to long path issue
https://github.com/PowerShell/PowerShell/releases/tag/v7.2.0-preview.7
GitHub
Release v7.2.0-preview.7 Release of PowerShell · PowerShell/PowerShell
7.2.0-preview.7 - 2021-06-17
Breaking Changes
Remove PSDesiredStateConfiguration v2.0.5 module and published it to the PowerShell Gallery (#15536)
Engine Updates and Fixes
Fix splatting being tr...
Breaking Changes
Remove PSDesiredStateConfiguration v2.0.5 module and published it to the PowerShell Gallery (#15536)
Engine Updates and Fixes
Fix splatting being tr...
💡 Azure Durable Functions for PowerShell: Human interaction
Azure Durable Functions provide some functionality that Azure functions don’t offer with the other bindings. The most important one is that it provides you with a state.
https://4bes.nl/2021/06/13/azure-durable-functions-for-powershell-human-interaction/
Azure Durable Functions provide some functionality that Azure functions don’t offer with the other bindings. The most important one is that it provides you with a state.
https://4bes.nl/2021/06/13/azure-durable-functions-for-powershell-human-interaction/
4bes.nl
Azure Durable Functions for PowerShell: Human interaction
I have written before about PowerShell in Durable functions. A few weeks ago, the great news was shared that Azure durable functions are now general available . Between my last post and this great new
🎬 What's the right Write cmdlet to use to write to the right output
https://www.youtube.com/watch?v=08U80wlmKNA
https://www.youtube.com/watch?v=08U80wlmKNA
YouTube
What's the right PowerShell Write cmdlet to use to write to the right output (Steven Judd)
Have you ever wondered if you're writing data in your noscripts the correct way? For example, when should you use Write-Host vs Write-Output? How do you write to the console and the logs at the same time?
Join Steven Judd for a walk through on the various…
Join Steven Judd for a walk through on the various…
❗v7.2.0-preview.8 Release of PowerShell
Engine Updates and Fixes
- Add a Windows mode to $PSNativeCommandArgumentPassing that allows some commands to use legacy argument passing
- Use nameof to get parameter names when creating ArgumentNullException
- Test if a command is 'Out-Default' more thoroughly for transcribing scenarios
- Add Microsoft.PowerShell.Crescendo to telemetry allow list
General Cmdlet Updates and Fixes
- Use $PSStyle.Formatting.FormatAccent for Format-List and $PSStyle.Formatting.TableHeader for Format-Table output
- Highlight using error color the exception Message and underline in PositionMessage for Get-Error
- Implement a completion for View parameter of format cmdlets
- Add support to colorize FileInfo file names
- Don't serialize to JSON ETS properties for DateTime and string types
- Fix HyperVSocketEndPoint.ServiceId setter
- Add DetailedView to $ErrorView
Engine Updates and Fixes
- Add a Windows mode to $PSNativeCommandArgumentPassing that allows some commands to use legacy argument passing
- Use nameof to get parameter names when creating ArgumentNullException
- Test if a command is 'Out-Default' more thoroughly for transcribing scenarios
- Add Microsoft.PowerShell.Crescendo to telemetry allow list
General Cmdlet Updates and Fixes
- Use $PSStyle.Formatting.FormatAccent for Format-List and $PSStyle.Formatting.TableHeader for Format-Table output
- Highlight using error color the exception Message and underline in PositionMessage for Get-Error
- Implement a completion for View parameter of format cmdlets
- Add support to colorize FileInfo file names
- Don't serialize to JSON ETS properties for DateTime and string types
- Fix HyperVSocketEndPoint.ServiceId setter
- Add DetailedView to $ErrorView
A new PowerShell book is now available for purchase.
All code examples and noscripts in the book are available on the GitHub repo for the book.
All code examples and noscripts in the book are available on the GitHub repo for the book.
👍1
📘 New PowerShell Docs content
- about_Functions_Argument_Completion
Argument completion is a feature of PowerShell that provide hints, enables discovery, and speeds up input entry of argument values.
- about_Tab_Expansion
PowerShell provides completions on input to provide hints, enable discovery, and speed up input entry. Command names, parameter names, argument values and file paths can all be completed by pressing the Tab key.
- about_Functions_Argument_Completion
Argument completion is a feature of PowerShell that provide hints, enables discovery, and speeds up input entry of argument values.
- about_Tab_Expansion
PowerShell provides completions on input to provide hints, enable discovery, and speed up input entry. Command names, parameter names, argument values and file paths can all be completed by pressing the Tab key.
Docs
About functions argument completion - PowerShell
Explains the various argument completion options available for function parameters.
📦 Posh-SSH 3.0 is out.
- Windows PowerShell 5.1 and PowerShell 7.x Only supported.
- Cross platform support (Linux, Windows and MacOS).
- Updated SSH.NET library fixing multiple issued with OpenSSH and Cisco version strings.
- Support for more key formats. (OpenSSH ECDSA still not supported in the OpenSSH format)
- Support for password: and PASSCODE: prompts.
- Windows PowerShell 5.1 and PowerShell 7.x Only supported.
- Cross platform support (Linux, Windows and MacOS).
- Updated SSH.NET library fixing multiple issued with OpenSSH and Cisco version strings.
- Support for more key formats. (OpenSSH ECDSA still not supported in the OpenSSH format)
- Support for password: and PASSCODE: prompts.
This media is not supported in your browser
VIEW IN TELEGRAM
📦Customize Windows11
❗️v7.1.5 Release of PowerShell
Telemetry Changes:
- Configure ApplicationInsights to not send cloud role name.
Engine Updates and Fixes:
- Handle error from unauthorized access when removing AppLocker test files.
- Test more thoroughly whether a command is Out-Default for trannoscription scenarios.
- Handle error when the telemetry mutex cannot be created.
- Disallow Add-Type in NoLanguage mode on a locked down machine.
Telemetry Changes:
- Configure ApplicationInsights to not send cloud role name.
Engine Updates and Fixes:
- Handle error from unauthorized access when removing AppLocker test files.
- Test more thoroughly whether a command is Out-Default for trannoscription scenarios.
- Handle error when the telemetry mutex cannot be created.
- Disallow Add-Type in NoLanguage mode on a locked down machine.
❗ Microsoft asks admins to patch PowerShell to fix vulnerabilities
CVE-2021-41355
An Information Disclosure vulnerability exists in .NET where System.DirectoryServices.Protocols.LdapConnection may send credentials in plain text on non-Windows Operating systems.
CVE-2020-0951
A security feature bypass vulnerability exists in Windows Defender Application Control (WDAC) which could allow an attacker to bypass WDAC enforcement.
CVE-2021-41355
An Information Disclosure vulnerability exists in .NET where System.DirectoryServices.Protocols.LdapConnection may send credentials in plain text on non-Windows Operating systems.
CVE-2020-0951
A security feature bypass vulnerability exists in Windows Defender Application Control (WDAC) which could allow an attacker to bypass WDAC enforcement.