Advertisement

PowerShell 7.2.0 Preview 2 is available for download

The PowerShell 7 platform has received a new update. Preview 2 for the upcoming version 7.2 is now available for download. Microsoft has detailed a number of improvements that included in this version.

PowerShell 7 Banner

What's new in PowerShell 7.2 Preview 2

Breaking Changes

  • Improve detection of mutable value types
  • Ensure -PipelineVariable is set for all output from script cmdlets

Experimental Features

  • PSAnsiRendering: Enable ANSI formatting via $PSStyle and support suppressing ANSI output

Performance

  • Optimize IEnumerable variant of replace operator
  • Refactor multiply operation for better performance in two Microsoft.PowerShell.Commands.Utility methods
  • Use Environment.TickCount64 instead of Datetime.Now as the random seed for AppLocker test file content
  • Avoid unnecessary array allocations when searching in GAC
  • Use OrdinalIgnoreCase in CommandLineParser
  • Use StringComparison.Ordinal instead of StringComparison.CurrentCulture
  • Avoid creating instances of the generated delegate helper class in -replace implementation

General Cmdlet Updates and Fixes

  • Write better error message if config file is broken
  • Make AppLocker Enforce mode take precedence over UMCI Audit mode
  • Add -SkipLimitCheck switch to Import-PowerShellDataFile
  • Restrict New-Object in NoLanguage mode under lock down
  • The -Stream parameter now works with directories
  • Avoid an exception if file system does not support reparse points
  • Enable CA1012: Abstract types should not have public constructors
  • Enable SA1212: Property accessors should follow order

Download PowerShell 7.2

The app is available for download on the GitHub.

PowerShell Releases

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Advertisеment

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

Leave a Reply

Your email address will not be published.

css.php
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.