An IT professional reviews a PowerShell migration checklist beside screens showing classic and modern PowerShell.
Microsoft is finally moving PowerShell 7 into Windows. That is welcome news for anyone who has spent years opening the blue-icon console and getting a shell that has not been actively developed in a decade. On November 17, 2026, the PowerShell Team said PowerShell 7 will ship as the upgrade for Windows PowerShell 5.1, starting with the next release of Windows. The Windows team published a companion support article, KB5137172, at the same time.

The headline makes this sound like an overnight swap. It isn't. Old scripts will keep running for now. The changeover is phased and depends on two things: a packaging format that still has gaps, and a deprecation clock that Microsoft has started but hasn't finished setting.

An IT professional reviews a PowerShell migration checklist beside screens showing classic and modern PowerShell. What Microsoft actually announced​

The announcement has two parts that are easy to blur together.

Part one: PowerShell 7 becomes the in-box shell. In its blog post, the PowerShell Team says Windows PowerShell 5.1 has run much of the world's Windows automation, including scheduled tasks, services and admin scripts. It calls PowerShell 7 the modern edition: developed in the open, cross-platform, and the only one getting new features. The team says shipping PowerShell 7 with Windows has been the request it hears most, and a goal it has worked toward since PowerShell went cross-platform.

Part two: Windows PowerShell 5.1 is deprecated. KB5137172 is titled "Windows PowerShell 5.1 Deprecation." It applies to Windows 11 Home and Pro, versions 24H2, 25H2 and 26H2, and sets out this timeline:

PhaseWhat happens to Windows PowerShell 5.1
2026 (now)Deprecated. Windows Server 2025 and Windows 11 version 26H2 are the last releases that include 5.1 enabled by default
Next version of WindowsStill available as a Feature on Demand (FOD), enabled by default on new installs
A later version of WindowsNo longer available

Microsoft hasn't given a date for that last row. The KB says removal timing will be based on usage data and announced in advance, and that the article will be updated as more information becomes available.

Bottom line: 5.1 is not removed in the next Windows release. It becomes an optional component that is still turned on by default for new installs. Microsoft has started a countdown but hasn't said how long it runs.

"Deprecated" is not "dead"​

Deprecation alarms people, so here is exactly what the KB says it means. Windows PowerShell 5.1:

  • is no longer in active development and won't get new features
  • is still part of Windows and still supported
  • keeps getting security updates according to each Windows version's lifecycle
  • keeps running the scripts and tools that depend on it

Microsoft's PowerShell lifecycle documentation already says support for Windows PowerShell 5.1 is provided through Windows support channels. In other words, 5.1's support is tied to the Windows release it ships in, and the KB repeats that.

5.1 has been frozen for a long time. Microsoft's release history lists it as released in Windows 10 Anniversary Update and Windows Server 2016, WMF 5.1 in August 2016. What's new is that Microsoft has now formally deprecated it. Until now, many module maintainers had planned around 5.1 staying indefinitely. A few months ago, one open-source project's support-policy discussion on GitHub noted flatly that there is no deprecation announcement. That assumption no longer holds.

Windows has done this before. In Canary builds of Windows 11, Microsoft removed Windows PowerShell 2.0, which it said has been deprecated for years, is now gone from the latest builds due to security concerns and the absence of modern capabilities. That removal took many years. The 5.1 timeline is vaguer, but it is clearly headed the same way.

Will your scripts break?​

The PowerShell Team's answer is "Nothing" happens to them. PowerShell 7 is built to run side by side with 5.1. Existing automation needs no changes, 5.1 keeps running your scripts, scheduled tasks and services, and you move to PowerShell 7 when you're ready.

Side-by-side works because the two shells use different executables. Microsoft's differences documentation says the binary name for PowerShell has been changed from powershell(.exe) to pwsh(.exe), which provides a deterministic way for users to run PowerShell on machines and support side-by-side installations of Windows PowerShell and PowerShell.

The team is also clear that not every script will move cleanly. Its post sorts scripts into three groups:

  1. Runs unchanged in PowerShell 7. The team says many scripts fall here.
  2. Needs changes before it works.
  3. Should stay on 5.1 for now, because it depends on something the two shells handle differently.

Microsoft's documentation shows why groups two and three exist:

  • PowerShell Workflow is gone. Due to the lack of support for Windows Workflow Foundation in .NET Core, we removed PowerShell Workflow from PowerShell.
  • Some modules no longer ship with PowerShell 7. The list includes Microsoft.PowerShell.LocalAccounts, among others.
  • DSC moved out. Beginning with PowerShell 7.2, the PSDesiredStateConfiguration module has been removed from PowerShell and has been published to the PowerShell Gallery.

Many legacy modules still work. With the advent of .NET Standard 2.0, PowerShell can load many traditional Windows PowerShell modules without modification. Additionally, PowerShell 7 includes a Windows PowerShell Compatibility feature that allows you to use Windows PowerShell modules that still require the full framework. That compatibility layer still depends on 5.1 being installed, which is worth remembering once 5.1 becomes optional.

Bottom line: existing scripts are safe for now. Whether a given script will run on PowerShell 7 is something you find out by testing it, not by assuming.

MSIX is the real problem for enterprise admins​

The part of the announcement that matters most to enterprise IT is the packaging. PowerShell 7 will come into Windows as an MSIX package, not through the MSI installer many admins use today. The PowerShell Team admits that MSIX can't yet do some things the MSI install could. It lists three gaps it is working on:

  • Running as SYSTEM. This affects scheduled tasks, services, device-management scripts and remoting.
  • DISM cmdlet support, such as Add-WindowsCapability.
  • Machine-wide settings, such as the all-users profile.

If you manage machines with Intune, Configuration Manager or a third-party RMM agent, the SYSTEM gap is the one to watch. Much unattended Windows automation runs as SYSTEM. The team's public tracking issue in the PowerShell GitHub repository (#27565, opened in June 2026) explains the cause: MSIX packages register per user, so SYSTEM, LocalSystem and service accounts may not be able to find or launch pwsh.

When it was checked for this story, the tracker showed:

GapTracker status
SYSTEM/LocalSystem executionIn progress
WinRM remoting (plugin ACL and registration)In progress
DISM cmdlets (Add-WindowsCapability, Get-WindowsOptionalFeature and related)In progress
Server Core MSIX activationIn progress
Machine-wide configuration storageIn progress (related pull request open)
SessionConfig write locationUnder investigation
All-users profile write accessUnder investigation
All-users updatable helpNot started
Cmdlet to export effective configurationNot started

Several of these come from one design fact: $PSHOME is read-only under MSIX. The tracker links that to the problems with machine-wide profiles, session configuration and updatable help. Server Core is listed separately because, according to the tracker, MSIX packages can't register or activate there at all. That matters for headless server deployments.

Microsoft's tracker says the issue will stay open until the blockers are resolved, and that blocker gaps will be fixed before PowerShell 7 ships as the in-box shell. That is a reasonable promise, but statuses on a tracker change. Check it again before you plan a rollout.

Bottom line: most compatibility worries are about script syntax and modules. For enterprises, the bigger risk is MSIX and how it handles SYSTEM, DISM, remoting and Server Core.

How to find out what depends on 5.1​

KB5137172 suggests a starting checklist. Look for scripts, scheduled tasks, installers, management agents and tools that launch powershell.exe or load Windows PowerShell modules. It also explains how to tell which engine something uses:

  • Check the executable. powershell.exe runs Windows PowerShell 5.1. pwsh.exe runs PowerShell 7 or later.
  • Check from inside the script. $PSVersionTable.PSEdition returns Desktop on Windows PowerShell 5.1 and Core on PowerShell 7 or later.
  • Read the header. Lines such as #Requires -Version 5.1 or #Requires -PSEdition Desktop mark a script as tied to 5.1.

A simple way to start, based on general Windows admin practice rather than the KB, is to list scheduled tasks whose action launches powershell.exe. This one-liner works in either shell:

Code:
Get-ScheduledTask | Where-Object { $_.Actions.Execute -match 'powershell\.exe' } |
    Select-Object TaskPath, TaskName, @{n='Command';e={$_.Actions.Execute}}

Then do what the PowerShell Team recommends: run those scripts in PowerShell 7 in a test environment before you migrate anything. Run them under the same account they use in production, too. A script that works in your interactive session can still fail as SYSTEM until the MSIX gaps are closed.

Microsoft's guidance comes down to three rules:

  1. Write new automation for PowerShell 7.
  2. Keep 5.1 wherever a module or tool still needs it. The KB acknowledges that some only work there.
  3. Start planning now, even though nothing has to change today.

Better migration tooling is promised​

For large fleets, the PowerShell Team admits the hard part is working out which scripts need changes. It says it is investing in community-built tools, documentation and better compatibility checks in PSScriptAnalyzer, covering three areas:

  • Inventory: finding what you have, including scheduled tasks and services
  • Analysis: flagging what in each script needs attention before it runs on PowerShell 7
  • Guidance: explaining what to change for each finding, and why

The post doesn't name any tools or give dates. It only says each piece will be released with documentation when it's ready. Until then, you're doing this by hand.

The team is also setting up an Inbox Working Group to triage issues that affect PowerShell 7 in Windows, so that problem reports reach the people who can fix them. It is asking admins to test their scripts and file what they find in the PowerShell/PowerShell GitHub repository.

Analysis: the right move, with a few caveats​

This is general industry analysis, not something Microsoft has said, but it's hard to argue against the direction. PowerShell 7 runs on modern .NET, works across platforms and is where all new development happens. Shipping a frozen 2016-era shell as the Windows default has been an oddity for years.

There are fair concerns, though:

  • Vague deadline. "Usage data" will decide when 5.1 disappears. That's reasonable, but it's hard to budget for an end date that hasn't been set.
  • Mixed messages. The blog says your automation needs no changes. The KB tells you to start planning now. Both are true, but admins reading only one of them could come away with the wrong idea.
  • Packaging comes first. Swapping a mature MSI install that works under SYSTEM for an MSIX package that doesn't yet is a big ask for the people who run unattended automation. Microsoft has said the blockers will be fixed before shipping, and that promise deserves close watching.
  • Wording. "Upgrade" suggests an in-place replacement. What's actually planned is two shells running side by side, with 5.1 gradually being phased out.

Microsoft has said the move is happening and given admins time to prepare. The next Windows release brings PowerShell 7 into the box and makes 5.1 a default-on Feature on Demand, and a later release removes 5.1 altogether. Use that time to inventory your powershell.exe dependencies, test them under the right accounts, and keep checking the MSIX tracker.

 

References

  1. (Decision) PowerShell 5.1 support policy - keep as "supported, frozen" + fix DotNetFrameworkVersion · Issue #496 · ctrl-alt-automate/PowerNetbox · GitHub github.com
  2. Windows PowerShell 5.1 Deprecation | Microsoft Support support.microsoft.com
  3. PowerShell Support Lifecycle - PowerShell learn.microsoft.com