How to Install PowerShell 7 on Windows 11 From the Microsoft Store

Watch the video on YouTube
▶ Watch the video on YouTube

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

  1. Open the Microsoft Store from the Start menu.
  2. Search for PowerShell.
  3. Choose the app named PowerShell published by Microsoft Corporation. Avoid the “Preview” version unless you want test builds.
  4. 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

  1. Right-click the Start button and choose Terminal.
  2. 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

  1. Open Terminal and click the down arrow next to the tabs, then Settings.
  2. On the Startup page, set Default profile to PowerShell (not Windows PowerShell).
  3. 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 -UseWindowsPowerShell option with Import-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.

Leave a Comment

Your email address will not be published. Required fields are marked *