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.

 

PowerShell 7 Coming Built Into Windows and Windows PowerShell 5.1 Deprecation KB5137172
PowerShell 7 comes in-box to the next Windows release as Windows PowerShell 5.1 enters deprecation under KB5137172.

 

Table of Contents

 

  • In-Box Starting Next Windows Release: PowerShell 7 ships built into Windows Server 2028 (already spotted with 7.7.0 in previews) and the next Windows 11 client release.
  • Forward-Only Rollout: Windows 11 26H2 and Windows Server 2025 are the final versions with Windows PowerShell 5.1 as standard; 5.1 stays supported through their lifecycles.
  • Side-by-Side Safety Net: Windows PowerShell 5.1 becomes a Feature on Demand (FOD) enabled by default in the next release, keeping legacy scripts running untouched.
  • MSIX Packaging Trade-Offs: Microsoft dropped official MSI installers in PowerShell 7.7 and is actively closing MSIX gaps for SYSTEM tasks, DISM cmdlets, and all-users profiles.
  • PowerShell ISE Stays Behind: Legacy ISE remains locked to 5.1; Microsoft recommends Visual Studio Code with the PowerShell extension's ISE Mode.

 

 

The New Windows Roadmap and KB5137172 Deprecation Timeline

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:

  1. 2026 Baseline (Deprecation Notice): Windows PowerShell 5.1 is officially deprecated. Both Windows 11 version 26H2 and Windows Server 2025 are the last OS releases to ship 5.1 as standard, and Microsoft confirmed PowerShell 7 will not be backported in-box to 26H2.
  2. Next Windows Release (Side-by-Side Default): PowerShell 7 ships built into Windows Server 2028 (preview builds already carry PowerShell 7.7.0) and the next Windows 11 client release. Windows PowerShell 5.1 converts into a Feature on Demand (FOD) that stays enabled by default.
  3. Future Windows Release (Eventual Removal): Windows PowerShell 5.1 will be removed entirely once telemetry confirms broad migration, with advance notice provided before any cutoff.

 

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.

 

 

What Happens to Existing Scripts, Scheduled Tasks and PowerShell ISE

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.

 

 

The 3 MSIX Gaps Microsoft Is Still Closing Before Full Parity

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:

 

Current PowerShell 7 MSIX Parity Gaps

  • Running as the SYSTEM Account: MSIX's per-user sandboxing still lacks full support for running scripts as NT AUTHORITY\SYSTEM, affecting scheduled tasks, Windows services, device-management agents, and WinRM remoting.
  • DISM Cmdlet Support: Core Windows servicing commands such as Add-WindowsCapability do not yet work cleanly across the MSIX boundary.
  • Machine-Wide Profiles & Settings: Shared configurations like the all-users PowerShell profile still need engineering work to match traditional MSI behavior.

 

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.

 

 

How Developers and IT Admins Should Prepare Today

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.

 

 

Frequently Asked Questions (FAQ)

  1. When will PowerShell 7 ship built into Windows?
    Microsoft announced on November 17, 2026 at Ignite 2026 that PowerShell 7 will ship in-box starting with the next release of Windows—beginning on the server side with Windows Server 2028 (where preview builds already include PowerShell 7.7.0) and the next major Windows 11 client release.
  2. Will Windows 11 26H2 or Windows Server 2025 receive PowerShell 7 built in?
    No. Microsoft confirmed that shipping PowerShell 7 in-box is forward-only. Windows 11 26H2 and Windows Server 2025 are the final versions to include Windows PowerShell 5.1 as standard, and 5.1 remains supported with security updates throughout each OS version's lifecycle.
  3. Will my existing Windows PowerShell 5.1 scripts and scheduled tasks break?
    No. PowerShell 7 (pwsh.exe) runs side by side with Windows PowerShell 5.1 (powershell.exe). In the next Windows release, Windows PowerShell 5.1 moves to a Feature on Demand (FOD) that remains enabled by default, so existing scripts, services, and scheduled tasks continue running untouched.
  4. When will Microsoft completely remove Windows PowerShell 5.1 from Windows?
    Microsoft has deprecated Windows PowerShell 5.1 under KB5137172, but it has not set a final removal date yet. The company says it will announce the removal schedule well in advance based on enterprise usage and migration telemetry.
  5. What MSIX limitations is Microsoft still fixing for PowerShell 7 in Windows?
    Because PowerShell 7 is delivered as an MSIX package (with official MSI installers dropped starting in PowerShell 7.7), Microsoft is actively closing 3 key gaps: running under the NT AUTHORITY\SYSTEM account, supporting DISM cmdlets like Add-WindowsCapability, and supporting machine-wide all-users profiles.
  6. Will Windows PowerShell ISE work with PowerShell 7?
    No. Microsoft confirmed that Windows PowerShell ISE is built strictly for Windows PowerShell 5.1 and will never switch to PowerShell 7. For editing and debugging PowerShell 7 scripts, Microsoft recommends Visual Studio Code with the PowerShell extension and its built-in ISE Mode.
  7. Which .NET runtime powers the latest PowerShell 7.7 release?
    PowerShell 7.7 GA, released on November 10, 2026, runs on .NET 11, bringing modern cross-platform runtime speedups alongside updated cmdlets and bug fixes, while PowerShell 7.4 reached End of Support on the same day.
  8. How does Microsoft plan to help IT teams migrate fleets from PowerShell 5.1 to 7?
    Microsoft is forming an Inbox Working Group to triage Windows integration bugs and investing in PSScriptAnalyzer compatibility upgrades focused on 3 areas: fleet inventory (including scheduled tasks and services), automated script analysis, and actionable fix guidance.
  9. What about older modules like SharePoint Online, SCOM, and RSAT?
    Product-specific modules such as SharePoint Online, SCOM, and RSAT are maintained by their own teams. While PowerShell 7 includes a Windows PowerShell Compatibility layer for many modules, teams relying on legacy .NET Framework modules should test them in pwsh.exe before migrating.
  10. Should I start writing new Windows automation scripts for PowerShell 7 right now?
    Yes. With Windows PowerShell 5.1 officially deprecated under KB5137172 and Microsoft Graph PowerShell SDK v3 dropping 5.1 support over its 12-month retirement window, targeting PowerShell 7 (pwsh.exe) for all new scripts is the safest path forward.

 

 

End Note

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!

 

PowerShell 7 In-Box Windows Roadmap and 5.1 Migration Summary
PowerShell 7 Windows transition summary: in-box in the next release, Windows PowerShell 5.1 as Feature on Demand, and active MSIX parity work.

 


Kunal Chowdhury

About the Author

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 .