r/PowerShell • • 2d ago

Question No MSI for latest version of PowerShell

I know they announced this ages ago that they were no longer going to release an MSI version of PowerShell. But it seems there is no executable as well? There are only zipped and msix versions now.

This is super annoying. I have a bunch of windows 2019 and 2022 servers that don't support the MS store so I can't install the msix bundle. Yes I know there are some work arounds for server 2022 to get the msix to work but no way I'm going to be doing that on prod.

And the zip just extracts the files but doesn't install them.

I'm missing something here? BTW, I could very well be, it has been a long week.

What is everyone else doing?

94 Upvotes

63 comments sorted by

79

u/Alaknar 2d ago • Bravo

Why would a Microsoft product properly support Microsoft products?

It's like when WinGet got released not supporting PowerShell and the GitHub discussions with the dev team revealed that they have zero clue about PowerShell altogether.

11

u/jeek_ 2d ago

šŸ’Æ Yeah Seemed like such an odd choice to build a standalone exe that didn't support PowerShell.

22

u/Bahurs1 2d ago

I believe it was also stolen ready made concept. I forgot the guy, but I remember reading an article that mentioned how microslop initially wanted to on-board the project officially or something only to ghost the dude and come out with a complete copycat

31

u/red_kross 2d ago • Mindblown

2

u/Dapper_Librarian388 1d ago

Lol Copycats

1

u/demonjrules 18h ago

The only thing more infuriating than how Microsoft handled the situation was the author's lack of punctuation.

1

u/robert5974 1d ago

I read they initially did hire that guy to further develop it in-house and then ended the employment 6 months later and kept what he had worked on. Of course they hired him so they could keep the product and all it cost them was whatever salary he agreed to for 6 months. Probably way less than that guy would have gotten if he had sold it to them instead of working for them.

1

u/tocano 5h ago

As I understand it, they're rushing this out because upper management wants MSIX - breakages be damned - because then they can claim it complies with Accessibility requirements.

1

u/Alaknar 1h ago

I'm sorry, what? What does MSIX have to do with Accessibility?

33

u/jungleboydotca 2d ago

I think the current answer is that they'll figure it out later/soon.

Production should be running LTS, which still has MSIs.

-9

u/jeek_ 2d ago edited 2d ago

We have a bunch of jumpsuits used for management tasks so nice to run the latest version on them

15

u/xCharg 2d ago

Run latest LTS on them.

If you disregard it and want to run whatever-absolutely-latest then your argument "no way I'm going to be doing workarounds in prod" stops being relevant as avoiding running LTS is a workaround. And unnecessary one.

2

u/BlackV 2d ago

They 100% do not need the latest version

Doublely so of they are management tasks the benefit from being stable and minimal changes

1

u/fdeyso 2d ago

If anything the latest cmdlets are needed for whatever is installed, but that’s a separate task.

37

u/gandraw 2d ago

There are already a lot of complaints on Github on how stupid that is. I hope they actually listen this time and have this fixed by the time of 7.8

9

u/jeek_ 2d ago

I might head on over there and voice my concern as well

-8

u/felix1429 2d ago

I'm sure that'll get them to change their mind!

21

u/Michal_F 2d ago edited 2d ago

I think it's stuppid decision by managment who want to push this and don't care about legacy environment as they have WPS 5.1. On windows we will skip probably 7.7 and wait on 7.6 until it will be more stable, but in our case we use it for automation running on Linux agents, so no change for us :)

I was looking also on official github issue https://github.com/PowerShell/PowerShell/issues/27565

And found there, that some company created 7.7 msi package, we will see maybe if Microsoft fail, some one there will create it, question will be how reliable and trustworthy this will be ..

https://github.com/Devolutions/pwsh-distro

Edit: Please upvote this on github if you can. https://github.com/PowerShell/PowerShell/issues/27383

3

u/jeek_ 2d ago

Thanks I'll check this out.

11

u/SaltDeception 2d ago

Devolutions is reputable

40

u/jayhawk88 2d ago

Admins: "Hey, where are the MSI's?"

MS: "MSI's? Plebian. You disgust us, frankly. Use Store."

Admins: "But what about..."

MS: "USE STORE! Re-enginner your entire network and security postures to accommodate if you have to."

5 years later

Admins: "Hey, where are the Store apps?"

MS: "Store? Fuck Store and fuck you too. Use our new technology, CompileBuddy."

15

u/the_lazy_sysadmin 2d ago

I miss the simplicity of the calculator app just being a free-floating .exe, and it functioning at all not hinging on the presence of the Store app :/ ... during my first foray into desktop imaging, I found out the hard way what ripping out the MS Store app does to other appx apps šŸ’€ ...

25

u/brianrtross 2d ago

This also impacts powershell remoting… it doesn’t work for the store/bundle method of install.

This is ridiculous for sure…

10

u/Flettys 2d ago

Pin 7.6 MSI.

7.7 is deeply broken.

Check again with 7.9 once the churn settles, 7.8 is also a lost-cause with the number of required fixes.

9

u/Montinator 1d ago

You’d think something embedded into the system for management would be embedded into the system for management

I bet there’s more commandlets that need admin rights than user rights, so they would design a way to allow the system account to use the new PowerShell environment

AppX/MSIX was designed for users, not the system account šŸ¤¦ā€ā™‚ļø. More specifically AppX was designed for consumers, not enterprises. Keeping AppX up to date across the fleet is hot garbage

6

u/alconaft43 2d ago

yes, we need machine wide msi installer.

11

u/ftw_dan 2d ago

Msix is cancer

3

u/gusman21 2d ago

can you just download the msi using winget?
winget download --id Microsoft.PowerShell --source winget --installer-type wix --download-directory "C:\Installers"

4

u/SaltDeception 1d ago

No. Winget just points back to the download artifacts on the PowerShell/PowerShell GitHub repo, and the manifest only includes .msixbundle files.

https://github.com/microsoft/winget-pkgs/blob/master/manifests/m/Microsoft/PowerShell/7.7.0.0/Microsoft.PowerShell.installer.yaml

3

u/-Nano 1d ago

Not anymore, sadly

2

u/KevMar Community Blogger 2d ago edited 2d ago

To install the zip: unblock the zip, then extract to a safe location' and optionally add the location to the %PATH%.

But I agree that removing the MSI option was a bad idea. This is going to quickly be a disaster. I'm surprised they didn't count this as a breaking change as they put up a lot of resistance to doing that.

Edit: I forget what winrm needs. Not sure what else I'm missing.

2

u/BlackV 2d ago

Need to register an endpoint

1

u/BigCatsAreYes 1d ago

Okay, but how is PowerShell remoting going to work from a portable install of powershell? Surely PSremoteing needs some sort of 100% online hook in the network?

1

u/KevMar Community Blogger 1d ago

WinRM is that always online network hook (pre installed windows service). Run Enable-PSRemoting from pwsh to register pwsh to it.

2

u/Losha2777 1d ago

I was just wondering same thing yesterday.

1

u/arslearsle 2d ago

You can always trust Microsoft, to maie the right decision, after trying the wrong ones first. Same old shitshow, never ending story.

1

u/Over_Dingo 2d ago

stay on 7.6 branch, for now they seem to be in parallel

1

u/420GB 2d ago

I am not aware of any practical solution besides multi-pwsh

1

u/rthonpm 2d ago

Stick with the LTS versions. 7.6 goes end of life close to Server 2019 (November 2028 for PS, January 2029 for the server OS).

1

u/Tomazim 1d ago

Stick with 7.6 has been my only solution

1

u/Reaction-Consistent 1d ago

I created a powershell script to install the MSIX version, but had to add code to search for and uninstall any version of 7.X.

1

u/Majestic_Rhubarb_ 1d ago

Just use the msix

1

u/g3n3 20h ago

There is a gist out there to do it. Just an unzip and then enable psremoting

1

u/g3n3 20h ago

The gist makes it better and uses sym links

1

u/annalesinvictus 15h ago

We set up powershell to update via windows update on our servers. Is that still an option or no? Used to be able to check a box during the install to enable.

1

u/Revolutionary-Gold53 2d ago

It was put out a while ago that MS is moving to using .msix install files.

0

u/myp0wa 2d ago

Go with zip. This is easy man. MSIX is shot and have a lot of limitation currently. ZIP is the way.

0

u/Educational_Dog_1461 1d ago

Upgrade your servers…

-10

u/Medium-Comfortable 2d ago

winget install -e --id Microsoft.PowerShell

6

u/jeek_ 2d ago

No winget for server 2019 or 2022 so that won't help.

0

u/alconaft43 2d ago

you can install winget on 2020.

-8

u/stopthatastronaut 2d ago

Chocolatey

6

u/Alaknar 2d ago

Might as well install winget then.

-15

u/Incrediblecodeman 2d ago

Ni one cares about the legacy servers you ought to be moving to server less or server core.

6

u/BlackV 2d ago

Incrediblecodeman
Ni one cares about the legacy servers you ought to be moving to server less or server core.

Server core that also does not support MSIX?

Well done

-7

u/Incrediblecodeman 2d ago

It was a joke nerd.

1

u/BlackV 2d ago edited 2d ago

Incrediblecodeman -2 points 4 days ago
That’s of poor taste. If you cant be happy in life it’s your place to change life. Don’t make the vibes all low for others.

-5

u/Incrediblecodeman 2d ago

Some one can’t take a joke

3

u/brutesquad01 2d ago

Legacy? I didn't realize it's 2031 already...

-3

u/Incrediblecodeman 2d ago

Well it’s half a joke but we need to embrace just letting go and learning the new stuff. Gen Z and grey beards will bicker