Skip to content
Theme
OnDevice Tools

WindowsWindows 11

PowerShell 7 to replace PowerShell 5.1 in next version of Windows

Microsoft says the next version of Windows will ship with PowerShell 7 as the default, while the older PowerShell 5.1 is now deprecated and no longer in active development.

Illustration of a Windows laptop screen showing a PowerShell 7 command line replacing an older version

Key takeaways

  • PowerShell 7 will become the default in the next version of Windows, replacing PowerShell 5.1.
  • Version 26H2 will be the last release to include PowerShell 5.1 as the default.
  • PowerShell 5.1 is now deprecated and no longer in active development, but will still get security updates.
  • The switch to PowerShell 7 as the default is expected at the end of 2027.
In this article
  1. PowerShell 7 to become the Windows default
  2. Two versions of PowerShell
  3. Both versions will run side by side
  4. PowerShell 5.1 is now deprecated
  5. What users should do next

PowerShell 7 to become the Windows default

Microsoft plans to make PowerShell 7 the default version of PowerShell in the next release of Windows, according to Windows Central. PowerShell is a tool that lets people automate tasks and manage a computer using commands and scripts. Windows 11 currently ships with the older PowerShell 5.1. Microsoft says the version known as 26H2 will be the last release to include PowerShell 5.1 as the default.

Being built in, or in-box, means the tool comes ready with the operating system rather than needing a separate download. Making PowerShell 7 the in-box version is a notable step for Microsoft.

Two versions of PowerShell

Illustration: Windows logo, update, security, settings and the labels Microsoft, Powershell 7, Security Update

The change ends a long stretch in which PowerShell has existed in two forms. Jason Helmick, a senior product manager at Microsoft, said Windows PowerShell 5.1 is the version built into Windows, and it has quietly handled much of the world's automation, from scheduled tasks to services and administrative scripts. He described PowerShell 7 as the modern version, one that Microsoft builds in the open and develops across platforms, and where new features arrive first.

Both versions will run side by side

PowerShell 7 and PowerShell 5.1 can run side by side, so the switch should not break existing work straight away. That means older scripts can keep using PowerShell 5.1 while newer work moves to PowerShell 7. PowerShell 5.1 will still be bundled with the next version of Windows. A later, unnamed release will eventually remove it, although it will remain available as an optional feature that people can add on demand.

PowerShell 5.1 is now deprecated

Alongside the announcement, Microsoft has marked PowerShell 5.1 as deprecated, which means Microsoft is no longer actively developing it. It will still receive security updates, and Microsoft will support it for the foreseeable future. It will not, however, get new features or quality improvements. Helmick said many scripts work in PowerShell 7 as they are, while others need edits, and some may have to stay on PowerShell 5.1 because the two versions differ in places.

What users should do next

Microsoft recommends that anyone who relies on PowerShell 5.1 starts moving to PowerShell 7. It advises checking that scripts, scheduled tasks and installers are compatible with the newer version. Scripts that do not work will need updating, or people will need to keep PowerShell 5.1 installed on any new machines. PowerShell 7 is delivered as an MSIX package, a Windows format for apps, and can be updated through the Microsoft Store. The release that makes PowerShell 7 the default is expected at the end of 2027.

Sources

  1. Microsoft to replace PowerShell 5.1 with PowerShell 7 in next version of WindowsWindows Central

Tags

Spotted a mistake? See our corrections policy. Read how News by OnDevice works in our editorial policy.