How to Update PowerShell on Windows

How to Update PowerShell on Windows

PowerShell may take time to respond to your commands or return with errors. At times, PowerShell may also fail to open on your Windows PC. You can easily fix such problems by updating PowerShell. Here’s how to update it.

1. Install or Update PowerShell with the Winget Command

The easiest way to install or update PowerShell in Windows is by using the Winget Command. Windows Package Manager (Winget) is a command-line tool that lets you install apps on your Windows PC.

1. Type in Command Prompt on the Windows 11 Search. Right-click on the Command Prompt and select Run as administrator.

Run as administrator

2. Execute this command and press Enter.

winget search PowerShell

execute this command

3. Note down the ID associated with the PowerShell app.

PowerShell

4. Execute this command by replacing AppID with the app ID you’ve just copied.

winget install AppID

winget install AppID

2. Install or Update PowerShell from GitHub

If you don’t want to use a command-line tool to update the PowerShell utility, you have the option to download & install the latest version of PowerShell from GitHub.

1. Open your favorite web browser and visit this GitHub page.

2. You will find three different options to download the .msi files (LTS, Stable, Preview).

three different options to download

3. You should download the Stable version. Once you have downloaded the MSI file, double-click it to begin the installation.

4. Go with the default selections on the Optional Actions and click Next.

Next

5. Wait until the installation completes.

installation

3. Update PowerShell from the Microsoft Store

If you are using Windows 11, you can install or update the PowerShell utility using the Microsoft Store app.

1. Open Microsoft Store from the Windows Search.

Microsoft Store

2. Search for PowerShell.

PowerShell

3. If any update is available, you will see the Update button. Click Update.

4. If PowerShell is not installed on your device, you must click the Install button.

Use Both PowerShell 5 and PowerShell 7

If you have followed these steps to install PowerShell on your device, you will have both PowerShell 5 and 7.

Use Both PowerShell 5 and PowerShell 7

PowerShell 7.x is installed in a different location on your device, but both versions remain active. If you are a Terminal user, you will find an additional PowerShell Profile.

This guide explains how to update or install PowerShell on Windows. Please let us know if you need more help updating PowerShell on Windows 11.

The post How to Update PowerShell on Windows appeared first on TechViral.



from TechViral

Post a Comment

0 Comments