If you check your PowerShell version and find it is out of date — or PowerShell has been helpfully reminding you that there is a new version available — you have a few options. Here is the best way to update PowerShell on Windows 11.
How to Update PowerShell
The best way to update PowerShell is through the command line, using winget.
Winget is a package manager introduced in Windows 10. Winget lets you download and install some programs from a centralized repository of programs rather than needing to track down an installer manually. It is a lot like apt on Debian-based Linux distros (like Ubuntu), dnf on Fedora, or pacman on Arch, if you’re familiar with those systems.
To download and install the update, open up a PowerShell tab in Terminal. Type or copy and paste the following command at the command line and press Enter. This command will download and install the latest version of PowerShell from Microsoft’s GitHub repository:
winget install –id Microsoft.Powershell…
Read Full Article Source