How to update PowerShell in Windows 11

If you check your version of PowerShell and find that it’s out of date – or if PowerShell helpfully reminds you that a new version is available – you have a few options. Here is the best way to update PowerShell in 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 with Windows 10. Winget allows you to download and install certain programs from a centralized software repository instead of manually looking for an installer. This is very similar to apt in Debian. based on Linux distributions (like Ubuntu), dnf on Fedora, or pacman on Arch if you’re familiar with those systems.

To download and install the update, open the PowerShell tab in the Terminal. Type or copy and paste the following command into the command prompt and press Enter. This command will download and install the latest PowerShell from the Microsoft GitHub repository:

winget install –id Microsoft.Powershell –source winget

Note: This command downloads the latest stable version of PowerShell. If you want a preview version of PowerShell – which is basically an open beta version – replace Microsoft.Powershell with Microsoft.PowerShell.Preview in the previous command.

Once the download and installation is complete, you should close all terminal windows.

It’s important to note that PowerShell 7.x will not completely replace PowerShell 5.x when installed on your system. Instead of. PowerShell 7.x is installed in a separate location and both versions of PowerShell can still be used on your PC.

When you launch the Terminal after installing PowerShell 7.x, you will find that you now have an additional PowerShell profile available.

You can switch to the new version of PowerShell at any time by clicking the little chevron (tailless down arrow) at the top of the window and selecting it from the drop-down menu. You can also change the default shell in the terminal to the latest version of PowerShell if you like.

PowerShell is significantly different from the command line and much more powerful. If you have to spend a significant amount of time managing Windows 10 or Windows 11 using the CLI, it’s worth spending some time learning how to use PowerShell.


by Abdullah Sam
I’m a teacher, researcher and writer. I write about study subjects to improve the learning of college and university students. I write top Quality study notes Mostly, Tech, Games, Education, And Solutions/Tips and Tricks. I am a person who helps students to acquire knowledge, competence or virtue.

Leave a Comment