r/PowerShell • u/DickHorner • Jun 08 '26
Script Sharing PowerShell helper for updating stable, LTS and preview builds *from within PowerShell*
I built a small local PowerShell module called PSPUpdater.
It adds a simple PSPU command that checks the official PowerShell release feeds, shows the currently available channels and installs the matching Windows MSI package from within powershell itself. You'll never ever have to leave your cozy shell if you need to run an update! It supports stable, lts, daily and preview channels like rc, beta, alpha or preview, depending on what is currently available.
Basic usage:
PSPU
PSPU -List
PSPU stable
PSPU rc
PSPU daily
The tool is intentionally small: no package manager, no hard-coded version links, just official release metadata and direct MSI installation.
PowerShell Gallery: https://www.powershellgallery.com/packages/PSPUpdater/
GitHub: https://github.com/DickHorner/PSPUpdater
Feedback, bug reports and suggestions are welcome.
2
u/BlackV Jun 08 '26 edited Jun 08 '26
be aware that as of pwsh 7.7.x the MSI is going away *at current time of writing
https://devblogs.microsoft.com/powershell/powershell-msi-deprecation/
I personally have a scheduled task for weekly
any reason
Get-PSPUArchitectureis 2If's and aswitch, rather than just 1switch? (or 1switchand anifmaybe)you have some nice structured code here, why use all the back ticks ?
10
u/DirectInvestigator66 Jun 08 '26 edited Jun 08 '26 •
Low quality LLM slop. Code has more issues than I can fit in a comment, not to mention there’s zero mention in your post that all the output is in Deutsch.
It’s fine to use an LLM to write a script that works for you but don’t share it out like it’s a production ready script. You have to take the time to actually learn if that’s something you actually want to do. You posting this is a clear sign that you don’t know PowerShell or coding well enough for it to be worth anyone’s time for you to curate LLM output for them. Do everyone a favor and if this is a goal/desire share your own code so we can help you to improve! Or if you think the LLM is helping, hide away with it until you are producing something that isn’t shit.
4
u/420GB Jun 08 '26
The proper and non-vibecoded solution for this is https://github.com/Devolutions/multi-pwsh btw if anyone needs something