.NET

Microsoft to bundle PowerShell 7 with Windows as PowerShell 5.1 begins retirement

Microsoft will include PowerShell 7 in Windows starting with the next release, positioning it as the upgrade for Windows PowerShell 5.1, with details published in KB5137172. Windows Server 2025 and Windows 11 26H2 are the last versions to ship PowerShell 5.1 enabled by default; afterwards it becomes a Feature On Demand before eventual removal. Microsoft says PowerShell 7 runs side by side with 5.1 and existing scripts need no changes, though compatibility between the .NET Framework-based 5.1 and the cross-platform 7 is not seamless.

AI-written summary, checked against the cited sources. How summaries work

Image: PowerShell Blog

Why it matters

Windows administrators relying on PowerShell 5.1 should plan for it to become a Feature On Demand after Windows Server 2025 and Windows 11 26H2, and test scripts against PowerShell 7.

Primary source

PowerShell 7 is coming to Windows PowerShell Blog

What we know

Where sources disagree

Script compatibility between PowerShell 5.1 and 7

  • Existing automation needs no changes because PowerShell 7 runs side by side with 5.1. — PowerShell Blog
  • Compatibility between PowerShell 5.1 and PowerShell 7 is not seamless. — The Register

Confirmed by several sources

Reported by one source

  • Windows Server 2025 and Windows 11 26H2 are the last versions to include PowerShell 5.1 enabled by default, after which it becomes a Feature On Demand. — The Register
  • PowerShell 5.1 will be removed from a future version of Windows. — The Register
  • Details are documented by the Windows team in KB5137172. — PowerShell Blog
  • PowerShell 7 will ship beginning with the next release of Windows. — PowerShell Blog
  • PowerShell 5.1 is more than ten years old and runs on the .NET Framework. — The Register

Open questions

  • It is not yet clear in which Windows version PowerShell 5.1 will be fully removed. — The Register

Coverage 2 publishers

  1. PowerShell BlogFirst reportPrimary source

    PowerShell 7 is coming to Windows

    PowerShell 7 is coming to Windows. Beginning with the next release of Windows, PowerShell 7 will be included as the upgrade for Windows PowerShell 5.1. The Windows team has published the details in KB5137172. Here is what this means for…

  2. The Register

    PowerShell 7 heading into Windows as 5.1 hits the end of the road

    Microsoft has confirmed that, at long last, PowerShell 7 will come bundled with Windows, while the venerable PowerShell 5.1 begins its long retirement. It has been a long time coming, although PowerShell 5.1 isn't going away immediately. It…

Earliest report first. Articles stay on their publishers’ sites; each link opens the original.