Microsoft announced on November 17, 2026 (local time) on the official PowerShell Team blog that, beginning with the next release of Windows, PowerShell 7 will be included in the OS. The company positions it as the upgrade for Windows PowerShell 5.1, the version that ships with Windows today. In a companion support article, KB5137172, Microsoft also declared Windows PowerShell 5.1 deprecated and laid out a phased path for retiring it.

Windows PowerShell 5.1 Is Deprecated but Still Supported

According to KB5137172, deprecated means the shell is no longer in active development. Windows PowerShell 5.1 remains part of Windows and is still supported. It will continue to receive security updates according to the lifecycle of each Windows version that includes it.

The article applies to Windows 11 Home and Pro, versions 24H2, 25H2 and 26H2. Microsoft says scripts and tools that rely on 5.1 will keep running as before.

5.1 Moves to a Feature on Demand, Then Goes Away

KB5137172 describes the future of Windows PowerShell 5.1 in three stages.

TimingWindows PowerShell 5.1
2026Deprecated. Windows Server 2025 and Windows 11, version 26H2 are the last versions to include it enabled by default
Next version of WindowsAvailable as a Feature on Demand (FOD), enabled by default on new installs
Future version of WindowsNot available

Microsoft says the timing of the removal will be based on usage data and communicated in advance. As of this writing, the company has not disclosed the version name or release timing of the next Windows.

The Two Run Side by Side, and Existing Automation Keeps Working

The PowerShell team says PowerShell 7 is designed to be used side by side with Windows PowerShell 5.1. Existing automation needs no changes, and scheduled tasks and services continue to run on 5.1. Users can move to PowerShell 7 when they are ready, according to the team.

The two are easy to tell apart by executable. KB5137172 states that powershell.exe runs Windows PowerShell 5.1, while pwsh.exe runs PowerShell 7 or later. Inside a script, $PSVersionTable.PSEdition returns "Desktop" on 5.1 and "Core" on 7 or later.

Compatibility is not complete, however. The team notes that many scripts run in PowerShell 7 without changes, but some need changes and some may need to keep running in 5.1. It asks users to test scripts in PowerShell 7 before moving them, and the differences and steps are covered in the migration guide on Microsoft Learn.

MSIX Delivery Still Has Gaps to Close

The PowerShell 7 that ships in Windows will be delivered as an MSIX package. The team acknowledges that MSIX still needs work to match some things that worked with the older MSI installer.

It lists three gaps. The first is running as the SYSTEM account, which affects scheduled tasks, services, device-management scripts and remoting. The second is DISM cmdlets such as Add-WindowsCapability. The third is machine-wide settings such as the all-users profile. The team says this work is in progress and can be tracked on GitHub.

The team is also investing in tooling for inventory, compatibility analysis and migration guidance. That includes community-built tools, documentation and improvements to PSScriptAnalyzer's compatibility checks. It is also starting an Inbox Working Group to triage issues that affect PowerShell 7 in Windows.

Our Take

Making the modern shell the default is a positive change for administrators. PowerShell 7 has been available as a separate download for years, but it was not guaranteed to be on every PC, which likely made it hard to rely on in scripts meant for wide distribution. Shipping it in the box should lower that barrier.

That said, as long as running as SYSTEM and the DISM cmdlets remain unsupported, moving corporate PC-management workflows over right away will be difficult. Scheduled tasks and device-management scripts fall squarely in that area.

Still, 5.1 stays enabled by default in the next Windows, and its removal will be announced in advance. Rather than rushing to rewrite scripts, a practical first step is likely to run existing scripts under pwsh.exe and identify what breaks.

Summary

Microsoft will ship PowerShell 7 in the next Windows and has deprecated Windows PowerShell 5.1. The change matters most to administrators and developers who manage PCs and servers with scripts written for 5.1. In the next Windows, 5.1 remains as a Feature on Demand before being removed in a later version, with the timing to be announced in advance.