r/PowerShell • • Jun 18 '21

Microsoft will release future PowerShell updates via Windows Update

https://www.bleepingcomputer.com/news/microsoft/microsoft-will-release-future-powershell-updates-via-windows-update/
307 Upvotes

93 comments sorted by

View all comments

76

u/allywilson Jun 18 '21 edited Aug 12 '23

Moved to Lemmy (sopuli.xyz) -- mass edited with redact.dev

50

u/EIGRP_OH Jun 18 '21

Seriously? Do they not understand how much more Powershell 7 will be used if they start shipping Windows with it?

26

u/jrdnr_ Jun 18 '21

yes, however I don't believe PS7 was ever intended to be able to fully replace PS5 when it comes to working with Full .Net whatever-they-call-it. So for Windows administration PS5.1 is still required. It sure would make life easier if at least the Azure/M365 teams would be given a mandate to make everything customer facing PS7 support first but not something to hold your breath for.

5

u/[deleted] Jun 19 '21

.Net is a framework btw.

2

u/jrdnr_ Jun 19 '21

Yes, I meant .Net full vs core just couldn't think if there was a name for the closed source version of .Net framework.

0

u/[deleted] Jun 19 '21

[deleted]

→ More replies (4)

2

u/Thirdbeat Jun 19 '21

You can have both and use powershell or pwsh as their defined app name. So everything legacy uses powershell, but it's recommended you use pwsh

11

u/Alaknar Jun 18 '21

It's still too young. You have PS 5 on pretty much every Windows server out there, but not necessarily the newer versions of .Net.

And there's quite a bit of incompatibility or behaviour change between 5 and 7.

0

u/[deleted] Jun 18 '21

[deleted]

4

u/DaNPrS Jun 18 '21

Same. I've reverted back to 5.1 as my default shell in VSC.

3

u/da_chicken Jun 19 '21

Nope. The .Net Framework was intentionally designed to tightly integrate with Win32 in some areas specifically to make it difficult to make cross platform. Then mono happened, and then it took off on mobile, and then MS bought Xamarin to buy that platform. They fucked themselves over into owning two incompatible platforms that do the same thing. They vendor locked themselves.

Now they have a bunch of tools that use parts of the .Net Framework that can't be cross platform, and the dev teams for those tools don't want to write the missing libraries. This is the exact same shit that MS did to other companies in the 90s and 00s.

2

u/TheRealMisterd Jun 19 '21

Didn't they killed xamarin's cross platform features before they killed it altogether?

4

u/beth_maloney Jun 19 '21

They've effectively rebranded it. With .net 5 mono now Falls under the .net umbrella. So instead of developing for mono/xamarin you develop for .net and run it on the mono runtime.

mono is still alive and should be considered a complimentary runtime to .net core.

Xamarin supports iOS/Android and they're looking at supporting windows and Mac os X (not sure if that's been released yet).

1

u/The_One_X Jun 19 '21

New versions of .Net are not tied to the OS. They can be installed independently of Windows, so not having them on the machine isn't relevant.

1

u/Alaknar Jun 19 '21

So what? It still means you have to install it on all those old systems or risk compatibility issues if someone unaware wrights the script in PS7 and deploys it to an unsupported server.

→ More replies (2)

18

u/DaNPrS Jun 18 '21

As much as I appreciate winget, let not kid ourselves. It's not a package manager, it's a package wrapper. I don't see vendors using it for that very reason. Which, isn't that kind of the point?!

I wish they would've done it with the Windows Store. As is, winget is good for free software, or if you want to spin up your own repo.

It would be cool to have winget for Windows updates though. I don't see that happening.

19

u/dopyrory3 Jun 18 '21

Yo chill about Windows 11, if it ships with 5.1 go nuts but current build isn't final or even in the insider rings yet

5

u/jimb2 Jun 18 '21

Microsoft won't (intentionally) roll out a change that break a bunch of scripts that are running happily on corporate systems.

1

u/elsonsmith87 Jun 29 '21

Future Windows 10/11 bug (feature) says hi

4

u/[deleted] Jun 19 '21

Microsoft cannot feasibly replace Windows PowerShell with PowerShell without breaking compatibility with a TON of COM Object integration, non-core .NET stuff, and God knows what other things.

There's a big difference between these two branches of PowerShell.

After 5.1 (the seemingly-final release of the closed source Windows PowerShell), PowerShell was forked off into a cross-platform experiment called PowerShell Core, which became PowerShell 7 eventually. Many, many under-the-hood and over-the-hood changes were made and it's not as easy as "replace 5.1 with 7." It's similar to why the old Command Prompt is still in Windows - it's permanently glued to the OS.

2

u/halbaradkenafin Jun 19 '21

It is in Winget, and Choco and various other places. Its to give people a choice for how to install it.

They can't ship it in the box as the support lifecycles for .net core (which PS follows) are 3 years and for Windows its 10 years. There was some discussion on twitter about possibly shipping on non-ltsc releases as they don't have that same support requirement but its not any further than "we're looking into it".

2

u/TheCravin Jun 19 '21 edited Jul 11 '23

Comment has been removed because Spez killed Reddit :(

1

u/pakman82 Jun 19 '21

I agree we should'nt like this, but I'm lazy, and often challenged by super random scatter shot management. So every once in a while I forget an update, and find it frustrating to have to stop and update something when they have patch-banned an exchange online feature.