Logic Foundry

Build with understanding.

PowerShell 7 to Ship with Future Windows Versions; 5.1 Migration Will Be Gradual

Microsoft announced on November 18, 2026, that future Windows versions will include PowerShell 7 by default as it gradually replaces Windows PowerShell 5.1. The change was reported on November 19, 2026; it does not require an immediate rewrite of existing scripts.

According to Microsoft’s KB5137172 support document, Windows PowerShell 5.1 is deprecated and no longer under active feature development. It remains part of Windows for now and will continue receiving security updates in line with the Windows lifecycle. Existing scripts and tools that depend on it will not immediately stop working.

Microsoft says Windows Server 2025 and Windows 11 26H2 are the last versions to enable 5.1 by default. In the next Windows version, 5.1 is set to become a feature on demand, with removal planned for a later version. PowerShell 7 and 5.1 can run side by side, allowing automation, scheduled tasks and services to migrate gradually.

One limitation matters for that migration: PowerShell 7 is currently delivered as an MSIX package, and Microsoft says work is still underway on running it as the SYSTEM account, DISM support and machine-wide settings. Those gaps are relevant to scheduled tasks, system services, device-management scripts and remote administration. Teams relying on those workflows should check compatibility before switching them to PowerShell 7.