Preview 2 has dropped! Let’s look at some of the major things that are coming in this preview.
First – let’s look at the breaking changes:
Breaking Changes
- Adjustments have been made to the
-OlderThanand-NewerThanparameters forTest-Path, addressing issues when used withPathTypeand a date range - The default
CatalogVersionforNew-FileCataloghas been changed to 2 - Restrictions have been added to block help from network locations in restricted remoting sessions
And now to the improvements:
Tab Completion Improvements
- Efforts led by contributors like @ArmaanMcleod have refined tab completion, including preventing fallback to file completion when tab completing type names and adding argument completers for various cmdlets like
Set-StrictMode,Get-Verb,Start-Process, and more
Web Cmdlets Improvements
- Fixes have been made to
Invoke-WebRequestto ensure accurate size reporting when the-Resumeparameter is specified - Web Cmdlets have been adjusted to allow
WinFormapplications to work correctly
Other Cmdlet Improvements
- A range of cmdlet improvements and fixes, including for
Test-Connection,Get-Service, and adding new parameters toNew-Guid. For instance,New-Guidnow supports-Emptyand-InputObjectparameters
Engine Improvements
- Enhancements in the engine include telemetry for module imports, adjustments to module load telemetry, and fixes for regressions introduced by the WDAC logging feature
Experimental Features
- Introduction of tilde expansion for Windows native executables, demonstrating PowerShell’s ongoing evolution and adaptation
.