Although this release, as well as the previous one, is based on .NET 5, Microsoft claims that the stable version of PowerShell 7.2 will be based on .NET 6. Let’s discuss what PowerShell 7.2 Preview 3 brings to the table.
Download PowerShell 7.2.0 Preview 3
For Windows 10, Windows 8.1 and Windows 7
PowerShell-7.2.0-Preview3-win-x64.msi [95.3 MB]
Download PowerShell 7.2.0 Preview 3 For Windows 10, Windows 8.1 and Windows 7 For MacOS For Linux PowerShell 7.2.0 Preview 3 features Engine updates and fixes In accordance with ISO 8601 Improved performance: General cmdlets updates and fixes How to install PowerShell 7.2 Preview 3 in Windows 10 Closing words
PowerShell-7.2.0-Preview3-win-x86.msi [86.4 MB]
For MacOS
powershell-7.2.0-Preview3-osx-x64.pkg [61.3 MB]
For Linux
CentOS powershell-7.2.0-Preview3-1.centos.8.x86_64.rpm [62.8 MB] Debian powershell_7.2.0-Preview3-1.debian.11_amd64.deb [63.3 MB] powershell_7.2.0-Preview3-1.debian.10_amd64.deb [63.3 MB] Ubuntu powershell_7.2.0-Preview3-1.ubuntu.20.04_amd64.deb [63.3 MB] powershell_7.2.0-Preview3-1.ubuntu.18.04_amd64.deb [63.3 MB] powershell_7.2.0-Preview3-1.ubuntu.16.04_amd64.deb [63.3 MB] For more download options, please checkout this download page.
PowerShell 7.2.0 Preview 3 features
Thanks to Microsoft and PowerShell contributors, some significant changes have been made to the released version. Some new features and bug fixes have been highlighted in the release post by Microsoft. Let’s discuss what those are.
Engine updates and fixes
PowerShell now supports Get-DscResource, Invoke-DscResource and DSC configuration compilation on all platforms together with PSDesiredStateConfiguration v3 module.
In accordance with ISO 8601
The behavior for Get-Date -UFormat %u will now comply with ISO 8601 standards. ISO 8601 is the representation and format of dates in the Gregorian (and potentially proleptic Gregorian) calendar.
Improved performance:
A few performance updates have also been made to this preview release:
You can now avoid array allocations from Directory.GetDirectories and Directory.GetFiles.You can now also avoid string.ToLowerInvariant() from GetEnvironmentVariableAsBool() to prevent loading libicu from startup.Users can now get the PowerShell version in PSVersionInfo using the assembly attribute, as opposed to the previous FileVersionInfo.
General cmdlets updates and fixes
Other updates to this release include the following:
You can now suppress Write-Progress in ConsoleHost if the output is redirected and fix tests.Experimental feature PSAnsiProgress: Users can add a minimal progress bar using ANSI rendering.A fix for the web cmdlets has been introduced to properly construct URI from the body when using -NoProxy.The ICommandPredictor has been updated to provide more feedback and also make feedback easier to correlate.The color will now be reset after writing Verbose, Debug, and Warning messages.Using a variable for nested ForEach-Object -Parallel calls has been fixed.When formatting, if the collection is modified, the entire pipeline will not fail.The completion of parameters for attributes has been improved.A proper error message will be displayed for Get-Command.A typo in the resource string ProxyURINotSupplied has been fixed.Support has been added to $PSStyle for strikethrough and hyperlinks.$PSStyle blink codes have been fixed.
How to install PowerShell 7.2 Preview 3 in Windows 10
Use the guide provided to download PowerShell 7.2 on Windows 10, 8.1, and 7. You may also download the latest stable release of PowerShell by running the following command in the existing PowerShell on your Windows: You can also download and install PowerShell over the network. This method is best suited for sysadmins.
Closing words
Since this is still a preview update, we recommend that you do not install it in a production environment unless you absolutely want the new features. However, if you love automation and other PowerShell tools, you should definitely try this preview build out on a test computer or a virtual machine.