Feature updates will end
Microsoft continues to provide security updates and bug fixes for PowerShell 5.1 to ensure it remains secure. Microsoft announced in mid-November 2026 that PowerShell 5.1 is "no longer in active development." The feature set for version 5.1 will dwindle over time when compared to newer versions. Windows Server 2025 and Windows 11 26H2 are the last full versions of the operating system that will ship with PowerShell 5.1 enabled by default, while the Windows 11 27H1 release expected in early 2027 will offer it only as a Feature on Demand. A Feature on Demand is a Windows feature that remains available for download but is not included in the base package. Microsoft has not set a hard and fast end date for 5.1. Microsoft is giving users plenty of time to update scripts, installers, and tasks that rely on 5.1 before they make the switch. This is important for users who rely on scheduled tasks and admin scripts.
Transitioning to PowerShell 7
The move to PowerShell 7 is the best way to access modern, cross-platform features developed in the open. Microsoft Senior Product Manager Jason Helmick says the change will unify PowerShell on Windows in the future by moving away from the split between the version in the box and the modern version. For many years, Windows has shipped with two versions: PowerShell 5.1, which is the version in the box, and PowerShell 7. PowerShell 5.1 carries a great deal of the world’s automation, including the scheduled tasks, services, and admin scripts that have run quietly for years in many environments. PowerShell 7 is the modern PowerShell version where new features go. PowerShell 7 will work alongside 5.1 for now, but Microsoft will gradually phase out the older version. Because 5.1 and 7 have significant differences in architecture, copying a script to the newer version and hitting Enter is not always as simple as it sounds. Users must copy their scripts to PowerShell 7 to find what breaks before those scripts enter production. Users can use PSScriptAnalyzer to help identify broken code.
