Microsoft has announced that future Windows releases will include PowerShell 7 as a default component, marking a shift away from the legacy Windows PowerShell 5.1. This transition aims to replace the older tool with the modern, cross-platform version of PowerShell.

According to support document KB5137172, Windows PowerShell 5.1 has entered a deprecation phase. While it will continue to receive security updates aligned with the Windows lifecycle, active feature development has ceased. Existing scripts and tools will remain functional for the time being.

Windows Server 2025 and Windows 11 26H2 are the final versions to have Windows PowerShell 5.1 enabled by default. In subsequent releases, the legacy version will transition to a Feature on Demand (FOD) status before being completely removed from the operating system.

Microsoft notes that PowerShell 7 and the legacy 5.1 version can run in parallel, allowing for a gradual migration of automated tasks and system services. The company advises administrators to audit existing scripts and dependencies, as full compatibility between the two versions is not guaranteed.

To support this transition, Microsoft is developing migration tools and compatibility checkers to assist administrators. Additionally, the company has established the Inbox Working Group to address and resolve issues related to the integration of PowerShell 7 within the Windows environment.