Install PowerShell 7.x on Windows 11/10
To download and install PowerShell 7.0 on Windows 11/10, you can run a PowerShell cmdlet to download and install the MSI package from GitHub. Here’s how:
Press Windows key + X to access the Power User Menu.Press A on the keyboard to open PowerShell in administrative mode.In the PowerShell window, copy and paste the cmdlet below and hit Enter:
This command will directly download the package from GitHub URL based on the operating system compatibility. Once the MSI package is fully downloaded, you’ll be presented with the setup wizard. Click Next and continue the installation process. Alternatively, you can visit the GitHub PowerShell release page and scroll down the Assets and choose your operating system with the appropriate architecture, then click to download and then install. Once the installation is completed, you can see the shortcut on the Start menu. The installed location is C:\Program Files\PowerShell\7 for Windows. PowerShell 7 installs to a new directory, enabling side-by-side execution with Windows PowerShell 5.1. The install locations by version are:
Windows PowerShell 5.1: $env:WINDIR\System32\WindowsPowerShell\v1.0PowerShell 6.x: $env:ProgramFiles\PowerShell\6PowerShell 7: $env:ProgramFiles\PowerShell\7
You can also access the PowerShell 7.0 via Run command. To do so, invoke the Run dialog box by pressing Windows + R and type pwsh and hit Enter, this command will launch the new PowerShell. PowerShell 7.0 ships with a lot of new features like:
Pipeline parallelizationNew operatorsConciseView and Get-Error cmdletAutomatic new version notificationsInvoke DSC resources directly from PowerShell 7Compatibility layer.
We hope you found this post useful. Read next: List of PWSH syntax you can use.