Powershell

How to update PowerShell

PowerShell is the command-line application to automate various tasks. PowerShell comprises several cmdlets, functions, and aliases to perform all those tasks that can be executed using the GUI. Microsoft Windows provides built-in support for PowerShell. However, it can be installed on Linux and Mac-based machines.

In computing, the frequent update mechanism of the packages is necessary to carry out. This guide will provide the possible methods to update the PowerShell with the following learning outcomes:

– How to Update PowerShell using MSI installer

– How to update PowerShell using the winget package manager

Prerequisites

By default, the winget package manager is not installed on your system. For this, you must go to Microsoft Store from your system and search for winget as shown below:

How to update PowerShell

Microsoft releases the PowerShell version with no defined time. The latest LTS of PowerShell is 7.2 which supports thousands of cmdlets to perform operations on your machines. Here, we have described various methods to update PowerShell.

How to update PowerShell using the msi installer

The msi installer of the PowerShell is available on GitHub. The following steps will lead you to download and install PowerShell using the msi installer.

Step 1: Navigate to the following link to get the msi installer from GitHub:

https://github.com/PowerShell/PowerShell

Scroll down the page and download the required version as we are downloading LTS:

A screenshot of a computer Description automatically generated

Step 2: Now, open the directory (usually it is Downloads) where the .msi installer of PowerShell is downloaded and click on the installer:

Graphical user interface, application Description automatically generated

Upon opening, the following interface will appear, click on “Run” to continue:

Keep on following the default settings and move forward by clicking on “Next“:

Graphical user interface, application Description automatically generated

Choose the location of installation:

Graphical user interface, text, application, email Description automatically generated

Choose the optional features as per your requirement:

Graphical user interface, text, application, email Description automatically generated

Now, select the update mechanism for PowerShell and click on “Next“:

Click on “Install” to proceed further:

Graphical user interface, text, application, email Description automatically generated

The installation will take a few moments. Once it is completed, you can launch it by clicking on “Finish“:

Graphical user interface, application Description automatically generated

Here you go with the black console!

Graphical user interface, text Description automatically generated

How to update PowerShell using the winget package manager

The winget is a windows package manager to update/install windows packages using PowerShell. This section lists various steps to update PowerShell using the winget:

Step 1: Open the PowerShell from the Start menu as follows:

Graphical user interface Description automatically generated

Step 2: Run the following command in your PowerShell terminal. We have used the “winget” package manager to download and install the latest version of PowerShell.

winget install --id=Microsoft.PowerShell -e

It is observed that the latest version of PowerShell has been installed on your system.

Conclusion

The PowerShell can be updated using the msi installer and the PowerShell console. This article demonstrates these methods to update PowerShell. The msi installer can be downloaded from GitHub using the graphical user interface. On the other hand, you can update the PowerShell using the Windows manager named winget.

About the author

Adnan Shabbir