--:-- --
Signal 1/5

Windows will ship PowerShell 7 as Microsoft deprecates PowerShell 5.1

Windows PowerShell 5.1 keeps working for now and becomes an optional feature in the next release, but Microsoft has set no end date.

Fact-
checked
22 claims · 22 confirmed 4 sources · 1 primary Checked 21 Nov 2026, 09:32 UTC

TL;DR

Microsoft will include PowerShell 7 in the next release of Windows and has deprecated Windows PowerShell 5.1. Nothing breaks yet: 5.1 keeps running and becomes an optional feature, but Microsoft has set no removal date.

  1. 01PowerShell 7 ships with the next Windows release; Microsoft has not named it or given a date.
  2. 02Windows PowerShell 5.1 is deprecated but still supported, and becomes a Feature on Demand.
  3. 03Installed as MSIX, PowerShell 7 can't yet run as SYSTEM, use the DISM cmdlets or apply machine-wide settings.
  4. 04Find what calls powershell.exe now and test it in PowerShell 7.
Full story · 5 min
Illustration: Breakline

Microsoft says the next release of Windows will include PowerShell 7, and it has deprecated Windows PowerShell 5.1, the version built into Windows today.

That matters to anyone who looks after Windows machines. Scheduled tasks, installers, management agents and admin scripts that start powershell.exe all run on 5.1. Nothing stops working yet, but 5.1 is now on a path out of Windows.

Microsoft announced the change on 17 November in two places: a post from its PowerShell team and a support article, KB5137172. "Beginning with the next release of Windows, PowerShell 7 will be included as the upgrade for Windows PowerShell 5.1," the PowerShell team wrote. The support article is blunter: "Windows PowerShell 5.1 is deprecated. It's no longer in active development."

Two PowerShells, finally one

Windows PowerShell 5.1 comes in the box and runs much of the world's Windows automation. PowerShell 7 is the newer, cross-platform version that Microsoft develops in the open and where new features go, but it has never been part of Windows.

"Including PowerShell 7 in Windows is a milestone we've been working toward since PowerShell went cross-platform," the PowerShell team wrote.

Your scripts won't break, yet

"No change is required right now," the support article says. PowerShell 7 is designed to run side by side with 5.1, and existing scripts, scheduled tasks and services keep running on 5.1.

The timeline in KB5137172 sets out what happens next:

  • Microsoft calls Windows Server 2025 and Windows 11 version 26H2 the last versions with 5.1 switched on by default. Earlier versions keep it.
  • Yet the same timeline says that in the next version of Windows, 5.1 becomes a Feature on Demand, an optional part of Windows that can be added or removed, still switched on by default on new installs. Microsoft hasn't explained how the two lines fit.
  • A future version will not include 5.1 at all. Microsoft says the timing will be based on usage data and announced in advance.

Until then, 5.1 keeps getting security updates for as long as the version of Windows it runs on is supported.

Telling the two apart is simple. powershell.exe starts Windows PowerShell 5.1; pwsh.exe starts PowerShell 7. Inside a session, $PSVersionTable.PSEdition shows Desktop for 5.1 and Core for 7.

The installer isn't ready for the jobs that matter most

PowerShell 7 in Windows comes as an MSIX package, Microsoft's modern app format. The PowerShell team says MSIX still can't do some things the old MSI installer could. Installed this way, PowerShell 7 can't yet run as the SYSTEM account, which affects scheduled tasks, services, device-management scripts and remoting set up to run as SYSTEM. It doesn't yet support the DISM cmdlets, such as Add-WindowsCapability. And it can't yet apply machine-wide settings, such as the all-users profile.

Microsoft says fixes for all three are in progress but has given no date. It also warns that not every script will move cleanly: many run in PowerShell 7 without changes, some need changes first, and some may have to stay on 5.1. It is building tools to help, including better compatibility checks in PSScriptAnalyzer, and is starting a working group to triage problems with PowerShell 7 in Windows.

Replying to readers, the PowerShell team said the Windows PowerShell ISE, the old built-in script editor, does not switch to PowerShell 7 and is not supported with it.

Our take: the right call, made before the plumbing is ready

Shipping PowerShell 7 with Windows is the right move, and it is overdue.

But the order is backwards. The jobs companies lean on most, the ones that run as SYSTEM through scheduled tasks, services and device management, are exactly what the new installer can't handle yet. And Microsoft hasn't set the deadline that matters: the day 5.1 disappears. Microsoft says the timing will be "based on usage data", so the date depends on how widely 5.1 is still used, and Microsoft will announce it in advance. That gives an admin who has to budget the work nothing to plan around.

Treat the deprecation as a starting gun: the cheapest time to find every script that calls powershell.exe is now, while nothing is forced. We would change our view if Microsoft closes the SYSTEM, DISM and machine-wide gaps before the next release ships and publishes a removal date.

What we don't know

  • The name and date of the next Windows release. Microsoft's posts don't give either.
  • When 5.1 will be removed for good.
  • Whether machines upgraded to the next release, rather than freshly installed, keep 5.1 switched on. The support article only mentions new installs.
  • When the MSIX gaps will be closed.

What to do now

Microsoft's own advice is a good checklist:

  1. Find what uses 5.1: scripts, scheduled tasks, installers, management agents and tools that start powershell.exe or load Windows PowerShell modules.
  2. Test those scripts in PowerShell 7 to see which run as they are, which need changes and which must stay on 5.1.
  3. Write new automation for PowerShell 7.
  4. Keep 5.1 where you still need it, and watch for Microsoft's removal notice and the MSIX fixes.
20 Nov21:51
20 Nov22:08
20 Nov22:08
21 Nov09:32

Full story line

■ Source ledger

Every source we used

4sources1primary
#SourceTypeDateBacks claim
01 PowerShell 7 is coming to Windows · Microsoft PowerShell Team Primary 17 Nov 2026 #1, #2, #3, #5, #7, #8, #13, #14, #15, #16, #17, #18, #19, #20 Open ↗
02 Windows PowerShell 5.1 Deprecation (KB5137172) · Microsoft Support Official 17 Nov 2026 #1, #2, #4, #6, #7, #8, #9, #10, #11, #12, #20, #21, #22 Open ↗
03 PowerShell 7 heading into Windows as 5.1 hits the end of the road · The Register Report 18 Nov 2026 Background Open ↗
04 Microsoft has announced that PowerShell 7 will replace PowerShell 5.1 as the default · Reddit r/technology Report 20 Nov 2026 Background Open ↗
■ FAQ

Questions, answered

Q1Is Windows PowerShell 5.1 being removed?

Not yet. Microsoft has deprecated it, and in the next version of Windows it becomes a Feature on Demand, still switched on by default on new installs. A future version will drop it, with timing based on usage data and announced in advance.

Q2Will my existing PowerShell scripts stop working?

No. Microsoft says no change is required right now. PowerShell 7 runs side by side with 5.1, and existing scripts, scheduled tasks and services keep running on 5.1.

Q3Which Windows versions keep PowerShell 5.1?

Microsoft calls Windows Server 2025 and Windows 11 version 26H2 the last versions with 5.1 switched on by default, and earlier versions keep it. In the next version it becomes an optional feature, switched on by default on new installs.

Q4How do I tell which PowerShell a script uses?

powershell.exe starts Windows PowerShell 5.1 and pwsh.exe starts PowerShell 7. In a session, $PSVersionTable.PSEdition shows Desktop for 5.1 and Core for 7.

Q5When is the next Windows release?

Microsoft hasn't said. Neither its PowerShell team post nor support article KB5137172 names the release or gives a date.

■ Report an error · breakline://report

Something wrong?

Tell us what's wrong and, if you can, where you saw the right version. Every report is read, and fixes go on the article and into our corrections log.

breakline://report