Science & Tech · Big Tech & Internet · 5 hrs ago

Microsoft plans to make PowerShell 7 the default in a future Windows version

Microsoft plans to make PowerShell 7 the default in a future Windows version

Microsoft plans to make PowerShell 7 the default in a future Windows version.

PowerShell is a tool used to run commands and automate tasks, including system administration, on Windows.

Windows 11 currently includes PowerShell 5.1, and version 26H2 will be the last Windows version to ship with it by default.

Both versions will work side by side at first, and PowerShell 5.1 will still be included when PowerShell 7 becomes the default.

Some older scripts may need changes to work with PowerShell 7, while others may need to keep running on version 5.1.

Microsoft has deprecated PowerShell 5.1, so it will no longer receive new features or quality improvements, though security updates will continue for the foreseeable future.

The default change is scheduled for the end of 2027, and Microsoft recommends that users check their scripts and tasks for compatibility before then.

3 sources

Related

What people are saying

Jason HelmickSenior product manager at Microsoft
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.
via Windows Central
Including PowerShell 7 in Windows is a milestone we’ve been working toward since PowerShell went cross-platform
via Windows Central
Many scripts run in PowerShell 7 without changes. Some need changes before they work, and some may need to keep running in Windows PowerShell 5.1. That’s because Windows PowerShell 5.1 and PowerShell 7 differ in some places.
via Windows Central