Microsoft announced that it’s PowerShell 7 is now accessible to download for Windows, Linux, and macOS platforms. PowerShell is a task-based command-line shell and scripting language built on .NET. PowerShell 7.0 is an open-source, mixed-platform (Windows, macOS, and Linux) edition of PowerShell. It is built to manage complex environments and hybrid cloud systems.
New features included are
- Pipeline parallelization with
- New operators:
- Ternary operator:
a ? b : c
- Pipeline chain operators:
&& (Logical OR and Logical AND operators)
- Null conditional operators:
- Ternary operator:
- A simplified and dynamic error view and
Get-Errorcmdlet for easier review of errors
- An adaptability layer that allows users to import modules in an implicit Windows PowerShell session
- Automated new version notifications
- The capacity to request DSC resources directly from PowerShell 7 (trial)
PowerShell 7 currently supports
The operating systems which PowerShell 7 currently supports are:
- Windows 8.1, and 10
- Alpine Linux 3.8+
- Ubuntu LTS 16.04+
- Red Hat Enterprise Linux (RHEL) / CentOS 7
- Windows Server 2012, 2012 R2, 2016, and 2019
- macOS 10.13+
- Fedora 30+
- Debian 9
PowerShell 7.0 additionally supports ARM32 and ARM64 flavors of Debian, Ubuntu, and ARM64 Alpine Linux.
Microsoft in a post stated that the PowerShell upgrade from 6.x to 7.0 will also bring changes to NET Core 2.x to 3.1. With this update, Microsoft improved reverse compatibility for PowerShell modules. From Microsoft’s point of view, PowerShell 7 is to be “the one, true PowerShell going ahead”. Much like the .NET Core gang have done as .NET 5 approaches.
Joey Aiello, project manager for PowerShell, told The Register: “We’ve launched an adaptability layer in PS 7 that implicitly uses Windows PowerShell under the hood for known-incompatible modules.” The statement was recorded for a special script that still refuses to run.
The PowerShell team plans to move to an annual release cadence that is better arranged with the .NET Core.
Looking for more software news? Subscribe our newsletter for the latest updates.