check powershell version

How To Check PowerShell Version On Your Windows PC In 2023?

published on: 10.05.2023 last updated on: 21.11.2024

To check PowerShell version on your Windows PC, you will just need to open a PowerShell window from the “Start” option. Within the PowerShell, you will have to write “$PSVersionTable” and press Enter. You will then see the current PowerShell version, which will get displayed next to the “PSVersion” text. You will also get other details like PSEdition, BuildVersion, PSCompatibleVersions, CLRVersion, and more.

In this article, you will learn in detail about how to check Windows version PowerShell and also how to check Net Version PowerShell. Once you find your PowerShell version, you will be in a better position to know what PowerShell features you have better access to. A PowerShell command will allow you to know the PowerShell version number. Hence, to know more about Windows PowerShell, read on through to the end of the article.

How To Check PowerShell Version On Your Windows PC?

How To Check PowerShell Version On Your Windows PC?

According to Microsoft, “Windows PowerShell comes installed by default in every Windows, starting with Windows 7 SP1 and Windows Server 2008 R2 SP1. If you are interested in PowerShell 7 and later, you need to install PowerShell instead of Windows PowerShell.”

The best way to find your PowerShell version is to find the version number in the PowerShell of your PC itself. You can do that with PowerShell only and not the command prompt. If you use the “$PSVersionTable” code on Command Prompt, you will get something like this:

“’$PSVersionTable’ is not recognized as an internal or external command, operable program or a batch file.”

Therefore, it is proved that you will not be able to know your PowerShell version with the help of Command Prompt on your Windows PC.

It is really easy to find PowerShell. However, according to Microsoft, “Sometimes locating PowerShell console or the Integrated Scripting Environment (ISE) in Windows can be difficult, as its location moves from one version of Windows to the next.”

If you want to find out your PowerShell version, you will need to use the PowerShell of your Windows PC only, as it is really simple to do. The following are the steps that you need to follow to check PowerShell version on your Windows PC:

(Source: Author’s PC Information)

1 Step: Open the Start Menu on your computer. Just type “Windows PowerShell” and click on the Windows PowerShell option as per your search results.

2 Step: After your Windows PowerShell opens, you will most likely get a blue screen, your PC information written on the left, followed by a blinking cursor.

3 Step: At the place where the cursor is blinking, type “$PSVersionTable” and press the Enter button on your keyboard.

4 Step: You will thus get a list of various details related to your PowerShell version, containing data and information related to PSVersion, PSEdition, PSCompatibleVersions, BuildVersion, CLRVersion, WSManStackVersion, PSReportingProtocolVersion, and SerializationVersion.

If you are not comfortable writing the code by yourself, you can also copy and paste the code from this article by just typing CTRL+V on your keyboard. Once you click the Enter button, you will see the list of PowerShell information related to your Windows PC.

How To Check Net Version PowerShell?

How To Check Net Version PowerShell?

With the help of Windows PowerShell, you can also learn about the .NET version of your Windows system. Apart from that, you can also learn about your computer’s .NET Framework versions by viewing it on the Registry. However, as this article is related to PowerShell, I am only including the information about how to run a query through Windows PowerShell.

(Source: Author’s PC Information)

The following are the major steps that you need to follow to check the .NET Framework version using your Windows PowerShell:

Step 1: Go to the Start Menu on your computer, and search for Windows PowerShell. You can either click on the PowerShell option or right-click the icon and click on “Run as administrator.” In both cases, Windows PowerShell will open up with a blue screen.

Step 2: You will see a blinking cursor and, on that point, copy the query as quoted here:

“Get-ChildItem ‘HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP’ -Recurse | Get-ItemProperty -Name version -EA 0 | Where { $_.PSChildName -Match ‘^(?!S)\p{L}’} | Select PSChildName, version”

You will get two columns – PSChildName and Version. Under the PSChildName, check the version number next to the first “Client” value. This is the .NET Framework version that is installed on your computer.

Step 3: On the next line, where the cursor is blinking, copy and paste the below-given query in quotes:

“(Get-ItemProperty “HKLM:SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full”).Release”

This will give you an idea of the release value of the .NET Framework version on your Windows system.

Step 4: Note down the release value of the .NET version on your Windows system. Finally, close the Windows PowerShell window.

How To Check PowerShell Version Using Registry?

How To Check PowerShell Version Using Registry?

Apart from checking the PowerShell version of your Windows PC using just a query, you can also view your PowerShell version with Windows Registry. All you need to do is type Registry at the Start Menu, and you will be able to enter the window.

To view the PowerShellVersion registry key, here are the steps that you will need to follow:

Step 1: Open the Start Menu on your computer. Just type “Windows PowerShell” and click on the Windows PowerShell option as per your search results.

Step 2: After your Windows PowerShell opens, you will most likely get a blue screen, your PC information written on the left, followed by a blinking cursor.

Step 3: On the blinking cursor, copy and paste the following quoted query, as given below:

“(Get-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine -Name ‘PowerShellVersion’).PowerShellVersion”

Step 4: You will thus get a value that you can take note of. Finally, after you are done, consider closing the window by clicking on the Close button.

Summing Up

Hope this article was helpful enough for you to learn how to check PowerShell version from your Windows PC. Just go to PowerShell, type “$PSVersionTable” and press Enter. You will get a list of all the details regarding your Windows PowerShell. Do you know of any other way of finding out your PowerShell version on a Windows PC? Share with us some information in the comments section below.

Read Also:

author image

A passionate writer and an avid reader, Soumava is academically inclined and loves writing on topics requiring deep research. Having 3+ years of experience, Soumava also loves writing blogs in other domains, including digital marketing, business, technology, travel, and sports.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related