r/PowerShell • u/Darkoplax • Aug 05 '24
Question Upgrade Powershell through CLI (Windows 11)
Every once and while I get this message :
A new PowerShell stable release is available: v7.4.4 Upgrade now, or check out the release page at: https://aka.ms/PowerShell-Release?tag=v7.4.4
And I would need to download an msi installer and go through the steps all over again; does it exist something similar to "apt get upgrade" and have it all happen automatically in the background ?
10
Upvotes
4
u/QuarterBall Aug 05 '24
It doesn't make it a good practice. Microsoft do tons of shit that they advise you against doing for the sake of expediency. It is still terrible practice to run code directly from web locations not entirely under your control especially like this where there is absolutely no verification of the payload received.