By default, PowerShell is installed in each version of Windows – from Windows 7 SP1 and Windows Server 2008 R2 SP1. Over the years, Microsoft has released many versions of PowerShell. Windows PowerShell was built on the .NET Framework and only worked on Windows systems. But recently Microsoft released PowerShell 7.0 which is generally available for download, and primarily notable for being a cross-platform scripting tool. In this article, we will show you how to install PowerShell 7.0 on Windows 10.
Install PowerShell 7.0 on Windows 10
To download and install PowerShell 7.0 on Windows 10, you can run a PowerShell cmdlet to download and install the MSI package from GitHub.
Here’s how:
- hurry Windows key + X to access the Power User menu.
- hurry A on the keyboard to open PowerShell in administrative mode.
- In the PowerShell window, copy and paste the cmdlet below and press Enter:
iex “& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI”
This command downloads the package directly from the GitHub URL depending on the compatibility of the operating system.
Once the MSI package is fully downloaded, you will be presented with the configuration wizard. Click on Next and continue the installation process.
Alternatively, you can visit the GitHub PowerShell release page and scroll through the assets and choose your operating system with the appropriate architecture, then click to download then install.
Once the installation is complete, you can see the shortcut in the Start menu.
The installed location is C: Program Files PowerShell 7 For windows.
You can also access PowerShell 7.0 using the Run command. To do this, call the Run dialog box by pressing Windows + R and type pwsh and press Enter, this command will launch the new PowerShell.
PowerShell 7.0 comes with many new features such as:
- Pipeline parallelization
- New operators
- ConciseView cmdlet and Get-Error
- Automatic new version notifications
- Call DSC resources directly from PowerShell 7
- Compatibility layer.
We hope you found this post useful.