The right way to Replace PowerShell on Home windows 11


A PowerShell logo on the Windows 11 default background.

In the event you test your PowerShell model and discover it is outdated — or PowerShell helpfully reminds you {that a} newer model is out there — you’ve got a number of choices. This is one of the simplest ways to replace PowerShell on Home windows 11.

the best way to replace powershell

One of the best ways to replace PowerShell is thru the command line utilizing Winget.

Winget is a bundle supervisor launched in Home windows 10. Winget helps you to obtain and set up sure applications from a centralized repository of applications as an alternative of needing to trace down an installer manually. In the event you’re acquainted with these techniques, it is appropriate on Debian-based Linux distros (like Ubuntu), dnf on Fedora, or pacman on Arch.

associated: The right way to Verify PowerShell Model on Home windows 11

To obtain and set up the replace, open the PowerShell tab in Terminal. Sort or copy and paste the next command on the command line and press Enter. This command will obtain and set up the most recent model of PowerShell from Microsoft’s GitHub repository:

winget set up --id Microsoft.Powershell --source winget

Remark: That command downloads the most recent steady PowerShell launch. In order for you a preview model of PowerShell – which is principally the open beta model – substitute Microsoft.Powershell with Microsoft.PowerShell.Preview within the final order.

Winget is downloading a new version of PowerShell from GitHub.

As soon as the obtain and set up is completed, it’s best to shut all of your terminal home windows.

It is very important notice that PowerShell 7.x won’t utterly substitute PowerShell 5.x if you set up it in your system. slightly than. PowerShell 7.x is put in in a unique location, and each variations of PowerShell are usable in your PC.

Whenever you launch Terminal after putting in PowerShell 7.x, you will see that you just now have an extra PowerShell profile accessible.

Two different versions of PowerShell are available as profiles.

You possibly can swap to a more recent model of PowerShell at any time by clicking the small chevron (a tailless down arrow) on the high of the window and choosing it from the drop-down menu. You can even change the default shell in Terminal to the most recent model of PowerShell if you want.

PowerShell is kind of totally different from the Command Immediate and is way more highly effective. If it’s important to spend sufficient time manipulating Home windows 10 or Home windows 11 with the command-line interface, it is value taking a while to discover ways to use PowerShell.

associated: Geek College: Be taught to Automate Home windows with PowerShell


Supply hyperlink