Microsoft says the next Windows version will ship with PowerShell 7 by default
Microsoft says the next Windows version will include PowerShell 7 by default, while Windows PowerShell 5.1 remains included for now and is being deprecated.
Last updated
Microsoft has announced that the next version of Windows will be the first to ship with PowerShell 7 as an in-box feature. Windows 11 version 26H2 will be the last Windows version to ship with PowerShell 5.1 by default.
PowerShell 5.1 will still be included in the next Windows version, and it can work alongside PowerShell 7. Microsoft says a future, unspecified version of Windows will eventually remove it, although users will still be able to install it as an optional feature on demand.
The transition is currently scheduled for the end of 2027. Microsoft recommends that users check scripts, scheduled tasks and installers for compatibility, because some PowerShell 5.1 scripts will require changes or may need to continue running under the older version.
Microsoft has also deprecated PowerShell 5.1. It will continue receiving security updates for the foreseeable future, but it will no longer receive new features or quality enhancements. PowerShell 7 is delivered as an MSIX and can be updated through the Microsoft Store.
Correction: The transition should be described as expected by the end of 2027, not as a confirmed or firmly scheduled date. Microsoft is expected to make PowerShell 7 the default command-line environment in Windows by then.