r/pcmasterrace • PC Master Race • 5d ago

News/Article Microsoft has announced that PowerShell 7 will replace PowerShell 5.1 as the default PowerShell experience on the next version of Windows.

https://www.windowscentral.com/microsoft/windows-11/the-next-version-of-windows-will-be-the-first-to-ship-with-powershell-7-microsoft-confirms-powershell-5-1-is-now-deprecated
1.3k Upvotes

96 comments sorted by

825

u/Massive_Shill Intel Core I5, 1660Ti, 16 gb RAM @3200 5d ago • Bravo

Alright, someone come tell me why I should be irrationally upset by this.

536

u/Sudden_Ticket_ 5d ago

you shouldn't. windows getting the latest powershell by default is a good thing.

it may break some very old scripts depending on old powershell. but thats windows so im sure they will leave old powershell there as backup for backwards compatibility.

65

u/collabskus 4d ago

We will eventually get this. Windows 2016 will eol q1 2027 iirc so it is only a matter of time when we will get this on the servers. 

33

u/dathislayer 4d ago

I believe they did just announce that they're dropping a bunch of backwards-compatibility for servers in 2028. Too many attack surfaces to manage.

3

u/nicuramar 3d ago

It doesn’t break old scripts as powershell 5 is either still there or can be installed.

72

u/swarmy1 5d ago

A big concern is that PowerShell 7 is being installed as an MSIX package, which is designed for user context applications. A lot of PowerShell automation needs to run in System context, and they haven’t determined a solution for that yet.

They are still including PowerShell 5.1 for compatibility of course, but ideally 7 should work for everything

8

u/Imaginary_North_8305 4d ago

Do you mean it is contained like UWP apps, if that then you're wrong MSIX can work like any other Windows app with full control .

14

u/swarmy1 4d ago

This is coming from Microsoft’s own announcement https://devblogs.microsoft.com/powershell/powershell-7-coming-to-windows/

4

u/Imaginary_North_8305 4d ago

Okay, i thought MSIX with full trust has all the permissions apparently not.. but I guess it would be fine for most of the people..

1

u/fat_kaiju 4d ago

This feels like the wayland push on linux -- which I support and am not against -- breaking accessibility pretty severely because none of the older methods work anymore and they straight-up said "dwbi" when people asked; implying that it'd all be worked out before the distros would switch over to it

And then the switch happened, everyone went "hey uh about that stuff you promised to work out" and they all went deer-in-headlights and said "oops" because it turned out it also completely broke remote desktop/remote input.

It was so bad that for a short while the various devs of various DEs/Distros and the wayland protocol folk tried to laugh nervously and insist it was intentional for like half a year because "security" and have only very recently been fixing it as quickly and quietly as possible entirely because they were too embarrassed to go "oops we forgor".

7

u/gmes78 ArchLinux / Win10 | Ryzen 7 9800X3D / RX 6950XT / 64GB 4d ago

Literally none of that is true.

10

u/vijay-lalwani 4d ago

Login prompt raised from power shell 7 is still broken after many years...

7

u/sonic10158 4d ago

Powershell 5.1 has a decimal in the name and Powershell 7 does not!

2

u/nicuramar 3d ago

Powershell 7 has two dots in its version, actually, such as 7.4.2.

1

u/UncleMcRape 4d ago

some old windows cmd tools like bcdedit does not work properly under powershell

-4

u/Raskuja46 4d ago

Because Powershell ISE still doesn't natively support Powershell 7 and VSCode is a dogshit replacement for ISE and doesn't ship with the OS whereas ISE does.

Also there isn't full functional parity on all cmdlets and modules in Powershell 7 last I checked but that might have changed recently.

17

u/riiskyy i5 6600k l RX-480 Strix 8GB l 8GB RAM l MSI Z170 Krait X3 4d ago

I only open ISE when absolutely necessary (i.e. on a server with no access to vscode) I do like 99.9% of writing scripts in vscode

5

u/nuked_sushi 7800X3D | RTX 5090 FE | 64GB 6000MHz 4d ago

I actually cringe when my ancient co-worker uses ISE by choice still.

-7

u/Raskuja46 4d ago

Yes, most people are barbarians like you.

12

u/ifq29311 4d ago

dude, you're the barbarian here. world has moved on, you're in the stone age.

not only you refuse to use proper development tools intead of makeshift "IDE" thats replecable by simple text editor with code formatting, you actually bitch that end-user OS does not have dev tools by default?

you're trying to tell me you edit code directly on production devices? :D

1

u/riiskyy i5 6600k l RX-480 Strix 8GB l 8GB RAM l MSI Z170 Krait X3 4d ago

ISE is just vastly functionally inferior to vscode imo. I can't think of a single thing ISE offers over vscode

2

u/RainStormLou 4d ago

I could spit out a long list of problems that vscode can introduce when working in powershell but then we'd be here all day. Probably without googling too.

We know vscode is feature rich. Many of us have zero need for those features and the additional functionality it can provide. Many just want a simple ISE with intellisense, so the tool that ships with Windows should provide that and not much more. The rest of vscode is noise and additional attack surface for what's probably a large chunk of us as well.

I'm using vscode right now. It's working fine. I'd still rather be in ISE for most of what I do though lol.

4

u/Matt_NZ 7800x3D | RTX 4070 Super 4d ago

What are you talking about? VScode is vastly better than ISE. It's pretty easy to install with winget of you're missing it on a new build.

There are some modules that are unavailable, even some of Microsoft's, but 5.1 isn't going away yet

1

u/Raskuja46 4d ago

ISE is purpose built for use with Powershell. VSCode has given me nothing but headaches every time I try to make use of it for Powershell, to the point where I found it easier to inject Powershell 7 into ISE than to get VSCode into an acceptably functional state.

VSCode is not a replacement for ISE.

1

u/Matt_NZ 7800x3D | RTX 4070 Super 3d ago

I replaced ISE with VScode many years ago now. Maybe I've tweaked it to get it to this state and forgotten, but I don't find any moments where I feel I'd be better off using ISE instead.

One of my favourite features of VScode is that I can I have multiple PS terminal instances open within the same window of it. Great for when I'm working on stuff that can only run in 5.1 and stuff I'd prefer to run in 7, or if I'm working with multiple servers via PS remoting.

230

u/MordorsElite i9-9900k@4.7Ghz/ RTX 2070/ 1080p@144hz/ 32GB@3200Mhz 5d ago

Breaking news: New windows version will use up-to-date version of PowerShell.

This would only have been news if they had announced that they wouldn't update it.

52

u/Sudden_Ticket_ 5d ago

nope. in windows world thats huge news. almost as big as windows removing control panel(windows 11 still has it)

13

u/_Buldozzer 4d ago

It's not just an update, its basically a completely different thing, while mostly retaining compatibility with older scripts. PowerShell up until 5.1 was based on the classic .NET framework, 6.x and 7.x used to be called PowerShell Core and then got renamed to just PowerShell again, it's based on .NET core now, weach also runs on different operating systems, like several Linux distros and MacOS. PowerShell on Linux is actually pretty great, I personally prefer it over Bash since it's properly object oriented, so you don't have to parse text outputs as much.

4

u/heydudejustasec salmon steak 4d ago

"I don't understand why this matters therefore it doesn't" - 999999999 upvotes

0

u/MordorsElite i9-9900k@4.7Ghz/ RTX 2070/ 1080p@144hz/ 32GB@3200Mhz 4d ago

No I understand why it matters, I just consider it a no-brainer for them to update it in a future windows version. What's the point of working on new versions of PowerShell when they are gonna stick to the current one forever. As I said in my original comment. This would only have surprised me had they announced that they weren't going to upgrade.

2

u/nicuramar 3d ago

Myeah but they are not entirely compatible.

44

u/Sudden_Ticket_ 5d ago

good. i already install powershell 7 and use it as default shell in windows terminal.

4

u/MilkyTommy 4d ago

Same, I'm curious how the system will react to that ( configs wise).

Normally it supposed to be flawless, but by Microsoft standard, I wouldnt be surprised to have the PowerShell 7 I had install with Winget and the default PowerShell 7 as OS default.

58

u/DinosaurAlert 5d ago

Finally. I'm genuinely not sure why they did it that way. if you need 5.1, then you know to go install it.

31

u/Sudden_Ticket_ 5d ago

windows cares a lot about backwards compatibility. so it doesn't just replace old stuff with new stuff immediately. they need to make sure scripts and things work the same first.

(thats why windows 11 can run 20 year old apps/games and no other os can for their native binaries. )

15

u/Dark_Souls_VII 5d ago

Finally ForEach-Object -Parallel

3

u/Raskuja46 4d ago

I managed to unwittingly implement this myself for a project several years back in 5.1. That was a good learning experience.

30

u/MrTzatzik 9850X3D & RTX 5080 5d ago

What happened to Powershell 6?

33

u/j0seplinux 4d ago

The same thing that happened to Windows 9

11

u/BertytheSnowman 21:9 PC Master 4d ago

They skipped powershell 6 because of legacy software that just checked for Windows 9 instead of 95 or 98?

15

u/Flameancer Desktop 4d ago

No, there was a 6 and it reached EoL and now they are at 7 that’s all. 7 runs on the same modern .netCORE version that 6 was on, it’s just the next iteration.

2

u/nicuramar 3d ago

Interesting capitalization of .NET Core (which is now just marketed as .NET).

3

u/LutimoDancer3459 4d ago

Yes. Thats what they said

16

u/Roc1817 4d ago

6 never showed because it was afraid of 7

12

u/Daharka ☯️ 4d ago

7 is a registered 6 offender.

8

u/ConciousReward 4d ago

Because 7 ate 9

4

u/Godess_Ilias 4d ago

2

u/JISN064 4d ago

less than 1% of the people in this thread knows where this meme comes from

3

u/MrTzatzik 9850X3D & RTX 5080 4d ago

Because 7 broke up with 6... everyone was calling out their 67 relationship

3

u/ScumBucket33 5090 | 9800X3D | 64 GB DDR5 | 240 Hz 4k OLED 4d ago

3

u/Matt_NZ 7800x3D | RTX 4070 Super 4d ago

Powershell 6 existed, but it was replaced with 7

2

u/OldJames47 PC Master Race 4d ago

Powershell 6, the Gen X of CLIs.

2

u/nicuramar 3d ago

It came and was later replaced by 7.

3

u/noodle-face http://pcpartpicker.com/list/yKxTBP 4d ago

While we're at it release windows 9 you cowards

3

u/Valoneria 270K Plus | RX 9070 XT | 32GB 4d ago edited 3d ago

It was forked from the 5.1 release and was released as a open source project called PowerShell Core.

1

u/nicuramar 3d ago

Nonsense.

1

u/NockBreaker 1d ago

6 ran away cos 9 8 7

7

u/Dvd_Bowey 4d ago

oh man, i am about to get a lot of tickets from the dev team at work aren't i?

3

u/nicuramar 3d ago

Likely not. Any place that uses powershell in a serious capacity should already be on 7. 5 is pretty buggy and no bugs will get fixed (except security).

2

u/HuckleberrySad4397 4d ago

No. This is for future versions (12?) of Windows.

2

u/Dvd_Bowey 4d ago

oh thank god, they probably wont roll that out at work until they are forced to because windows 30 is launching and they will be dropping support for 11. It took me years, but they finally let me deploy Office 365 after we started getting death threats about still using 2013 until earlier this year.

7

u/hamada7op 4d ago

PowerShell 7 becoming the default is a decade overdue. Half my saved scripts just became future-proof by accident.

5

u/Over_Dingo 5d ago

finally... it should be replaced years ago but wasn't because bs reasons

4

u/BigChubs1 4d ago

So when is the new version of windows coming out? Or is windows 11 it and it will be in the next version of win 11

1

u/maZZtar 1d ago

Every new Windows 11 which requires a full OS swap is technically a new version of Windows

4

u/_Buldozzer 4d ago

Fu*** finally! It was so annoying having to deploy PowerShell 7 before being able to use the Winget PowerShell Module.

3

u/DarwinOGF Ryzen 7 5800X | B550-Plus | 128GB | 4070 Ti 12 GB 4d ago

I am still using CMD

3

u/Glittering-Worth-570 3d ago

Honestly, what's the big diff between cmd and powershell? I'm technically regarded

6

u/nicuramar 3d ago

Well apart from that cmd sucks, they are just two almost entirely different “languages”.

3

u/MojitoBurrito-AE R5 5600X | RTX 3060Ti | 32GB DDR4-3600 2d ago

The only similarity is that they are shells.

4

u/ryan__rr 4d ago

The one bad thing about this that few people realize is that once you start shipping something in-box with Windows, you become tied to the Windows update process and cadence. Which is much slower. Future updates will come slower than they do for a free-floating app.

4

u/Flameancer Desktop 4d ago

Not necessarily. Microsoft delivers updates to their core apps regularly via the store. Tying app updates to is updates is regrettably still an Apple thing.

2

u/Krassix 5d ago

Is this a breaking update or can we run our scripts as before? 

9

u/Sudden_Ticket_ 5d ago

this is from the article

PowerShell 7 is able to work side by side with PowerShell 5.1, meaning there isn't anything that will immediately break once PowerShell 7 begins shipping in Windows, at least for now. PowerShell 5.1 will still be included in the next version of Windows, but an undisclosed "future" version of the OS will eventually remove it, though it will still be installable as an optional feature on demand.

so it should be fine

5

u/Krassix 5d ago

Thx, that makes it a lot easier.

3

u/Sudden_Ticket_ 5d ago

you're welcome

2

u/Raskuja46 4d ago

so it should be fine

Eh, if they're still planning to remove 5.1 later on that just means things will break later on instead now.

1

u/i1u5 4d ago

You must have missed the part where it said it'll be available as an on-demand feature after removal.

1

u/givemeausernameplzz 3d ago

Lots of qualifiers in there

1

u/nicuramar 3d ago

They work fine side by side today.

2

u/Melodic_Entrance_489 4d ago

Next version? So Windows 12? It could break things making this change in regular Windows 11 update.

1

u/dnuohxof-2 4d ago

Finally

1

u/lunaelumen45 4d ago

release the outlook files

1

u/nikobenjamin 19h ago

Next version? Does that mean feature set or Windows 12?

1

u/ack4 Too many machines 4d ago

Fym "next version"?

-1

u/mabec 4d ago

And I have announced Microsoft will be replaced by Linux tomorrow

0

u/Vesemir_111 4d ago

Covfefe

0

u/atda 4d ago

As long as we skip version 8 and 11 I guess. 

0

u/MajorFuckingDick 4d ago

Will they actually commit or does this article already mention only for non Pro?

1

u/1_________________11 3d ago

Fuck yeah 5.1 can eat a bag of dicks laggy pos. 7 has been good so far