Since 2016 · 50,000+ customers · ★ 5.0 on Google Live chatWhatsAppTelegramOpen a ticket
Get started
Windows Server

How to Install or Upgrade to PowerShell 7 on Windows

How to install or upgrade to PowerShell 7 on Windows guide by 99RDP

Windows 10, Windows 11 and Windows Server still ship with Windows PowerShell 5.1, which no longer gets new features. The modern, cross-platform version is PowerShell 7. It installs alongside 5.1 instead of replacing it, so your old scripts keep working while you get faster performance, new operators and current modules. This guide shows the quickest ways to install PowerShell 7, how to upgrade it later, and which version to pick.

Quick answerOpen a terminal and run

winget install --id Microsoft.PowerShell --source winget

Then start it with pwsh. To upgrade later: winget upgrade --id Microsoft.PowerShell.

Which PowerShell version should you install?

VersionTypeNotes
PowerShell 7.6LTS (long-term support)Released March 2026, built on .NET 10. The recommended version for servers and production scripts.
PowerShell 7.5StableShort support window; fine on a workstation.
PowerShell 7.4Previous LTSSupported until 10 November 2026. Plan your move to 7.6.
Windows PowerShell 5.1Built into WindowsStill present and still needed by some older modules. Can't be upgraded to 7.

Check what you have now:

$PSVersionTable.PSVersion

If the major version is 5, you're in Windows PowerShell. PowerShell 7 opens as a separate program, pwsh.exe.

Ways to install PowerShell 7 on Windows: winget, MSI package or Microsoft Store
Ways to install PowerShell 7

winget is built into Windows 11 and current Windows 10 and Windows Server 2025 builds.

winget search Microsoft.PowerShell
winget install --id Microsoft.PowerShell --source winget          # stable/LTS
winget install --id Microsoft.PowerShell.Preview --source winget  # preview

winget downloads the official MSI and installs it to C:\Program Files\PowerShell\7. Open a new terminal and type pwsh.

Useful options in the PowerShell 7 MSI installer: add to PATH, Open here menus, update via Microsoft Update
MSI options

Method 2: Install with the MSI package

Use this on servers without winget, or when you want to choose options.

  1. Download the PowerShell-7.x.x-win-x64.msi file from the official PowerShell GitHub releases page.
  2. Run the installer. On the options page, consider ticking:
    • Add 'Open here' context menus to Explorer
    • Enable PowerShell remoting
    • Use Microsoft Update when checking for updates, so PowerShell 7 is patched with Windows Update
  3. Finish the wizard and start PowerShell 7 from the Start menu.

For a silent install, for example in a deployment script:

msiexec.exe /package PowerShell-7.6.4-win-x64.msi /quiet `
  ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 ENABLE_PSREMOTING=1 `
  USE_MU=1 ENABLE_MU=1 ADD_PATH=1

Replace the file name with the version you downloaded.

Method 3: Microsoft Store or ZIP

  • Microsoft Store: search for "PowerShell". It updates itself automatically, but runs in a sandbox with some limits, so the MSI is better for servers.
  • ZIP package: extract it anywhere and run pwsh.exe. Useful when you can't install software, or to test a version side by side.

How to upgrade PowerShell 7

PowerShell 7 shows a message at startup when a newer version is available. To upgrade:

winget upgrade --id Microsoft.PowerShell

Or download the newer MSI and run it; it replaces the old 7.x installation in place and keeps your profile and modules. If you enabled Microsoft Update during setup, new releases also arrive through Windows Update.

Run the upgrade from Windows PowerShell 5.1 or Command Prompt, not from inside pwsh, so the files aren't in use.

Comparison of Windows PowerShell 5.1 and PowerShell 7: executable, edition, side by side
5.1 vs 7

Make PowerShell 7 your default in Windows Terminal

Open Windows Terminal → Settings → Startup → Default profile and choose PowerShell (the black icon is PowerShell 7; "Windows PowerShell" is 5.1). In VS Code, the PowerShell extension uses PowerShell 7 automatically once it's installed.

Things to know after upgrading

  • Profiles are separate: PowerShell 7 uses Documents\PowerShell\Microsoft.PowerShell_profile.ps1; 5.1 uses Documents\WindowsPowerShell\. Copy anything you need.
  • Older modules: most Windows modules work in 7. For the few that don't, use Import-Module Name -UseWindowsPowerShell, which runs them in a 5.1 compatibility session.
  • Execution policy is set per edition. If scripts won't run in pwsh, check Get-ExecutionPolicy -List.
  • Windows 7 and 8.1: PowerShell 7 isn't supported there. The newest version for Windows 7 is Windows PowerShell 5.1 (Windows Management Framework 5.1).

Uninstall PowerShell 7

Go to Settings → Apps → Installed apps, find PowerShell 7 and click Uninstall, or run winget uninstall --id Microsoft.PowerShell. Windows PowerShell 5.1 stays in place.

Frequently asked questions

How do I upgrade Windows PowerShell 5.1 to PowerShell 7?

You can't upgrade it in place. Install PowerShell 7 alongside it with winget install --id Microsoft.PowerShell and start it with pwsh.

What is the latest version of PowerShell?

The current long-term support release is PowerShell 7.6, released in March 2026. Run winget upgrade --id Microsoft.PowerShell to get the latest patch.

Where do I download PowerShell 7?

From the official PowerShell GitHub releases page, through winget, or from the Microsoft Store.

Can I update PowerShell on Windows 7?

Only to Windows PowerShell 5.1 by installing Windows Management Framework 5.1. PowerShell 7 doesn't support Windows 7.

Minakshi, Server Administrator L1 at 99RDP
Written byMinakshiServer Administrator L1, 99RDP. Part of the team that runs our servers and answers support.
Keep reading

More Windows Server guides

All Windows Server guides

Need a server for this?

✓ Setup in minutes✓ Full admin access✓ 7-day refund on new services