How to Install PowerShell 7 on Windows

PowerShell 7 installs alongside Windows PowerShell 5.1 without replacing it. On a supported Windows PC, run winget install --id Microsoft.PowerShell --source winget, then open the new PowerShell app and check its version.

Windows Terminal can display either shell inside its tabs. Opening Terminal alone doesn't tell you which PowerShell version is running. Check the version inside the session before following instructions that require PowerShell 7.

Check the version already installed

Open the PowerShell window you normally use and enter:

$PSVersionTable.PSVersion

The Major value tells you the main version. A value of 5 means the session is Windows PowerShell 5.1. A value of 7 means that session already uses PowerShell 7, although it may still need an update.

Drawing of a PowerShell terminal with the version check command

Microsoft's Windows installation instructions list WinGet as the recommended method for Windows clients. You can also download a standalone package if WinGet doesn't suit your setup.

Choose the stable Microsoft.PowerShell package unless a task requires a preview. Microsoft.PowerShell.Preview is a separate package; its higher version number isn't a reason to choose it for routine use.

On a work computer, use the installation method approved by IT. That matters when IT controls software installation or updates. A company package can have different update handling from a package installed for personal use.

Install the stable package with WinGet

Open Command Prompt, Windows PowerShell or an existing PowerShell 7 session. WinGet can run from any of those shells. Check that the package manager is available:

winget --version

If a version appears, search for the stable PowerShell package:

winget search --id Microsoft.PowerShell --exact

Read the package name and source in the result. Then install it with:

winget install --id Microsoft.PowerShell --source winget
Drawing of Windows PowerShell running the PowerShell 7 installation command

Follow any agreement or installation prompts shown by WinGet. If Windows requests administrator permission, confirm it only for the installation you started. Keep the window open until it reports the installation result.

The type of package WinGet installs by default can change between releases. The current instructions say WinGet uses MSIX by default starting with the PowerShell 7.6 package. Don't assume every new installation uses the older MSI installer.

If winget isn't recognized, the package manager isn't available in that session. Check Microsoft App Installer and its Windows requirements, or use a standalone package from the official installation page.

WinGet support is separate from PowerShell support. Older Windows Server releases don't include WinGet; Server 2025 includes it for Desktop Experience. Check requirements before using server instructions on a home laptop.

Open PowerShell 7 and confirm the result

Close the old terminal session after installation, open Start and search for PowerShell 7. Alternatively, open a fresh terminal and enter:

pwsh

Run the version check again inside that new session. Its Major value should be 7. That confirms you're running PowerShell 7, not just that its installer finished.

If a newly opened Windows PowerShell window still reports 5.1, that is expected. Its executable is powershell.exe. PowerShell 7 uses pwsh.exe, and the two can remain installed at the same time.

I'd keep the older shell available. Some Windows modules still need it, and installing PowerShell 7 doesn't make every older administration command work in the new version.

If pwsh isn't recognized after installation, try a new terminal before reinstalling. An existing session may still use the old folder list when searching for commands. The Start-menu entry also lets you check whether the app installed.

Use a standalone package when WinGet isn't suitable

The official installation page links to release packages on the PowerShell GitHub repository.

Drawing of the PowerShell 7.7.0 release Assets list on GitHub

Choose the stable release and the package for the PC's architecture. x64 and Arm64 are packages for different types of processor, not different quality levels.

Open Settings > System > About and check System type when you're unsure which architecture the PC uses. Match that information to the package. Don't choose an Arm64 download just because Windows itself is 64-bit.

For a release offering MSI, download the matching file, double-click it and follow its prompts. Package options change with PowerShell 7.7, so use the choices offered for the release you're installing.

A ZIP package helps if you want to keep separate versions. Extract it manually and launch PowerShell from that folder. Choose ZIP for that extra control; don't expect the same shortcuts or update behavior as an installer.

Store and MSIX packages have their own restrictions. Check the installation page's limitations for advanced ways of connecting PowerShell to Windows or managing the PC. For ordinary use, start with the recommended client installation route.

Keep Terminal profiles and script permissions separate

Terminal can open Command Prompt, Windows PowerShell and PowerShell 7 tabs. If it continues opening 5.1 by default, open Terminal's Settings, choose Startup, then change Default profile to the installed PowerShell 7 profile.

Changing that profile chooses which shell opens. It doesn't convert scripts, move modules or change the version inside a tab that is already running. Open a new tab and confirm its version after changing the default.

Once installed, use the PowerShell folder navigation steps to reach a script's folder. A path error and a missing PowerShell installation are separate problems, so read the command's exact response.

If a script is blocked after the shell opens, check the running scripts is disabled message. PowerShell installation and script execution policy are separate controls, especially when IT manages your device.

For an installation failure, keep WinGet's exact error or the package installer's message. Give IT that message, or use the help links in the official installation documentation, with your Windows version and chosen package architecture.

The Short Version

Install Microsoft.PowerShell, launch pwsh or PowerShell 7, and check $PSVersionTable.PSVersion. Windows PowerShell 5.1 stays available. Use a standalone package when your setup needs another installation route.

Checked December 2, 2026.

If you have any business, I can build it online

Hi, I’m Hamza. I’ve been building websites and online shops for business owners since 2019, and I also built this site you’re reading.

Tell me what business you have or what you’re working on. I’ll look into how much it can grow online, and then we talk. You don’t have to buy anything or hire me first.

Chat with me on my site and I’ll show you proof of businesses I’ve helped and how they’ve grown.

Written by Isaac Smith

Isaac Smith is the founder and editor of PC Glance, a website that covers computers, laptops, and technology. He is a tech enthusiast and a computer geek who loves to share his insights and help his readers make smart choices when buying tech gadgets or laptops. He is always curious and updated about the latest tech trends.

More from Isaac Smith

Leave a Comment