How to Check your PowerShell Version and Upgrade it if Needed


**Disclosure: This post contains affiliate links. If you make a purchase through these links, we may earn a small commission at no extra cost to you.

PowerShell is a command-line shell and scripting language created by Microsoft, used to automate tasks and manage system settings across Windows, macOS, and Linux. It’s popular among IT professionals and system administrators for handling tasks like managing files, users, and services, performing networking tasks, configuring systems, and performing remote operations, all through powerful scripts and commands.

If you are a novice PowerShell user or do not use it on a regular basis, you might assume that your version of PowerShell is up to date and you have the latest and greatest version with all the features. Unfortunately, that is usually not the case, and you might be missing out on some PowerShell features that you would find useful. In this article, we will be showing you how to check your PowerShell version and upgrade it if needed.

When you open a PowerShell window, there is a good chance you will see a message at the top that says Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows with no way of upgrading from the PowerShell Windows itself.

If you are unsure of what version of PowerShell you are running, you can easily check using the following command.

$PSVersionTable.PSVersion

As you can see in the image below, this computer is running PowerShell version 5 when the latest version as of this writing is 7.5, with 7.6 coming out soon.

Check PowerShell version with $PSVersionTable.PSVersion

Even though this shows that this computer is running PowerShell 5, you can check for specific directories on your computer to see if PowerShell 7 is installed.

Directory for PowerShell 7 if it’s installed.

C:\Program Files\PowerShell\7\pwsh.exe

Directory for PowerShell Preview 7 if it’s installed.

C:\Program Files\PowerShell\7-preview\pwsh-preview.exe

 

Upgrading Your Version of PowerShell

There are several ways you can go about upgrading your version of PowerShell. You can get PowerShell and PowerShell Preview from the Microsoft Store and install one or both of them. PowerShell Preview is a pre-release version of PowerShell that lets users test upcoming features, improvements, and experimental changes before they’re officially released in the stable build.

Download PowerShell from Microsoft Store

You can also Download PowerShell from the GitHub website, but you will need to know which file to download to make sure you get the correct one.

Download PowerShell from the GitHub website

One easy way to upgrade your PowerShell version is to use the Winget command. Winget, also known as the Windows Package Manager, is a command-line tool developed by Microsoft that allows you to discover, install, upgrade, and manage software on Windows. It simplifies app deployment by letting you install programs with a single command. It should already be configured on your computer and ready to use.

Here are the Winget commands you can use to install PowerShell or PowerShell Preview.

Regular PowerShell:   winget install –id Microsoft.PowerShell –source winget

PowerShell Preview:   winget install –id Microsoft.PowerShell.Preview –source winget

How to Check your PowerShell Version and Upgrade it if Needed

Then the graphical installation process will begin, and you will need to click the Yes button at the UAC prompt and also be logged in as an admin or have admin credentials to install PowerShell.

How to Check your PowerShell Version and Upgrade it if Needed

When the installation is complete, you will see a message saying Successfully installed at the bottom of the same PowerShell window.

Upgrade PowerShell with Winget command

Now when you search for PowerShell from the Windows taskbar search box, you should see your normal blue PowerShell icon as well as a black PowerShell icon for PowerShell 7. Now just because you have upgraded to PowerShell 7 doesn’t mean you cant still use PowerShell 5 if desired.

PowerShell 7 Start Menu

If we run the $PSVersionTable.PSVersion command in the PowerShell window, it will show us that we are running PowerShell 7, and you should also see the PowerShell version above the initial prompt.

Check PowerShell version with $PSVersionTable.PSVersion

If you use the Windows Terminal app, it will most likely still default to PowerShell 5. You can however click the dropdown arrow and choose PowerShell 7 if you need to run the newer version.

Windows Terminal app

To change this, you can click on Settings and change the Default profile to the newer version of PowerShell so the Terminal app will open to PowerShell 7 by default.

Windows Terminal app change the Default profile

For additional training resources, check out our online IT training courses.

Check out our extensive IT book series.

Related Posts

© 2025 Online Computer Tips
Website by Anvil Zephyr