Microsoft to replace PowerShell 5.1 with PowerShell 7 in next version of Windows

Microsoft has announced that PowerShell 7 will become the default PowerShell experience in the next version of Windows, marking a significant shift in the company’s development tooling. The transition represents a move away from Windows PowerShell 5.1, which has been the in-box default since Windows 10 and continues to ship with Windows 11.

According to Jason Helmick, a senior product manager at Microsoft, PowerShell has historically existed in two distinct locations: Windows PowerShell 5.1 built into the operating system, and the cross-platform PowerShell 7, which users could install separately. This announcement consolidates that experience by making PowerShell 7 the standard offering.

Windows version 26H2 will be the final release to ship with PowerShell 5.1 as the default, effectively ending support for the older version as the primary shell. The move to PowerShell 7 represents Microsoft’s continued investment in its cross-platform, modern development tools and aligns with the company’s broader strategy of providing developers with more flexible, capable infrastructure.

Sources