I am using Microsoft Window1 Home on a 64 bit computer, and am using Windows PowerShell 7.2.5
I just opened my PowerShell today and it told me "A new PowerShell stable release is available: v7.2.6 Upgrade now, or check out the release page at: https://aka.ms/PowerShell-Release?tag=v7.2.6"
I looked at the release page but could not figure out from how to update it from the webpage.
I then tried the command winget upgrade Microsoft PowersShell
but got the error message Found a positional argument where none was expected: `PowerShell`
Any help in figuring out how to update this PowerShell would be greatly appreciated!
Other info about my computer: Version: 10.0.22000 Build 22000 System Model: Inspiron 7570 Processor: Intel(R) Core(TM) i5-8250U CPU
CodePudding user response:
Why use wget?
Just directly download the MSI (installer) locally and install it.
If you want to do this via code directly in PS, then do this:
Invoke-Expression "& { $(Invoke-RestMethod https://aka.ms/install-powershell.ps1) } -UseMSI"
When you install the latest version, it will ask you to allow for automatic updates via Windows Update for all future updates.