r/PowerShell • u/Technical_Rich_3080 • Apr 22 '26
Question PowerShell 5 vs. PowerShell 7
On Windows 11, is there any benefits for normal users to install PowerShell 7 and use it instead of PowerShell 5?
75
Upvotes
View all comments
Show parent comment
8
u/dodexahedron Apr 22 '26
And 5.1 is maintenance mode, and is .net framework.
7+ is active development and is built on and a host of the current supported version of .net.
7.6 is .net 10. .net 10 vs framework 4.8 is pretty significantly different under the hood and in terms of sheer API surface.
Dev work in github on PS is already using preview .net 11 builds (for what I assume will become powershell 7.7, since 7.6 is an LTS release).
And it is cross platform. That is a big deal.
And it can host the majority of older PS modules anyway and, when it can't, you can just launch a powershell.exe process in that tab, do what you need, and exit without missing a beat. The reverse is not true.
And Microsoft discourages new development in 5.1 for the above reasons.
This has long ago ceased to be a question of "why should I use the whiz-bang new toy?" and is now more of a "why would you hold yourself back a decade in progress for something that only requires one command (
winget install Microsoft.PowerShell) for a quick no-touch install and is required by more and more modules (including anything new out of microsoft) or will get installed along with quite a few things (like visual studio) anyway?"I wish they'd just suck it up and put it into the image as an in-box app with the next windows release, or do like they do for office, where the shortcuts are there and it installs on demand.