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.
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 ofDatetime.Now
as the random seed for AppLocker test file content - Avoid unnecessary array allocations when searching in GAC
- Use
OrdinalIgnoreCase
inCommandLineParser
- Use
StringComparison.Ordinal
instead ofStringComparison.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 toImport-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.
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