Updating PowerShell version on Windows

Run winget upgrade --id Microsoft.PowerShell to update PowerShell 7 on Windows 11 or Windows 10; Windows PowerShell 5.1 is a separate product that only gets security updates through Windows Update.

The sections below cover the MSI, Microsoft Store, Windows PowerShell 5.1 on older systems, remote computers, Group Policy, WSUS and the fixes for updates that do not arrive.

Updating PowerShell version on Windows
WinGet finds Microsoft.PowerShell, downloads the MSI and installs it; this older run moved 7.3.4 to 7.3.5, and 7.6.6 is current. (Image: Microsoft)

Using WinGet package manager to install or update PowerShell Core

PowerShell Core is the older name for what Microsoft now calls PowerShell 7. The WinGet package manager is Microsoft's recommended route on Windows client PCs, and the commands work from Command Prompt, Windows PowerShell or PowerShell 7.

  1. Open Windows Terminal, Command Prompt or Windows PowerShell.
  2. Run winget list --id Microsoft.PowerShell --upgrade-available to see whether a newer release exists.
  3. Run winget upgrade --id Microsoft.PowerShell to install it. WinGet keeps your current package format (MSI or MSIX) when the new version offers that format.
  4. If PowerShell 7 is missing, run winget install --id Microsoft.PowerShell --source winget instead.
  5. Open a new window and run pwsh -Version to read the installed version.

A first-time setup has more options than an update, so you can install PowerShell 7 with the MSI, ZIP or .NET tool if WinGet is not an option.

Windows PowerShell 5.1 vs PowerShell 7 update options

Your situation Do this Why
Windows 11 or Windows 10 showing version 5.1 Keep Windows Update current, then add PowerShell 7 if you need it 5.1 is the final Windows PowerShell release and ships with Windows
PowerShell 7 on a single PC winget upgrade --id Microsoft.PowerShell Fastest route, and it keeps your package format
PowerShell 7 from the Microsoft Store Let the Store update it Store installs update automatically
PowerShell 7 on Windows Server 2022 or earlier Run the newer MSI WinGet is not available on those Server versions
Windows 8.1, Server 2012 or Windows 7 on version 2.0 to 5.0 Install WMF 5.1 PowerShell 5.1 comes from the WMF 5.1 package on these systems
Many computers in a domain Remote script, Group Policy, or WSUS Each pushes the MSI or update without visiting every PC

Can you update Windows PowerShell 5.1 to PowerShell 7?

No. PowerShell 7 installs next to Windows PowerShell 5.1 and does not replace it. Windows PowerShell runs as powershell.exe from $Env:windir\System32\WindowsPowerShell\v1.0, while PowerShell 7 runs as pwsh.exe from $Env:ProgramFiles\PowerShell\7. Microsoft no longer adds features to 5.1, and some older modules still need it, so keep both.

You do not have to install PowerShell 7 unless you need its features. Microsoft describes it as faster, more secure and actively developed, while 5.1 only gets security updates.

PowerShell 7 and Windows PowerShell listed side by side in Windows search
PowerShell 7 runs as pwsh.exe from its own folder, so installing it leaves powershell.exe and version 5.1 in place. (Image: Microsoft)

Upgrading to Windows PowerShell 5.1

Windows PowerShell 5.1 ships inside every supported version of Windows, so only older systems need the Windows Management Framework (WMF) 5.1 package. Pick your file on the WMF 5.1 download page.

Windows version PowerShell included What to do
Windows 11, Windows 10 version 1607 or later, Windows Server 2016 or later 5.1 Nothing to install. Windows Update delivers its security updates
Windows 8.1 and Windows Server 2012 R2 4.0 Win8.1AndW2K12R2-KB3191564-x64.msu (32-bit Windows 8.1: Win8.1-KB3191564-x86.msu)
Windows Server 2012 3.0 W2K12-KB3191565-x64.msu
Windows 7 SP1 and Windows Server 2008 R2 SP1 2.0 Win7AndW2K8R2-KB3191566-x64.zip (32-bit Windows 7: Win7-KB3191566-x86.zip)
Windows 8, Windows Server 2008 SP2, Windows Vista, Windows Server 2003, Windows XP 3.0 or older No WMF 5.1 package exists. Upgrade Windows instead

Microsoft no longer supports any of the Windows versions that need this package, so WMF 5.1 is a stopgap and not a security fix for the operating system. WMF 5.1 installs directly over WMF 5.0 or 4.0, and standalone installers for WMF 5.0 and older are gone.

Upgrading to Windows PowerShell 5.1 from the WMF 5.1 Microsoft download page
Select Download, then pick the file for your Windows version; supported Windows releases already include 5.1 and need nothing here. (Image: Microsoft)

How to install WMF 5.1 on Windows Server 2012 R2 and Windows 8.1

  1. Download the .msu file that matches your Windows version and architecture.
  2. Open Command Prompt with Run as administrator and change to the download folder.
  3. Run Win8.1AndW2K12R2-KB3191564-x64.msu /quiet /norestart, or W2K12-KB3191565-x64.msu /quiet /norestart on Windows Server 2012. You can also double-click the file in File Explorer.
  4. Restart the computer, because WMF 5.1 is not installed until the reboot.
  5. Open Windows PowerShell and run $PSVersionTable.PSVersion to read the new version.

Using /quiet without /norestart reboots the system with no warning, so keep both switches on a production server.

How to install WMF 5.1 on Windows 7 and Windows Server 2008 R2

  1. Install the latest service pack and .NET Framework 4.5.2 or later. Without .NET 4.5.2, setup succeeds but key features fail.
  2. Uninstall WMF 3.0 if it is present, or save $env:PSModulePath and restore it afterward. Installing over WMF 3.0 loses that path.
  3. Right-click the ZIP file and select Extract All. It holds an MSU file and the Install-WMF5.1.ps1 script.
  4. Open PowerShell as administrator and change to the extracted folder.
  5. Run .\Install-WMF5.1.ps1 and follow the prompts. Add -AcceptEula -AllowRestart to automate it.
  6. After the restart, run $PSVersionTable.PSVersion to read the new version.

How to install or update PowerShell Core 7?

Microsoft says to update with the same method you used to install. Run $PSHOME in PowerShell 7 and match the result below. A newer 7.x release replaces the older one, while preview builds install side by side with stable releases.

$PSHOME shows Installed with Update with
$Env:ProgramFiles\PowerShell\7 MSI package (confirm in Programs and Features) winget upgrade --id Microsoft.PowerShell, the newer MSI, or Microsoft Update
Starts with $Env:ProgramFiles\WindowsApps\ MSIX package or Microsoft Store Store updates or winget upgrade --id Microsoft.PowerShell
$HOME\.dotnet\tools .NET global tool dotnet tool update --global PowerShell
Anything else ZIP package Unzip the new release to your PowerShell folder and run pwsh.exe from there

Upgrading the PowerShell Core using MSI installation

The MSI package is Microsoft's pick for Windows Server and enterprise deployment, and it needs administrator rights. PowerShell 7.7 and later will not ship an MSI, so plan new deployments around MSIX or ZIP once you move to that release.

  1. Open the PowerShell releases page on GitHub and expand Assets.
  2. Download PowerShell-7.6.6-win-x64.msi, or PowerShell-7.6.6-win-arm64.msi on an Arm PC.
  3. Double-click the file and follow the prompts.
  4. Select both Microsoft Update check boxes in setup if you want future patches through Windows Update.
  5. Open a new window and run pwsh -Version to read the installed version.

Update PowerShell 7 silently with msiexec

Run this from an elevated session in the folder that holds the MSI. It suits scripts and computers where nobody clicks through setup.

$msiParams = @(
    '/package'
    'PowerShell-7.6.6-win-x64.msi'
    '/quiet'
    'ADD_PATH=1'
    'USE_MU=1'
    'ENABLE_MU=1'
)
msiexec.exe @msiParams

/quiet hides setup, ADD_PATH=1 adds PowerShell to PATH, USE_MU=1 opts in to Microsoft Update, WSUS and Configuration Manager, and ENABLE_MU=1 turns on Microsoft Update for automatic updates.

You should see: pwsh -Version in a new window prints PowerShell 7.6.6.

Install PowerShell Core on Windows 10 and 11 via Microsoft Store

  1. Open Microsoft Store and search for PowerShell. The product ID is 9MZ1SNWT0N5D.
  2. Install the listing with that product ID.
  3. Let the Store apply updates automatically.
  4. To check by hand, open Downloads or your library in the Store and install any PowerShell update listed there.
  5. Start the app by running pwsh or selecting PowerShell 7 in the Start menu.

Store installs are per user and do not accept incoming PowerShell remoting. They also block Set-ExecutionPolicy -Scope LocalMachine, Update-Help -Scope AllUsers and all-users profile scripts, so use the MSI on managed computers.

Installing/updating PowerShell Core on remote computers

Each target must accept PowerShell remoting. It is on by default on Windows Server. On a Windows client, run PowerShell as administrator on that PC and run Enable-PSRemoting once.

Download the MSI to C:\Temp on your admin PC first, then run this script from an elevated session. It copies the file to each computer, installs it silently and prints the result.

$Msi = "C:\Temp\PowerShell-7.6.6-win-x64.msi"
foreach ($Computer in "Server01", "Server02") {
    $Session = New-PSSession -ComputerName $Computer
    Invoke-Command -Session $Session -ScriptBlock { New-Item -Path C:\Temp -ItemType Directory -Force }
    Copy-Item $Msi -Destination "C:\Temp\" -ToSession $Session
    Invoke-Command -Session $Session -ScriptBlock {
        Start-Process msiexec.exe -Wait -ArgumentList "/package C:\Temp\PowerShell-7.6.6-win-x64.msi /quiet USE_MU=1 ENABLE_MU=1 ADD_PATH=1"
        & "$Env:ProgramFiles\PowerShell\7\pwsh.exe" -Version
    }
    Remove-PSSession $Session
}

New-PSSession opens a connection to each computer, Copy-Item -ToSession sends the MSI through it, and Invoke-Command runs the silent install on the remote side. Replace Server01 and Server02 with your computer names.

You should see: PowerShell 7.6.6 once per computer.

How to update PowerShell on a remote computer from the Command Prompt?

Microsoft's Sysinternals PsExec runs a program on another computer from Command Prompt, with no client software to install on the target. Copy psexec.exe to a folder on your PATH, and sign in with an account that is an administrator on the target.

mkdir \\Server01\C$\Temp
copy C:\Temp\PowerShell-7.6.6-win-x64.msi \\Server01\C$\Temp\
psexec \\Server01 -h msiexec.exe /package C:\Temp\PowerShell-7.6.6-win-x64.msi /quiet
psexec \\Server01 "C:\Program Files\PowerShell\7\pwsh.exe" -Version

C$ is the default administrative share of the target's C: drive. -h runs the installer with the account's elevated token. File paths after the program name must be absolute paths on the remote computer.

You should see: PowerShell 7.6.6 from the last command.

Deploying PowerShell Core with Group Policy

Group Policy software installation assigns the MSI to computers, and it installs the next time each one starts. Use the MSI with this method, since the MSIX and ZIP packages are not Windows Installer files.

  1. Create a shared network folder on a server and grant the target computers read access.
  2. Copy PowerShell-7.6.6-win-x64.msi into the share.
  3. Create or edit a Group Policy Object that applies to the target computers.
  4. Under Computer Configuration, expand Software Settings.
  5. Right-click Software installation, point to New, and select Package.
  6. Type the full UNC path, such as \\fileserver\share\PowerShell-7.6.6-win-x64.msi. Do not use the Browse button.
  7. Select Open, select Assigned, and select OK.
  8. For the next release, add its MSI as a new package the same way. The newer 7.x package replaces the older one when the computer starts.

Updating PowerShell via Windows Update or WSUS

PowerShell 7.2 and later can update through Microsoft Update, WSUS and Configuration Manager, but only when installed from the MSI on an x64 system running Windows version 1809 or newer.

  1. Select both Microsoft Update check boxes when you run the MSI. The first allows updates through Microsoft Update, WSUS or Configuration Manager, and the second turns on Microsoft Update.
  2. If setup hid the boxes during a repair install, run msiexec.exe /fmu .\PowerShell-7.6.6-win-x64.msi USE_MU=1 ENABLE_MU=1 from the MSI's folder.
  3. On Windows 11, go to Start > Settings > Windows Update > Advanced options and turn on Receive updates for other Microsoft products.
  4. On Windows 10, go to Start > Settings > Update & Security > Windows Update > Advanced options and turn on the same option.
  5. Return to Windows Update, select Check for Windows updates, and then select Download & install.
  6. On WSUS or Configuration Manager, approve or deploy the PowerShell update to your computer groups from the server console.

A new release can take up to two weeks to reach Microsoft Update, and it arrives as an optional update even when it holds a security fix. If you need it sooner, install the MSI from GitHub.

Updating PowerShell via Windows Update with both Microsoft Update check boxes selected in setup
This preview installer shows the two options: the first allows WSUS delivery and the second turns on Microsoft Update. (Image: Microsoft)

PowerShell 7.6, 7.5 and 7.4 end of support dates

Version Channel Latest patch Released End of support
PowerShell 7.7 Preview 7.7.0-preview.5 In development Not supported for production
PowerShell 7.6 LTS 7.6.6 March 18, 2026 November 14, 2028
PowerShell 7.5 Stable 7.5.11 January 23, 2025 November 10, 2026
PowerShell 7.4 LTS 7.4.20 November 16, 2023 November 10, 2026
Windows PowerShell 5.1 Built into Windows Delivered by Windows Update August 2016 Follows your Windows version

Patch numbers are the current ones as of November 2026. After a version reaches end of support it gets no more updates, including security fixes, so move anything on 7.4 or 7.5 to 7.6 now.

How to check your PowerShell version after updating

Run this inside the shell you updated, because powershell.exe and pwsh.exe report different versions. For more routes, you can check your PowerShell version from Command Prompt or Control Panel as well.

$PSVersionTable.PSVersion

The Major, Minor and Patch columns form the version number. Run $PSHOME too if you need to confirm which installation the window is using.

You should see: 7, 6 and 6 under Major, Minor and Patch for PowerShell 7.6.6, or 5 and 1 under Major and Minor for Windows PowerShell 5.1.

Check PowerShell version after updating with the $PSVersionTable output in PowerShell 7.3.4
The full table puts the version on the PSVersion row; add .PSVersion to see only the Major, Minor and Patch columns. (Image: Microsoft Q&A)

PowerShell update not working on Windows

PowerShell still shows version 5.1 after installing PowerShell 7

You opened Windows PowerShell, which stays installed next to PowerShell 7.

  1. Run pwsh in the open window, or select PowerShell 7 in the Start menu.
  2. Run $PSVersionTable.PSVersion to read the version of that session.

"Install the latest PowerShell" message keeps appearing

Windows PowerShell 5.1 prints this banner at every start, even on a fully updated PC, and it cannot be turned off.

  1. Start pwsh.exe instead, which never shows the message.
  2. Run powershell.exe -nologo if you must stay on 5.1. It hides all startup messages.

winget is not available on Windows Server or a new PC

WinGet does not exist on Windows Server 2022 or earlier, and on Server 2025 it needs Desktop Experience. On a client PC, it registers only after the first sign-in.

  1. On Windows Server, install the MSI instead.
  2. On a client PC, run Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe in Windows PowerShell.
  3. Run winget upgrade --id Microsoft.PowerShell again.

Microsoft Update does not offer the new PowerShell release

The update is not published yet, Group Policy blocks Microsoft Update, or the opt-in boxes were left clear.

  1. Wait up to two weeks after the release date.
  2. Ask your administrator whether policy blocks Microsoft Update, since the installer's check box cannot override Group Policy.
  3. Run msiexec.exe /fmu .\PowerShell-7.6.6-win-x64.msi USE_MU=1 ENABLE_MU=1 to opt in.

Microsoft Update did not upgrade PowerShell 7.4 to 7.6

Microsoft Update stays inside your release channel and installs patches for your minor version. It never moves an LTS release to a stable non-LTS release, and it never moves a preview to a final release.

  1. Run winget upgrade --id Microsoft.PowerShell or install the 7.6 MSI.
  2. Run pwsh -Version in a new window to read the new version.
PowerShell update not working: Install the latest PowerShell banner in Windows PowerShell 5.1
Windows PowerShell 5.1 prints this message at every start, even on a fully updated PC; start pwsh.exe to avoid it. (Image: Microsoft)

Updating PowerShell on Windows FAQ

How do I update PowerShell from the command line?

Run winget upgrade --id Microsoft.PowerShell from Command Prompt, Windows PowerShell or PowerShell 7. To see whether an update exists first, run winget list --id Microsoft.PowerShell --upgrade-available. WinGet needs Windows 11, a current Windows 10 or Windows Server 2025 with Desktop Experience.

What is the latest version of PowerShell?

PowerShell 7.6.6 is the current long-term support release as of November 2026, and it is supported until November 14, 2028. PowerShell 7.5.11 is the current stable release. Windows PowerShell 5.1 is the last version of the Windows-only edition.

Does updating PowerShell remove Windows PowerShell 5.1?

No. PowerShell 7 installs to its own folder and runs side by side with Windows PowerShell 5.1. A new PowerShell 7 release only replaces the older PowerShell 7 release, so scripts and modules that depend on powershell.exe keep working.

Does Windows Update update PowerShell 7 automatically?

Only if you installed the MSI and opted in to Microsoft Update during setup. Updates then appear as optional updates, up to two weeks after each release. Microsoft Store installs update through the Store, and ZIP installs never update on their own.

How do I update Windows PowerShell 5.1?

Keep Windows updated, because Windows PowerShell 5.1 is a built-in Windows component and all its updates come through standard Windows update channels. Microsoft only publishes security updates for it, and no newer Windows PowerShell version exists to upgrade to.

Can I update PowerShell without administrator rights?

Yes, by using the ZIP package, which any user can deploy to a folder they can write to. Deploying the MSI package requires administrator permission. With the ZIP method, you add the Start menu shortcut and the PATH entry yourself.

Can I keep two PowerShell 7 versions installed?

Yes, by installing the extra version from a ZIP package to a different folder. A normal install of a newer 7.x release replaces the older one. Preview builds install side by side with stable builds, and a newer preview replaces the previous preview.

Will PowerShell 7.7 still have an MSI installer?

No. Microsoft says that beginning with the PowerShell 7.7.0 release there is no MSI package, and WinGet only installs the MSIX package. PowerShell 7.6 still has an MSI, so existing MSI, Group Policy and WSUS deployments can stay on the 7.6 LTS release.

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 *