If you’re a developer or power user, you probably use Windows PowerShell a lot. For those unaware, PowerShell and Command Prompt are used to execute and use advanced Windows features and development, with PowerShell being a superior command-line software compared to CMD. Microsoft keeps adding new features to PowerShell, so if you haven’t updated the same for a while, here’s how to upgrade Windows PowerShell.
It’s worth noting that PowerShell, until version 5.1, was automatically updated by Windows updates. However, the new version 7.x is no longer handled by Windows updates and needs manual updating. Regardless of the version, you can follow the steps below to update/install the latest version of PowerShell. To check your PowerShell’s version, enter the command $PSVersionTable
in your existing PowerShell app.
Upgrade PowerShell Using the Microsoft Store
Often, we sideline the Microsoft Store because we’re used to installing EXE files from the internet. However, the Microsoft Store can help you update PowerShell swiftly. Here’s how:
- Launch Microsoft Store from the Start menu.
- Click on the Downloads tab at the bottom left.
- This will show you all the available updates. Check if an update to PowerShell is available and, if yes, click on Update.
- You can also click Update all to update all apps at once.
Update Using the PowerShell Installer
Did you know that the new PowerShell 7.x is open source? Its installer is available on both the official PowerShell website and GitHub. Here’s how to update to the latest Windows PowerShell using the installer:
- Head over to the official PowerShell GitHub repository.
- Go to the Releases page and click on the latest win-x64.msi file to download the installer.
- Once downloaded, double-click the installer to launch it and click on Next.
- Click on Next for the subsequent prompts to proceed.
- Now, click on Install.
Upgrade PowerShell Using Winget
Winget is a package manager that works well for downloading new packages/apps or updating existing ones. Here’s how to use it to update Windows PowerShell:
- Launch Windows PowerShell and type the following command:
winget update microsoft.powershell
- If you don’t have PowerShell installed, use the following command to install it:
winget install --id Microsoft.Powershell --source winget
- Once done, you should have the updated version or a new version of PowerShell installed.
Update PowerShell Using Windows Update
This method applies only to older versions of Windows and PowerShell. If you’re using an old version of Windows, your PowerShell version will also be outdated, and you’ll need to upgrade to the latest Windows version to access the latest PowerShell version.
- Go to Settings >Windows updates.
- Click Check for updates and Windows should find and install them automatically.
- Once done, restart your Windows PC to have the latest PowerShell version for your Windows version.
These methods are easy ways to upgrade PowerShell on Windows. The first two methods provide quick updates and ensure you’re using the latest features. Were you able to upgrade PowerShell by following these steps? Let us know in the comments!