Microsoft to bundle PowerShell 7 with Windows as PowerShell 5.1 begins retirement
Microsoft will include PowerShell 7 in Windows starting with the next release, positioning it as the upgrade for Windows PowerShell 5.1, with details published in KB5137172. Windows Server 2025 and Windows 11 26H2 are the last versions to ship PowerShell 5.1 enabled by default; afterwards it becomes a Feature On Demand before eventual removal. Microsoft says PowerShell 7 runs side by side with 5.1 and existing scripts need no changes, though compatibility between the .NET Framework-based 5.1 and the cross-platform 7 is not seamless.
