r/PowerShell • • 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

103 comments sorted by

View all comments

Show parent comment

10

u/[deleted] Apr 22 '26

[removed] โ€” view removed comment

2

u/Alaknar Apr 22 '26

The grouppolicy module doesnโ€™t work in 7, for example.

If you import the module with -UseWindowsPowerShell, it works.

13

u/[deleted] Apr 22 '26

[removed] โ€” view removed comment

3

u/patjuh112 Apr 22 '26

Now thats what i call an excellent answer! ๐Ÿ‘Œ

1

u/BlackV Apr 22 '26

There are a bunch of modules that don't work quite right when imported using invoke/usePowerShell ther are pain pots for cim and deseralised objects and many more

a bunch of windows server modules that have not been updated to core/7

1

u/Alaknar Apr 22 '26

That's fair. I mostly work with cloud modules these days so I don't have that issue.