The safest way to update PowerShell on Windows 11 is to install or update PowerShell 7, then check it with $PSVersionTable. Windows 11 still includes Windows PowerShell 5.1, while modern PowerShell 7 installs side by side as pwsh, according to Microsoft [source: Microsoft].

TLDR: Open Windows Terminal, run $PSVersionTable.PSVersion, and check whether you are using PowerShell 5.1 or PowerShell 7. If you see version 5.1, install PowerShell 7 with winget install Microsoft.PowerShell. For example, an admin who manages 75 Windows 11 laptops may save hours by updating via winget instead of downloading installers one by one. Keep 5.1 for older scripts, but use PowerShell 7 for current work.

Check which PowerShell version is installed

First, confirm what you are running. This matters because Windows 11 can have two different PowerShell apps installed at the same time.

  • Windows PowerShell usually means version 5.1.
  • PowerShell usually means version 7 or newer.
  • powershell.exe starts Windows PowerShell 5.1.
  • pwsh.exe starts PowerShell 7.

Open Windows Terminal, PowerShell, or Windows PowerShell. Then run:

$PSVersionTable.PSVersion

You will see output with Major, Minor, Patch, and sometimes PreReleaseLabel. If Major is 5, you are using Windows PowerShell 5.1. If it is 7, you are using modern PowerShell.

You can also run these quick checks:

pwsh --version

or:

powershell -version

The first command checks PowerShell 7, if installed. The second checks Windows PowerShell. Honestly, it feels like Microsoft made the names more confusing than they needed to be. One extra word can mean a completely different shell.

Update PowerShell with winget

The fastest method for most Windows 11 users is Windows Package Manager, also called winget. It is built into many current Windows 11 installs and works well from Windows Terminal.

Open Windows Terminal as Administrator. Then run:

winget install Microsoft.PowerShell

If PowerShell 7 is already installed, run:

winget upgrade Microsoft.PowerShell

To see whether an update is available first, use:

winget list Microsoft.PowerShell

or:

winget upgrade

This method is clean and repeatable. It is also useful for support teams. You can standardize installs across many PCs without clicking through setup windows all day.

Update PowerShell from the Microsoft Store

You can also install PowerShell from the Microsoft Store. This is simple for home users and smaller offices.

  1. Open the Microsoft Store.
  2. Search for PowerShell.
  3. Select the official Microsoft listing.
  4. Click Install or Update.

The Store can handle updates in the background. That said, Store updates may not run when you expect. Expect to waste time on this if the Store cache is stuck or your work PC blocks Store apps.

Update PowerShell with the MSI installer

The MSI installer is a strong choice for business devices, offline installs, and controlled rollouts. Download the current stable PowerShell installer from the official PowerShell GitHub releases page [source: GitHub].

For most Windows 11 PCs, choose the x64 MSI file. Run it, accept the license, and keep the default options unless your company has a reason to change them.

Useful installer options may include:

  • Add PowerShell to PATH, so pwsh works from any terminal.
  • Enable PowerShell remoting, if you manage machines remotely.
  • Add context menus, if you want quick folder access.

After installation, close and reopen Windows Terminal. Then run:

pwsh --version

If the new version appears, the update worked.

Set PowerShell 7 as the default in Windows Terminal

Installing PowerShell 7 does not always make it the default profile. To change that:

  1. Open Windows Terminal.
  2. Click the small arrow near the tab bar.
  3. Select Settings.
  4. Find Default profile.
  5. Choose PowerShell, not Windows PowerShell.
  6. Click Save.

Open a new tab and run:

$PSVersionTable.PSVersion

You should now see PowerShell 7 when a new terminal launches.

Image not found in postmeta

Should you remove Windows PowerShell 5.1?

In most cases, do not remove it. Windows PowerShell 5.1 is part of Windows and remains useful for old scripts, legacy modules, and some administrative tools. PowerShell 7 is better for modern scripting, cross-platform work, and newer features, but older scripts may still expect 5.1 behavior.

A practical setup is simple:

  • Use PowerShell 7 for daily work.
  • Keep Windows PowerShell 5.1 for older tools.
  • Check the version before running important scripts.
  • Test scripts in PowerShell 7 before using them in production.

Common problems after updating

If pwsh is not recognized, restart Windows Terminal. If that fails, restart the PC. The PATH setting may not refresh until a new session starts.

If Windows Terminal still opens version 5.1, change the default profile. If a script breaks in PowerShell 7, try it in Windows PowerShell 5.1 and check its modules. Some older modules were never updated properly.

Best practice: check your version with $PSVersionTable.PSVersion before blaming the script. It takes two seconds and prevents bad assumptions.

You cannot copy content of this page