Microsoft confirms PowerShell 7 will ship built into the next Windows release as Windows PowerShell 5.1 enters deprecation under KB5137172.
-
Published by Kunal Chowdhury
on 27 November, 2026
Add kunal-chowdhury.com on Google to see more of our coverages in your search results.
For nearly a decade, Windows administrators and developers lived with an awkward split personality: Windows shipped with aging Windows PowerShell 5.1 in the box, while every modern feature, performance fix, and cross-platform upgrade lived inside PowerShell 7 as a separate manual download. At Microsoft Ignite 2026, Microsoft finally ended that divide by announcing that PowerShell 7 is coming built into Windows.
Published alongside official deprecation notice KB5137172 on November 17, 2026, the roadmap confirms that PowerShell 7 will ship in-box starting with the next release of Windows, while Windows PowerShell 5.1 moves to an optional Feature on Demand before eventual retirement. Here is what changes for your scripts, servers, and daily Windows workflow.
As detailed in Microsoft PowerShell Senior Product Manager Jason Helmick's official announcement, putting PowerShell 7 directly inside Windows has been the community's most requested change since PowerShell went open-source and cross-platform. That shift arrives right on the heels of PowerShell 7.7 GA shipping on November 10, 2026 atop the newly released .NET 11 runtime.
Under KB5137172, Microsoft lays out a clean 3-stage transition so enterprises do not wake up to broken production servers:
Lifecycle timing also deserves attention if you standardize on Long-Term Support (LTS) channels. On November 10, 2026, PowerShell 7.4 reached End of Support on the exact same day PowerShell 7.7 GA launched—making PowerShell 7.6 LTS or 7.7 STS the active targets to validate against before the next Windows build arrives.
If your office relies on 10-year-old backup jobs, login scripts, or Active Directory automations, take a deep breath: nothing breaks today. Because PowerShell 7 launches via pwsh.exe while legacy Windows PowerShell 5.1 stays at powershell.exe, both shells coexist cleanly with separate event logs, module paths, and profiles.
However, longtime Windows admins do face a notable workflow farewell. Microsoft explicitly confirmed that the classic Windows PowerShell ISE is permanently tied to Windows PowerShell 5.1 and will never support PowerShell 7. Teams still diagnosing scripts inside ISE are encouraged to move to Visual Studio Code with the PowerShell extension, which includes a built-in ISE Mode replicating the familiar blue-and-white split pane layout.
Outside the OS itself, cloud tooling is already forcing the pace. Microsoft began a 12-month retirement of Windows PowerShell 5.1 support for the Microsoft Graph PowerShell SDK in September 2026, making Graph SDK v3 strictly PowerShell 7-only—so waiting until 5.1 disappears from Windows is no longer practical for Microsoft 365 admins.
Before you rip out Windows PowerShell 5.1 across every server, understand the biggest technical caveat in Microsoft's plan. Starting with PowerShell 7.7 GA, Microsoft retired traditional Windows Installer (MSI) packages and switched to MSIX packaging for declarative servicing—and MSIX still trails MSI in 3 critical system-administration areas:
NT AUTHORITY\SYSTEM, affecting scheduled tasks, Windows services, device-management agents, and WinRM remoting.Add-WindowsCapability do not yet work cleanly across the MSIX boundary.
Microsoft candidly acknowledged all 3 gaps in its announcement and launched a dedicated Inbox Working Group to triage GitHub bug reports directly with the Windows team. Until those MSIX gaps close, administrators needing traditional MSI deployments for PowerShell 7.7 have even turned to community-signed builds or stayed on PowerShell 7.6 LTS.
Because MSIX historically installs per user rather than machine-wide, sysadmins managing multi-user Jump Boxes and Windows Server Core nodes have raised valid questions about patching consistency. Closing those provisioning and SYSTEM execution gaps will decide whether enterprises can retire powershell.exe smoothly in production.
Whether you manage corporate Windows fleets or build software on a modern Windows 11 developer workstation, treating 2026–2027 as your migration window avoids last-minute fire drills. If your PCs are still stuck on expired builds, start by moving to a supported OS branch via our Windows 11 26H2 upgrade guide.
Microsoft is also upgrading PSScriptAnalyzer and community tooling around 3 practical steps you can mirror right now: inventory every scheduled task and service calling powershell.exe, analyze scripts for 5.1-only .NET Framework assemblies or legacy WMI cmdlets, and test them side by side in pwsh.exe so your team switches cleanly on its own schedule.
Finally, audit any product-owned modules your team relies on daily—including RSAT, SCOM, and SharePoint Online. Because each product group owns its own PowerShell 7 roadmap, testing your real scripts now and filing compatibility issues on the PowerShell/PowerShell GitHub repository gives the Inbox Working Group concrete data to act on.
Bringing PowerShell 7 directly into Windows closes an 8-year gap that forced developers and sysadmins to treat Microsoft's modern shell like a third-party utility. Pairing an in-box pwsh.exe runtime with a default-enabled Windows PowerShell 5.1 Feature on Demand strikes a smart balance between forward progress and enterprise stability.
The real test over the next 12 months will be how fast Microsoft closes the MSIX gaps around SYSTEM scheduled tasks, DISM cmdlets, and machine-wide profiles before Windows Server 2028 ships. Are your production scripts already running smoothly on PowerShell 7, or do legacy 5.1 modules still hold you back? Share your experience in the comments below!
Solution Architect & Former Microsoft MVP
Kunal Chowdhury is an enterprise solution architect and former multi-year Microsoft MVP. He is the author of three technical books: Windows Presentation Foundation Development Cookbook, Mastering Visual Studio 2017, and the Mastering Visual Studio 2019.
He publishes technical articles on Kunal-Chowdhury.com.