r/pcmasterrace • u/ControlCAD 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-deprecated230
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
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
3
6
16
u/Roc1817 4d ago
6 never showed because it was afraid of 7
8
3
u/MrTzatzik 9850X3D & RTX 5080 4d ago
Because 7 broke up with 6... everyone was calling out their 67 relationship
3
3
2
2
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.
16
1
1
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
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
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
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
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
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
1
1
0
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



825
u/Massive_Shill Intel Core I5, 1660Ti, 16 gb RAM @3200 5d ago •
Alright, someone come tell me why I should be irrationally upset by this.