PowerShell 7 hits general availability with new features, better backwards compatibility

PowerShell run script on Windows 10
PowerShell run script on Windows 10 (Image credit: Windows Central)

What you need to know

  • PowerShell 7 is now generally available.
  • This update marks PowerShell 7 as the "one, true PowerShell" moving forward, Microsoft says.
  • PowerShell 7 is packed with new features and better backwards compatibility.

Microsoft today launched PowerShell 7 (opens in new tab), the latest major revision of its cross-platform PowerShell Core automation tool and configuration framework. The update comes with some significant changes, new features, and improved backwards compatibility. Going forward, PowerShell 7 will be the "one, true PowerShell" as well, supplanting the previous stratification between Windows PowerShell and PowerShell Core.

One of the biggest changes in this release is the move from .NET Core 2.x to version 3.1. ".NET Core 3.1 brings back a host of .NET Framework APIs (especially on Windows), enabling significantly more backwards compatibility with existing Windows PowerShell modules," Microsoft said in a blog post announcing the release. "This includes many modules on Windows that require GUI functionality like Out-GridView and Show-Command, as well as many role management modules that ship as part of Windows."

Here's a rundown of some of the new features included in PowerShell 7:

  • Pipeline parallelization with ForEach-Object -Parallel
  • New operators:
    • Ternary operator: a ? b : c
    • Pipeline chain operators: || and &&
    • Null coalescing operators: ?? and ??=
  • A simplified and dynamic error view and Get-Error cmdlet for easier investigation of errors
  • A compatibility layer that enables users to import modules in an implicit Windows PowerShell session
  • Automatic new version notifications
  • The ability to invoke to invoke DSC resources directly from PowerShell 7 (experimental)

You can check out PowerShell 7 by snagging the latest release at GitHub. PowerShell 7 is cross-platform, and it supports Windows, macOS, and various Linux releases.

Dan Thorp-Lancaster is the former Editor-in-Chief of Windows Central. He began working with Windows Central, Android Central, and iMore as a news writer in 2014 and is obsessed with tech of all sorts. You can follow Dan on Twitter @DthorpL and Instagram @heyitsdtl

2 Comments
  • The MSIX install package seems to have disappeared between Release Candidate 3 and this Full Release. Can't find any info on where it went or why it's not present. Since that's the version I have, going to wait to see if it gets added shortly. I don't install things in locations other than default, so don't mind the auto-install of MSIX. And it makes uninstall so simple.
    Have used the release candidates for a while, don't notice any difference with 5, which is great. But I'm not a good benchmark, not doing anything fancy like a script writer would. Edit: after some digging on GitHub looks like there was a packaging problem and the situation will be resolved eventually (no ETA though)
  • There's no .MSIX installer for x64 version of Windows. I don't think there is for the 32-bit version, either.