Upgrade an existing PowerShell 7 copy with winget upgrade --id Microsoft.PowerShell when WinGet offers an update. Windows PowerShell 5.1 stays separate; opening that older app still shows 5.1 after a successful PowerShell 7 upgrade.
Check the version and installation method first. They tell you which update method to use: WinGet, Microsoft Update, a downloaded installer, or the package manager that originally installed your copy.
In this guide
Identify the copy that needs updating
Enter these commands in your usual PowerShell session:
$PSVersionTable.PSVersion
$PSHOME
The first command shows the version you're using in this window. The second shows its installation folder. Keep both results, because a computer can have Windows PowerShell, stable PowerShell 7, and a preview installed together.

A result beginning with 5.1 belongs to Windows PowerShell. It gets security updates through Windows; installing the newer app doesn't turn that copy into PowerShell 7.
For a first installation, use the PowerShell 7 installation steps. The steps here focus on updating an existing copy and making sure the updated app is the one you open afterward.
Microsoft's PowerShell upgrade instructions recommend keeping the original installation method. That also helps you avoid leaving an older portable copy beside a newly installed one.
Check whether WinGet has an upgrade
In PowerShell or another terminal shell, run:
winget list --id Microsoft.PowerShell --upgrade-available
When an upgrade is available, the output identifies the package and the newer version. Check that it is Microsoft.PowerShell, the stable package, rather than the separate preview package.
Then run:
winget upgrade --id Microsoft.PowerShell

Accept the installer's prompts and let it complete. Save running work before closing any existing PowerShell sessions. Reopen PowerShell before checking its version; an existing window still runs the old code.
WinGet uses the existing MSI or MSIX format when the newer release offers that format. Package availability can change between releases, so don't assume an old instruction's installer format applies forever.
An empty upgrade list can mean WinGet found your copy but has no newer version to offer. Other PowerShell copies on the PC could still need updating. Check the folder from the first section if the result seems wrong.
If winget isn't recognized, this shell can't find the package manager. Use the matching standalone-package route instead of running commands to change PowerShell's script policy; that policy doesn't install WinGet.
Use the original package when WinGet isn't the route
Check $PSHOME in the copy being updated. A path under Program Files\PowerShell\7 usually points to an MSI installation. Confirm the PowerShell entry in the installed-programs list before choosing its replacement package.
A location under Program Files\WindowsApps points to an MSIX installation. A path under your profile's .dotnet\tools points to a .NET global-tool installation. Another directory can be a portable ZIP copy.
For an MSI copy, open the official installation page and choose a newer compatible package. Match your processor type: x64 and Arm64 downloads serve different hardware.
Run the MSI and follow its prompts. Its update options control whether you get future updates through Microsoft Update. On a managed PC, follow IT's deployment method instead of replacing its package yourself.
A ZIP installation needs a newer ZIP extracted into the intended folder, followed by launching its pwsh.exe. Installing an MSI elsewhere won't replace the portable executable a shortcut still points to.
For a .NET global-tool copy, use its package manager:
dotnet tool update --global PowerShell
This updates your global-tool copy instead of installing a separate MSI copy. The global-tool update instructions explain which update command to use based on how the tool was installed.
I'd keep one normal stable installation unless a script needs another version. Extra portable copies make it much easier to check the wrong executable after an update.
Keep future updates connected to the right service
PowerShell 7 can receive updates from Microsoft Update if enabled during installation. On a personal PC, visit Windows Update to see which updates are offered. On a work PC, the updates may arrive through a service your employer manages.
On Windows 11, open Settings > Windows Update. On Windows 10, open Settings > Update & Security > Windows Update. Apply the listed updates. Restart if Windows requests it, then check the PowerShell version.
Use the Windows update instructions if that page itself reports a failure. Fixing the update service is different from choosing the correct PowerShell package.
A new release can appear through a direct package before Microsoft Update offers it. For an earlier manual upgrade, return to the same installation method rather than treating the update schedule as a broken installation.
The startup message inviting you to install the latest PowerShell can still appear in Windows PowerShell 5.1. That message invites you to use the newer app. It doesn't check the version of a separate PowerShell 7 installation.
Open a fresh PowerShell 7 window and verify it
Search Start for PowerShell 7 and open the stable app. Alternatively, run pwsh from a new terminal window. Use $PSVersionTable.PSVersion in that fresh window to check which version was installed.
Windows Terminal can host several shells. Updating PowerShell doesn't change every Terminal tab to that version. Select its PowerShell 7 profile rather than Windows PowerShell.
If a shortcut still opens an earlier version, check $PSHOME there and compare it with the updated folder. Fix the shortcut or choose the intended Terminal profile instead of repeating the installation.
Scripts can still have separate execution-policy errors after the upgrade. Use the running-scripts-disabled explanation when that message appears; an update failure has a different cause.
When the upgrade still fails
Record the installed version, $PSHOME, the command used, and the complete installer error. For a managed device, ask IT how it delivers PowerShell updates. Attach the version, folder, command, and installer error.
For a personal installation, use the installation page's troubleshooting links or linked PowerShell repository. Include your processor type and package format so support can identify the installer that failed.
The Short Version
Start the update by checking which version and folder you use. Keep its original installation method. WinGet can upgrade a detected stable package. Reopen PowerShell 7 afterward; an old shortcut or Terminal profile can still start 5.1.
Checked December 2, 2026.







