PowerShell 7.0 officially released

PowerShell 7.0 GA officially released. In addition to the new common cmdlet / API and bug fixes, PowerShell 7.0 also introduces many new features, including: 

  • Use ForEach-Object -Parallel conduit for parallelized
  • New operator
    • Ternary operator: a ? b : c
    • Main Pipeline operators: || and && 
    • Air distribution and integration operators: ?? and ??=
  • Simplified view of the dynamic error and Get-Error cmdlet, make it easier to investigate the error
  • Compatibility layer such that the user modules can be introduced in the Windows PowerShell session implicit
  • Automatic new version notification
  • Capacity (experimental) from PowerShell 7 DSC call to invoke the resources directly 

PowerShell Core transition from 6.x to 7.0 also marks the transition from .NET Core 2.x to 3.1. .NET Core 3.1 brought a lot of .NET Framework API (especially on Windows), so that the backward compatibility with existing Windows PowerShell module greatly improved. This includes a number of modules required GUI functionality on Windows, such as Out-GridView and Show-Command, as well as many role management module that comes with Windows. More information can be viewed in PowerShell 7.0 module compatibility table .

Officials said, PowerShell 7 marks backward compatibility with Windows PowerShell maximize the journey has been completed, "PowerShell 7 and later versions will be real PowerShell". 

PowerShell 7 x86 supported on the following operating systems: 

  • Windows 7, 8.1, and 10
  • Windows Server 2008 R2, 2012, 2012 R2, 2016, and 2019
  • macOS 10.13+
  • Red Hat Enterprise Linux (RHEL) / CentOS 7+
  • Fedora 29+
  • Debian 9+
  • Ubuntu 16.04+
  • openSUSE 15+
  • Alpine Linux 3.8+

It also supports Debian and Ubuntu versions of ARM32 and ARM64, and ARM64 Alpine Linux. 

Next, PowerShell first preview of the upcoming release of version 7.1, which contains a number of new features and bug fixes 7.0 does not have.

For more details see announcement:

https://devblogs.microsoft.com/powershell/announcing-powershell-7-0/

Guess you like

Origin www.oschina.net/news/113864/powershell-7-0-released