Microsoft says PowerShell 7 will be included with a future Windows release, while PowerShell 5.1 is beginning a gradual retirement, The Register reports. Windows 11 26H2 and Windows Server 2025 are the last releases to enable 5.1 by default. Microsoft says the older version will remain available as an optional feature before eventual removal, and it has not named the Windows release that will bundle PowerShell 7.
The two versions can run side by side, but compatibility is not complete. The Register notes outstanding gaps in the planned package, including running under the SYSTEM account, DISM cmdlets, and machine-wide settings. Existing enterprise scripts may therefore need testing before an organization changes its automation environment. Microsoft says it will use usage data and communicate before removing 5.1.
Why it matters
The transition is a long-term compatibility project, not an instruction to migrate every script immediately. Running both versions in parallel provides time to inventory dependencies, but enterprises often have scheduled tasks and management scripts that are difficult to discover centrally. The unresolved packaging features also mean a bundled PowerShell 7 may not initially replace every 5.1 use case.
Sources and further reading
This story is written in its own words. These links identify the reporting and announcements used to verify the details above.




