Keeping PowerShell updated on Windows 11 makes your system more secure, ensures you have the latest bug fixes, and unlocks new language features and modules for your scripts. Whether you prefer using the command line, the Microsoft Store, or a traditional installer, there are several reliable ways to upgrade from the builtโin Windows PowerShell 5.1 to the latest PowerShell 7+ or to keep an existing PowerShell 7 installation current.
You can update PowerShell on Windows 11 using several methods, including winget, Microsoft Store, MSI installers from GitHub, and Windows Update for some versions.
1. Before you start: check your current PowerShell
-
Open Windows Terminal (or PowerShell):
-
Press Start, type โWindows Terminal,โ and press Enter.
-
-
Run one of these:
-
Windows PowerShell version table:
powershellโ"$PSVersionTable" -
PowerShell 7+ version table:
pwshโ"$PSVersionTable"
-
-
Or just check the binary version:
pwsh -v(PowerShell 7+) orpowershell -v(older).
This tells you whether youโre still on Windows PowerShell 5.1 (built into Windows) or already using PowerShell 7+ sideโbyโside.
2. Update PowerShell with winget (recommended)
Winget is the fastest way to update PowerShell 7+ on Windows 11.
2.1. Open an elevated terminal
-
Rightโclick Start.
-
Select โWindows Terminal (Admin)โ or โTerminal (Admin).โ
2.2. Search for the PowerShell package
Run:
winget search Microsoft.PowerShell
-
Confirm any firstโtime terms prompt with
Y.
2.3. Install or update PowerShell
-
Install or update to the latest version explicitly:
winget install --id Microsoft.PowerShell --source winget
This command will install the latest stable PowerShell 7 and upgrade an existing 7.x install in place.ย 
-
If you already have it and just want to upgrade:
winget upgrade --id Microsoft.PowerShell --source winget
You can also list all upgradeable apps first:
winget list Microsoft.PowerShell
winget upgrade Microsoft.PowerShell
2.4. Verify the update
After winget finishes:
pwsh -v
or inside PowerShell 7:
$PSVersionTable
3. Update or install from Microsoft Store
The Microsoft Store package keeps PowerShell updated automatically once installed.
3.1. Install via Microsoft Store app
-
Open Microsoft Store from Start.
-
Search for โPowerShellโ (published by Microsoft).
-
Click Get or Install.

-
The Store will handle future updates automatically, just like other Store apps.
Youโll then launch it as PowerShell 7 or โPowerShellโ from Start; it installs sideโbyโside with Windows PowerShell 5.1.
3.2. If the Store is missing or broken
If Microsoft Store isnโt working, you can often repair or reinstall it via documented commands such as wsreset.exe -i or Storeโreinstall instructions from Microsoftโs support articles before using the Store to get PowerShell.
4. Update with MSI installer from GitHub (offline / controlled)
If you prefer a standalone installer (for offline machines, packaging, or more control), use the official MSI from GitHub.
4.1. Download the latest MSI
-
Go to the official โInstall PowerShell 7 on Windowsโ documentation on Microsoft Learn and follow the link to the latest stable release on GitHub.
-
Download the
.msifile that matches your system:-
x64for most modern Windows 11 installs. -
arm64for ARMโbased devices (Surface Pro X, etc.).
-
4.2. Run the installer
-
Doubleโclick the MSI.
-
Follow the wizard:
-
Accept the license.
-
Choose whether to:
-
Add PowerShell to PATH,
-
Enable PowerShell remoting,
-
Add โOpen hereโ context menu, etc.
-
-
-
Finish and reopen your terminalโlook for a new PowerShell 7 shortcut.
When installing a newer MSI over an older version, it upgrades in place.
4.3. Verify
Open the new PowerShell 7 app or run pwsh and check:
$PSVersionTable
5. Update via Windows Update (for Windows PowerShell)
Windows PowerShell 5.1 (the builtโin version) is updated through Windows itself; you donโt manually upgrade it like PowerShell 7.
5.1. Enable Microsoft product updates
-
Open Settings โ Windows Update.
-
Click Advanced options.
-
Turn on โGet updates for other Microsoft products”
When Microsoft ships relevant fixes or servicing updates, they arrive with regular Windows updates.
6. Updating from inside PowerShell (using winget)
You can run winget commands directly from a PowerShell prompt as long as youโre in an elevated terminal.
From an admin PowerShell session:
winget search Microsoft.PowerShell
winget install --id Microsoft.PowerShell --source winget
# or
winget upgrade --id Microsoft.PowerShell --source winget
Then close and reopen the session to start using the new version.
7. Handling multiple PowerShell versions
On Windows 11 itโs normal to have both Windows PowerShell 5.1 and PowerShell 7+ installed:
-
Windows PowerShell 5.1:
-
Launched as
powershell. -
Lives in
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe. -
Updated through Windows Update.
-
-
PowerShell 7+:
-
Launched as
pwsh(or from the โPowerShell 7โ shortcut). -
Installed via winget, Store, or MSI, usually under
C:\Program Files\PowerShell\7\pwsh.exe.
-
You can pin the PowerShell 7 profile in Windows Terminal so itโs your default shell while still keeping 5.1 for legacy scripts.
8. Quick reference: common commands

-
Check version (in any PowerShell):
pwsh -v$PSVersionTable
-
Update with winget (recommended):
winget install --id Microsoft.PowerShell --source winget
# or
winget upgrade --id Microsoft.PowerShell --source winget
-
Verify after update:
pwsh -v
# or
$PSVersionTable
9. Troubleshooting common PowerShell update problems
9.1. โwinget is not recognizedโ error
If you runย wingetย and see:
โwinget : The term 'winget' is not recognized as the name of a cmdlet, function, script file, or operable program,โ Windows Package Manager is missing or not registered for your user.
Try these steps:
-
Make sure youโre on a supported Windows 11 build and have installed all latest updates inย Settings โ Windows Update.
-
Sign out and sign back in (winget is sometimes registered on first signโin only after opening a new session).โ
-
Open PowerShell as admin and run the Microsoftโdocumented registration/repair steps (for example via the Microsoft.WinGet.Client moduleโsย
Repair-WinGetPackageManager -Force -Latest). -
Open aย newย terminal window and tryย
winget --versionย again.
If it still fails, you can install PowerShell using the MSI from GitHub or the Microsoft Store as described earlier, then revisit winget later.
9.2. PowerShell 7 wonโt start or disappears from Terminal
Sometimes after an update, Windows Terminal canโt findย pwsh.exe, or launching PowerShell 7 does nothing.
To fix it:
-
Check whetherย
pwsh.exeย still exists underยC:\Program Files\PowerShell\7\ย (or a similar path). -
If itโs missing or the folder only has partial files, reinstall the latest version using:
-
winget install --id Microsoft.PowerShell --source winget, or -
the latest MSI from the official GitHub release page.
-
-
In Windows Terminal, openย Settings โ Profilesย and make sure theย PowerShellย profile points to the correctย
pwsh.exeย path (or delete and let Terminal recreate it).
After reinstalling, open a fresh Terminal window and runย $PSVersionTableย to confirm everything works.โ
9.3. Multiple PowerShell entries in Start or Terminal
Having both Windows PowerShell 5.1 and PowerShell 7+ is expected on Windows 11, but it can be confusing.
Keep this in mind:
-
Windows PowerShell 5.1:
-
Label: โWindows PowerShellโ.
-
Command:ย
powershell. -
Updated only via Windows Update.
-
-
PowerShell 7+:
-
Label: โPowerShellโ or โPowerShell 7โ.
-
Command:ย
pwsh. -
Updated via winget, Store, or MSI.
-
If you want 7+ as your default:
-
Openย Windows Terminal โ Settings โ Startup, set default profile toย PowerShellย (the one that runsย
pwsh).โ -
Optionally unpin the old โWindows PowerShellโ tile from Start so you always launch the newer shell first.
Keeping PowerShell current doesnโt have to be complicated: once you know which version youโre using and which method fits your setupโwinget, Store, MSI, or just letting Windows Update handle 5.1โyou can standardize on a simple routine for all your machines. For most users, a quick winget upgrade every so often is enough, while administrators can script MSI or winget deployments across fleets and rely on the troubleshooting steps above if anything goes wrong.
Recent Posts You Might Like
- Microsoft Adds Multi-Model โCritiqueโ and โCouncilโ to Microsoft 365 Copilot Researcher for Deeper, More Accurate AI Research
- Xbox Games Showcase 2026 Dated for June 7 With Gears of War: EโDay Direct and FanFestโs Big Return
- Exciting Xbox Partner Preview March 2026 Recap: 19 Games, 7 World Premieres, and 14 DayโOne Game Pass Launches
About The Author
Discover more from Microsoft News Now
Subscribe to get the latest posts sent to your email.