PowerShell 5.1 Deprecated: How to Install PowerShell 7 Now

PowerShell 5.1 deprecated timeline: 26H2 last with 5.1 on by default, next Windows has 5.1 as a Feature on Demand, install PowerShell 7 with winget install --id Microsoft.PowerShell

The Solo Toolbox · Software Help for One-Person Businesses

Microsoft deprecated Windows PowerShell 5.1 on November 17, 2026. Nothing breaks today: 5.1 is still part of Windows 11, still gets security updates, and your scripts keep running. What changes is the next release of Windows, which will include PowerShell 7 and turn 5.1 into an optional Feature on Demand. You can install PowerShell 7 now with winget install --id Microsoft.PowerShell --source winget, and it runs side by side with 5.1.

This guide covers the timeline, how to tell whether a script depends on 5.1, how to install PowerShell 7 and which installer to pick, and what still only works in 5.1.

Before you start

  • Applies to: Windows 11 24H2, 25H2 and 26H2, and Windows Server 2025. Anyone with scripts, scheduled tasks or tools that call powershell.exe.
  • You’ll need: an admin account for machine-wide installs, and a list of the scripts you rely on.
  • How we checked this: on November 23, 2026 we read Microsoft support article KB5137172 (published November 17), the PowerShell Team’s “PowerShell 7 is coming to Windows” post of the same day, Microsoft Learn’s install guide for PowerShell 7 on Windows and the PowerShell 7.7 release announcement. Microsoft hasn’t named a removal date or the Windows version number that ships PowerShell 7.
PowerShell 5.1 deprecated timeline: 26H2 last with 5.1 on by default, next Windows has 5.1 as a Feature on Demand, install PowerShell 7 with winget install --id Microsoft.PowerShell

What “deprecated” means for PowerShell 5.1

In KB5137172, Microsoft says Windows PowerShell 5.1 is “no longer in active development” and won’t get new features. It stays in Windows, stays supported, and receives security updates according to the lifecycle of each Windows version. It will be removed from a future version of Windows, with timing “based on usage data and communicated in advance.”

WhenWhat happens to PowerShell 5.1
Now (2026)Deprecated. Windows 11 26H2 and Windows Server 2025 are the last versions with 5.1 enabled by default.
Next version of Windows5.1 becomes a Feature on Demand, still enabled by default on new installs. PowerShell 7 is included.
A later version of Windows5.1 not available.

If you stay on 26H2 or Server 2025, you keep 5.1 for the life of that release. The pressure comes when you upgrade to whatever follows 26H2.

How to tell whether something uses PowerShell 5.1

  1. Check the executable. powershell.exe runs Windows PowerShell 5.1. pwsh.exe runs PowerShell 7 or later.
  2. Check from inside a session. Run $PSVersionTable.PSEdition. Desktop means 5.1; Core means 7 or later.
  3. Check the script header. Lines like #Requires -Version 5.1 or #Requires -PSEdition Desktop pin a script to 5.1.
  4. List scheduled tasks that call it. In an admin PowerShell window, run Get-ScheduledTask | Where-Object { $_.Actions.Execute -match 'powershell.exe' } | Select-Object TaskName, TaskPath.
  5. Search batch files and shortcuts. Get-ChildItem C:\Scripts -Recurse -Include *.bat,*.cmd | Select-String 'powershell.exe' finds wrappers that launch 5.1. Change C:\Scripts to wherever you keep them.

Microsoft’s advice is to keep 5.1 wherever you still need it, write new automation for PowerShell 7, and plan the rest of the move now.

How to install PowerShell 7

PowerShell 7 installs to its own folder and doesn’t replace 5.1. Microsoft Learn lists several installers:

MethodCommand or sourceBest for
WinGet (MSIX)winget install --id Microsoft.PowerShell --source wingetMost Windows 11 users
WinGet (MSI)winget install --id Microsoft.PowerShell --source winget --installer-type wixServers and all-users installs on 7.6
Microsoft Store (MSIX)Search “PowerShell” in the StoreCasual use with automatic updates
ZIPDownload from the PowerShell GitHub releases pageSide-by-side versions, Server Core, Arm
  1. Open Windows Terminal or Command Prompt.
  2. Run winget search --id Microsoft.PowerShell --exact to see the current version.
  3. Run the install command from the table above.
  4. Open a new terminal and type pwsh. Run $PSVersionTable.PSVersion to confirm the version.
  5. In Windows Terminal, go to Settings > Startup > Default profile and pick PowerShell if you want new tabs to open in version 7.

Pick the installer with care. Since PowerShell 7.6.0, winget installs the MSIX package by default. Microsoft says MSIX installs are per-user only, run in an app sandbox that virtualizes some file and registry locations, and don’t support PowerShell remoting. For a server or a shared PC, the MSI is the better choice where it exists, but Microsoft says there is no MSI package from PowerShell 7.7.0 onwards.

Which version: 7.6 or 7.7?

PowerShell 7.6 is the current Long Term Support release (7.6.6 in Microsoft’s install guide). PowerShell 7.7, built on .NET 11, is a Standard Term Support release with a shorter support window. It includes breaking changes, such as New-Guid creating version 7 UUIDs by default. For scripts you don’t want to revisit often, start with 7.6.

What still needs Windows PowerShell 5.1

Microsoft’s PowerShell Team lists gaps it is still working on before PowerShell 7 fully replaces 5.1 in Windows:

  • Running PowerShell 7 as the SYSTEM account, which scheduled tasks, services and remoting often use.
  • DISM cmdlets such as Add-WindowsCapability.
  • Machine-wide settings such as the all-users profile.
  • Some older Windows PowerShell modules. A few load in PowerShell 7 through its Windows Compatibility feature; others only run in 5.1.

Windows PowerShell ISE also stays on 5.1. A Microsoft product manager confirmed in the blog’s comments that ISE doesn’t switch to PowerShell 7. For editing PowerShell 7 scripts, use Visual Studio Code with the PowerShell extension.

FAQ

Do I need to change anything right now?

No. Microsoft says no change is required now and scripts that rely on Windows PowerShell 5.1 will continue to run. It recommends starting to plan the move to PowerShell 7.

Will PowerShell 5.1 still get security updates?

Yes. It receives security updates for as long as the Windows version it ships with is supported.

Does installing PowerShell 7 remove PowerShell 5.1?

No. PowerShell 7 installs to a separate folder and runs side by side with 5.1. You launch 5.1 with powershell.exe and 7 with pwsh.exe.

When will PowerShell 5.1 be removed from Windows?

Microsoft hasn’t given a date. It says 5.1 becomes a Feature on Demand in the next version of Windows and won’t be available in a later one, with timing based on usage data.

What to do next

Install PowerShell 7.6 with winget on your main PC this week and run your most-used scripts in pwsh to see what breaks. Then run the scheduled-task check above and note anything that runs as SYSTEM, since that’s where PowerShell 7 still has gaps. If you’re deciding when to upgrade Windows itself, our 26H2 known issues guide and our guide to checking your Windows 11 version cover the current state of each release.

Related guides

Sources

Last checked: November 23, 2026. If something here is out of date, let us know.

Get smarter software tips in your inbox

Clear tutorials, honest software recommendations, productivity tips and the tech updates that matter to one-person businesses.

Free. We’ll email you a link to confirm. Unsubscribe anytime with one click. We never share your address. Privacy policy

Get smarter software tips in your inbox

Free. Confirm by email, unsubscribe anytime. Privacy policy

Similar Posts