Microsoft Released PowerShell 7.0

March 4,, Microsoft announced the latest release of ‘PowerShell 7.0’, a .NET-based command-line shell and scripting language.

Made up of a set of tools and a shell that can execute various system-management tasks on a command-line interface, PowerShell became generally available in 2006. Although it was originally a Windows-only tool, it became open source in 2016 to be imported to Linux and macOS.

The latest release PowerShell 7.0 is the successor of version 6, which was released in January 2018. Now moving to .NET Core 3.1. it provides better backward-compatibility with the already existing Windows PowerShell modules.

With ‘ForEach-Object’ cmdlet, it now supports pipeline parallelization. In addition, it offers Parallel parameter, which specifies the script blocks that run in parallel for each input log name, and ThrottleLimit parameter, which limits the number of script blocks that run in parallel.

In regards to the new operators, this release is added with new pipeline chain operators “&&” and “||”, ternary operator “a ? b : c”, and null conditional operators “??” and “??=”. Also, the error view became dynamic and simplified. Another notable feature is the “Get-Error” cmdlet, which investigates the cause of errors.

The compatibility layer is there to import modules in a Windows PowerShell session. Although being an experimental feature, it can invoke DSC resources directly from PowerShell 7.

In order to install a new directory, PowerShell 7 can run side-by-side with Windows PowerShell 5.1. It supports Windows 8.1/10, Windows Server 2012/2012 R2/2016/2019, macOS, 10.13, Red Hat Enterprise Linux/CentOS 7, Fedora 30, and more. You can download them from the project website.

PowerShell
https://microsoft.com/PowerShell