How to install PowerShell 7 in Windows 11 & 10

Run winget install --id Microsoft.PowerShell --source winget in Terminal to install PowerShell 7 on Windows 11 or Windows 10, then type pwsh in a new window to start it.

The sections below also cover the MSI installer, the Microsoft Store and ZIP packages, Windows Server, making PowerShell 7 the Terminal default, updates and removal.

How to install PowerShell 7 in Windows 11 & 10
After setup, PowerShell 7 (x64) shows in Start as its own app, separate from Windows PowerShell and Windows PowerShell ISE. (Image: Microsoft)

Method 1: Install PowerShell using WinGet

WinGet is Microsoft's recommended way to install PowerShell 7 on Windows client PCs. The Windows Package Manager is built into Windows 11 and modern Windows 10 as part of App Installer.

  1. Right-click Start and select Terminal on Windows 11, or open Windows PowerShell from Start on Windows 10.
  2. Type winget search --id Microsoft.PowerShell --exact and press Enter to see the current release, PowerShell 7.6.
  3. Type winget install --id Microsoft.PowerShell --source winget and press Enter.
  4. Select Yes if Windows asks for permission, then wait for the Successfully installed message.
  5. Close the window, open a new one, type pwsh and press Enter to start PowerShell 7.

From PowerShell 7.6.0, the winget package installs the MSIX build by default. Add --installer-type wix to the install command to get the MSI build instead, which installs for all users and supports remoting.

Beginning with PowerShell 7.7.0 there is no MSI package, so winget installs only the MSIX build. For previews, use the ID Microsoft.PowerShell.Preview.

Install PowerShell using WinGet with the winget command list on screen
The search and install commands listed here are the two used to find Microsoft.PowerShell and add PowerShell 7. (Image: Microsoft)

PowerShell 7 system requirements for Windows 11 and 10

Check these points before you start, because they decide which install method works on your PC. PowerShell 7 is free and released under the MIT license.

Requirement What applies
Supported Windows versions Windows 10, Windows 11, Windows Server 2016, 2019 and 2022; support ends when either the Windows version or the PowerShell release reaches end of support
WinGet Windows 10 version 1809 (build 17763) or later, Windows 11, and Windows Server 2025 with Desktop Experience; not on Windows Server 2022 or earlier
Administrator rights Needed for the MSI package; the ZIP package can be deployed by any user, and the MSIX package installs for the current user only
Processor x64 and Arm64 packages are available; use the Arm64 MSI, MSIX or ZIP on Arm PCs such as the Surface Pro X
Microsoft Update for PowerShell Windows 10 version 1809 or Windows Server 2019 or newer, on an x64 system
Windows PowerShell 5.1 Stays installed; PowerShell 7 runs side by side with it in its own folder

Run winver to see your Windows version and build. Install PowerShell 7.6, the current Long Term Servicing (LTS) release, which is supported until 14 November 2028; PowerShell 7.4 and 7.5 both reach end of support on 10 November 2026.

PowerShell 7 MSI vs MSIX vs ZIP package

Your situation Install this Why
Everyday use on a Windows 11 or Windows 10 PC WinGet (MSIX by default) One command, and updates come through winget or the Store
You need remoting into the PC, all-users profiles or Set-ExecutionPolicy -Scope LocalMachine MSI package MSIX runs in a sandbox that blocks changes to the PowerShell folder
Windows Server or enterprise deployment MSI package Installs for all users, supports silent install and Microsoft Update
No admin rights, several PowerShell 7 versions side by side, Server Core, IoT or Arm ZIP package No installer and no prerequisite check; extract and run pwsh.exe
You prefer the Microsoft Store and automatic updates Microsoft Store (MSIX) Updates are built into Windows; single user only
.NET developer with the .NET SDK installed .NET global tool Installs and updates like your other dotnet tools

Method 2: Install PowerShell using the EXE installer (MSI package)

There is no .exe setup file for PowerShell 7 on Windows. The downloadable installer is an .msi package, and Microsoft recommends it for servers and managed PCs.

  1. Open https://github.com/PowerShell/PowerShell/releases/latest in your browser.
  2. Under Assets, download PowerShell-7.6.6-win-x64.msi, or PowerShell-7.6.6-win-arm64.msi on an Arm PC.
  3. Double-click the downloaded .msi file and select Next on the welcome page.
  4. Keep the default folder, C:\Program Files\PowerShell\; the installer adds the 7 subfolder itself.
  5. Tick the optional actions you want: add PowerShell to PATH, register the event logging manifest, enable remoting, disable telemetry, and the Explorer context menu items.
  6. Leave both Microsoft Update check boxes ticked to receive PowerShell 7 updates through Windows Update.
  7. Select Install, choose Yes at the User Account Control prompt, then select Finish.

The MSI needs administrator rights. Installing a newer 7.x MSI later replaces the older PowerShell 7 release in place.

Install PowerShell 7 MSI package with both Microsoft Update boxes ticked
Leave both boxes ticked so PowerShell 7 updates arrive through Windows Update, then select Next to continue setup. (Image: Microsoft)

Method 3: Install PowerShell 7 from the Microsoft Store

The Store version is the MSIX package. It suits casual use and updates itself, but it installs for one user only.

  1. Open Microsoft Store from Start.
  2. Search for PowerShell and open the PowerShell app from Microsoft, product ID 9MZ1SNWT0N5D.
  3. Select Get or Install and wait for the download to finish.
  4. Open a new terminal window and type pwsh, or start PowerShell 7 from the Start menu.

To install a downloaded .msixbundle file instead, double-click it or run Add-AppxPackage -Path ".\PowerShell-7.6.6.msixbundle".

The Store sandbox blocks remote sessions into that copy and the commands Register-PSSessionConfiguration, Update-Help -Scope AllUsers, Enable-ExperimentalFeature -Scope AllUsers and Set-ExecutionPolicy -Scope LocalMachine. All-users profile scripts are also unavailable; current-user profiles still work.

Method 4: Install the PowerShell 7 ZIP package

The ZIP archive is a portable copy with no installer. Use it to run several PowerShell 7 versions side by side, or on Server Core, IoT and Arm devices.

  1. Open https://github.com/PowerShell/PowerShell/releases/latest and, under Assets, download PowerShell-7.6.6-win-x64.zip or PowerShell-7.6.6-win-arm64.zip.
  2. If Windows marked the download as blocked, run Unblock-File -Path .\PowerShell-7.6.6-win-x64.zip from the download folder.
  3. Extract the archive to C:\Program Files\PowerShell\7, or to a folder in your user profile if you lack admin rights.
  4. Use a different folder for each extra PowerShell 7 version you keep side by side.
  5. Open the folder and run pwsh.exe.
  6. Add the folder to PATH and create a Start menu shortcut yourself, because the ZIP does neither.

Add the folder through the PATH environment variable so pwsh works from any window. The ZIP skips the prerequisite check, so meet the WSMan remoting requirements yourself if you need remoting.

Install PowerShell 7 from Windows PowerShell

Use these two lines on a PC without winget, such as Windows Server 2022 or Server Core. Run them in Windows PowerShell opened as administrator.

Invoke-WebRequest -Uri https://github.com/PowerShell/PowerShell/releases/download/v7.6.6/PowerShell-7.6.6-win-x64.msi -OutFile PowerShell-7.6.6-win-x64.msi
msiexec.exe /package PowerShell-7.6.6-win-x64.msi /quiet ADD_PATH=1 ENABLE_PSREMOTING=1 REGISTER_MANIFEST=1 USE_MU=1 ENABLE_MU=1

Invoke-WebRequest saves the official x64 MSI to the current folder. msiexec.exe /package installs it, /quiet hides the wizard, and each property switches on one install option. Replace x64 with arm64 on Arm hardware.

You should see: No window appears. When the install finishes, open a new window and type pwsh; PowerShell 7 starts, and $PSVersionTable shows PSVersion 7.6.6.

On a desktop PC with winget, winget install --id Microsoft.PowerShell --source winget from Windows PowerShell does the same job in one line.

PowerShell 7 MSI command-line options

These MSI properties control a silent or scripted install. Set each one to 1 to switch the option on.

Property What it controls
USE_MU 1 (default) opts PowerShell into updates through Microsoft Update, WSUS or Configuration Manager; 0 opts out
ENABLE_MU 1 (default) turns on Microsoft Update for automatic updates; 0 skips it but does not remove an existing setting
ADD_PATH Adds PowerShell 7 to the Windows PATH variable
ENABLE_PSREMOTING Turns on PowerShell remoting during installation
REGISTER_MANIFEST Registers the Windows Event Logging manifest
ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL Adds an Open PowerShell item to the File Explorer context menu
ADD_FILE_CONTEXT_MENU_RUNPOWERSHELL Adds a Run with PowerShell item to the context menu for script files
DISABLE_TELEMETRY Turns off telemetry by setting the POWERSHELL_TELEMETRY_OPTOUT environment variable
INSTALLFOLDER Changes the base folder, $Env:ProgramFiles\PowerShell\ by default; the 7 or 7-preview subfolder name can't change

Group Policy can override the update options. The full list of msiexec switches is in Microsoft's Windows Installer command-line documentation.

How to install PowerShell 7 on Windows Server

The MSI package is Microsoft's first choice for Windows Server. Match your server version to a row and use that route.

Your server Use this Why
Windows Server 2025 with Desktop Experience winget install --id Microsoft.PowerShell --source winget --installer-type wix WinGet is included, and the MSI build supports remoting and all users
Windows Server 2022, 2019 or 2016, or any Server Core install The Invoke-WebRequest and msiexec commands above WinGet isn't available on these servers
Windows Server 2016 MSI, then update it yourself with each new MSI Microsoft Update for PowerShell needs version 1809 (Windows Server 2019) or newer
Server Core needing more than one PowerShell 7 version ZIP package in separate folders Each copy runs from its own folder without an installer

Deploying the MSI needs administrator permission, and the same package works with Microsoft Configuration Manager for fleets of servers.

Install PowerShell 7 as a .NET global tool

dotnet tool install --global PowerShell

Works only when the .NET SDK is already installed. The installer adds $HOME\.dotnet\tools to your PATH, but the window you ran it in doesn't see the change.

You should see: Open a new shell and type pwsh; PowerShell 7 starts. Remove it later with dotnet tool uninstall --global PowerShell.

How to open PowerShell v7 or higher

PowerShell 7 opens through its own pwsh command and Start menu entry. Typing powershell still opens Windows PowerShell 5.1.

  1. Select Start, type PowerShell 7 and open the item labeled PowerShell 7.
  2. Or press Win + R, type pwsh and press Enter.
  3. Or type pwsh inside Command Prompt or Windows PowerShell to switch shells in the same window.
  4. In Windows Terminal, select the down arrow next to the tabs and choose the PowerShell profile.
  5. For a preview build, open the item labeled PowerShell 7-preview instead.

The entries named Windows PowerShell and Windows PowerShell ISE are version 5.1, and the ISE works only with 5.1. To get elevated rights, run PowerShell as administrator from the same Start menu entry.

Open PowerShell 7 in Windows Terminal from the profile dropdown menu
The PowerShell entry starts PowerShell 7, while the Windows PowerShell entry further down is the older version 5.1. (Image: Microsoft)

How to check PowerShell 7 version in Windows 11

$PSVersionTable

Run it inside the pwsh window. The table lists the running version, the edition and the operating system.

You should see: PSVersion shows 7.6.6 or later and PSEdition shows Core. Windows PowerShell 5.1 shows 5.1 and Desktop instead.

Type $PSHOME to see how PowerShell 7 was installed: C:\Program Files\PowerShell\7 points to the MSI, a path starting with C:\Program Files\WindowsApps\ means MSIX or Store, $HOME\.dotnet\tools means the .NET tool, and any other folder means a ZIP copy. More ways to check the PowerShell version work in both editions.

Set PowerShell 7 as default in Windows Terminal

Windows Terminal creates a PowerShell 7 profile automatically once pwsh is installed, but new tabs still open the default profile.

  1. Open Windows Terminal.
  2. Select the down arrow next to the tabs and choose Settings.
  3. Select Startup in the left pane.
  4. Open the Default profile list and choose PowerShell, not Windows PowerShell.
  5. Select Save.

New tabs from the + button, Ctrl + Shift + T and wt new-tab now open PowerShell 7, and you can still switch between Terminal profiles from the down arrow when you need Windows PowerShell or Command Prompt.

Set PowerShell 7 as default in Windows Terminal from the Default profile list
On the Startup page, change Default profile from Windows PowerShell to PowerShell, then select Save at the bottom. (Image: Microsoft)

PowerShell 7 vs Windows PowerShell 5.1

PowerShell 7 does not replace Windows PowerShell 5.1. Both stay installed, and each keeps its own executable, folders and profiles.

Point Windows PowerShell 5.1 PowerShell 7
Executable powershell.exe pwsh.exe
Install folder $Env:windir\System32\WindowsPowerShell\v1.0 $Env:ProgramFiles\PowerShell\7
How you get it Built into Windows 10, Windows 11 and Windows Server 2016 and later Separate install with winget, MSI, MSIX, ZIP or dotnet
Built on .NET Framework 4.x .NET 10.0 for 7.6, .NET 9.0 for 7.5, .NET 8.0 for 7.4
Profile folder $HOME\Documents\WindowsPowerShell $HOME\Documents\PowerShell
Module paths Windows PowerShell module folders only Its own folders plus the Windows PowerShell module folders
PSEdition Desktop Core
ISE Windows PowerShell ISE works Not supported; ISE works only with 5.1

Some Windows PowerShell modules load in PowerShell 7 through its Windows Compatibility feature, while others still need 5.1. Keep both editions and use whichever a module requires.

How to update PowerShell 7 to the latest version

Update with the same method you used to install. A newer PowerShell 7 release replaces the older one; previews install side by side with stable builds.

winget list --id Microsoft.PowerShell --upgrade-available
winget upgrade --id Microsoft.PowerShell

The first line reports whether a newer version exists. The second installs it, keeping the same MSI or MSIX format you installed before.

You should see: Run $PSVersionTable in a new pwsh window; PSVersion shows the new number.

MSI installs with the Microsoft Update boxes ticked get updates through Windows Update as optional updates, up to two weeks after each release. Microsoft Update stays in the same channel, so 7.6 LTS receives 7.6 patches only. Store installs update through the Store, and ZIP copies need a fresh download.

Update PowerShell 7 to the latest version with winget upgrade output
WinGet downloads the newer MSI from GitHub, verifies the installer hash and reports Successfully installed when it finishes. (Image: Microsoft)

How to uninstall PowerShell 7

  1. If you installed with winget, run winget uninstall --id Microsoft.PowerShell.
  2. If you used the MSI, press Win + R, type appwiz.cpl, select PowerShell 7 in Programs and Features and choose Uninstall.
  3. If you used the Store, open Start, search for PowerShell 7, and select Uninstall from its options.
  4. If you used the ZIP, delete the folder you extracted, then remove it from PATH.
  5. If you used the .NET tool, run dotnet tool uninstall --global PowerShell.

Windows PowerShell 5.1 stays on the PC after PowerShell 7 is removed.

PowerShell 7 install not working in Windows 11 or 10

winget is not recognized or not available

WinGet registers only after the first sign-in, needs Windows 10 version 1809 or later, and isn't included on Windows Server 2022 or earlier.

  1. Run winver and check that the version is 1809 or later.
  2. In Windows PowerShell, run Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe to register WinGet.
  3. Close and reopen the terminal, then run the winget install command again.
  4. On Windows Server 2022 or earlier, use the MSI commands instead.

pwsh is not recognized after a ZIP install

The ZIP package does not add PowerShell 7 to PATH or the Start menu.

  1. Add the extracted folder to the PATH environment variable.
  2. Open a new terminal window so it reads the updated PATH.
  3. Type pwsh again, or run pwsh.exe from the folder directly.

PowerShell 7 is not updating through Windows Update

Updates arrive as optional updates up to two weeks after release, Group Policy can block them, or the Microsoft Update boxes were left clear.

  1. Check the optional updates list in Windows Update.
  2. From the MSI folder, run msiexec.exe /fmu .\PowerShell-7.6.6-win-x64.msi USE_MU=1 ENABLE_MU=1 to turn the update option on.
  3. Or update now with winget upgrade --id Microsoft.PowerShell.

Set-ExecutionPolicy -Scope LocalMachine or remoting fails in PowerShell 7

The MSIX or Store build runs in a sandbox that blocks writes to its own folder.

  1. Run $PSHOME; a path under C:\Program Files\WindowsApps\ confirms the MSIX build.
  2. Uninstall it with winget uninstall --id Microsoft.PowerShell or from Start.
  3. Install the MSI build with winget install --id Microsoft.PowerShell --source winget --installer-type wix.

PowerShell 7 installation FAQ

How do I install PowerShell 7 on Windows 11?

Open Terminal and run winget install –id Microsoft.PowerShell –source winget. WinGet is built into Windows 11, so no download page is needed. When the install finishes, open a new window and type pwsh to start PowerShell 7.

How do I install PowerShell 7 on Windows 10?

On Windows 10 version 1809 or later, run winget install –id Microsoft.PowerShell –source winget in Windows PowerShell. On older builds, or without winget, download the PowerShell 7 MSI from the official GitHub releases page and run it.

How do I install PowerShell 7 on Windows Server 2019?

Download PowerShell-7.6.6-win-x64.msi with Invoke-WebRequest in an administrator Windows PowerShell window, then install it with msiexec.exe /package and /quiet. WinGet isn't available on Windows Server 2019, so the MSI is the route Microsoft recommends.

How do I install PowerShell 7 on Windows Server 2016?

Use the same MSI and msiexec commands as on Server 2019. PowerShell 7 supports Windows Server 2016, but Microsoft Update for PowerShell needs version 1809 or newer, so install each newer MSI yourself to update it.

Can I install PowerShell 7 from PowerShell?

Yes. Run winget install –id Microsoft.PowerShell –source winget from Windows PowerShell, or download the MSI with Invoke-WebRequest and install it with msiexec. Both work from the built-in Windows PowerShell 5.1 window.

Is PowerShell 7 included in Windows 11?

No. Windows 11 and Windows 10 include Windows PowerShell 5.1 only. PowerShell 7 is a separate, free download that you install with winget, the MSI, the Microsoft Store, a ZIP archive or the .NET global tool.

Does PowerShell 7 replace Windows PowerShell 5.1?

No. PowerShell 7 installs to its own folder and runs side by side with Windows PowerShell 5.1. Its command is pwsh, while powershell still opens version 5.1, and each edition keeps separate profiles.

Where is PowerShell 7 installed?

The MSI installs PowerShell 7 to C:\Program Files\PowerShell\7, and previews go to C:\Program Files\PowerShell\7-preview. MSIX and Store copies live under C:\Program Files\WindowsApps. Type $PSHOME in pwsh to see the folder in use.

Which version of PowerShell 7 should I install?

Install PowerShell 7.6, the current Long Term Servicing release, supported until 14 November 2028. PowerShell 7.4 and 7.5 reach end of support on 10 November 2026, and 7.7 is still a preview.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

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