
Microsoft announced earlier this week that PowerShell 7, the latest version of the command-line tool first introduced in 2019, will replace PowerShell 5.1 on the next version of Windows 11 (presumably 27H2). PowerShell 5.1, which is no longer in active development, will remain available as a Feature on Demand on the next version of Windows 11. However, that option will disappear in a future version of the OS.
“For years, PowerShell has lived in two places. Windows PowerShell 5.1 is the one in the box, and it has carried a great deal of the world’s automation: the scheduled tasks, services, and admin scripts that have run quietly for years. PowerShell 7 is the modern PowerShell: the one we develop in the open, across platforms, and where new features go,” explained Jason Helmick, Senior Product Manager at Microsoft. “Including PowerShell 7 in Windows is a milestone we’ve been working toward since PowerShell went cross-platform.”
While PowerShell 7 can be downloaded from the Microsoft Store, making the latest version available out of the box on Windows 11 has been a popular request from power users. However, Microsoft is working to address script compatibility issues between PowerShell 5.1 and PowerShell 7.
“Knowing which of your scripts, if any, need a change is the harder job, especially across many machines. To help you with that, we are investing in community-built tools, documentation, and improvements to PSScriptAnalyzer’s compatibility checks,” Helmick said earlier this week. Microsoft also created an Inbox Working Group to identify PowerShell 7 issues on Windows 11, and the company is also inviting users to share their feedback on the PowerShell GitHub page.