
Windows 11 comes with Windows PowerShell 5.1, but the newer PowerShell 7 is faster, works on Windows, macOS and Linux, and gets new features regularly. Both can be installed side by side. The easiest way to install PowerShell 7 is the Microsoft Store, which also keeps it updated automatically.
Method 1: Install from the Microsoft Store
- Open the Microsoft Store from the Start menu.
- Search for PowerShell.
- Choose the app named PowerShell published by Microsoft Corporation. Avoid the “Preview” version unless you want test builds.
- Click Get or Install.
When it finishes, search for PowerShell 7 in the Start menu, or type pwsh in the Run box (Windows + R).
Method 2: Install with winget
- Right-click the Start button and choose Terminal.
- Run:
winget install --id Microsoft.PowerShell --source winget
To update it later, run winget upgrade --id Microsoft.PowerShell.
Check your version
In the new PowerShell window, run:
$PSVersionTable.PSVersion
The Major number should be 7.
Make PowerShell 7 the default in Windows Terminal
- Open Terminal and click the down arrow next to the tabs, then Settings.
- On the Startup page, set Default profile to PowerShell (not Windows PowerShell).
- Click Save.
Useful tips
- The Store version has a few limits, for example it runs in a package and some system-wide settings behave differently. For admin tools or servers, the winget or MSI install is often better.
- Your old scripts usually work in PowerShell 7, but some Windows-only modules may need the
-UseWindowsPowerShelloption withImport-Module.
Frequently asked questions
Will installing PowerShell 7 remove Windows PowerShell 5.1?
No. Both stay installed. Windows PowerShell opens with powershell, and PowerShell 7 with pwsh.
Is PowerShell 7 free?
Yes. It’s free and open source, made by Microsoft.
How do I run PowerShell 7 as administrator?
Search for PowerShell 7 in the Start menu, right-click it and choose Run as administrator. In Windows Terminal, right-click the down arrow and pick the PowerShell profile while holding Ctrl to open it as administrator.


