Wondering how to check PowerShell version? If your answer is yes, then I am here to help you out. PowerShell is the advanced version of Command Prompt. PowerShell comes with quite a lot of tools and ready to use commands, which makes your job pretty easy.
And as a developer, you often use PowerShell more than the command prompt. As it offers quite a lot of possibilities. Like you will be able to edit scripts directly from the command line, plus it gives you the support for Linux commands.
Overall, PowerShell is an important tool for developers, and it helps a lot. Hence, you always need to stay updated with the latest version of Powershell. So we can get done with our job smoothly. Even in case if you are using older versions of Windows, then it would be a good idea to check the PowerShell version and be sure that we are using the latest version.
But the question is how to check Windows PowerShell Version? Well before I answer this question, let me tell you the Windows PowerShell versions that come preinstalled:
- Windows 10 and Windows Server 2016 – PowerShell version 5.0 ( it should get updated to 5.1 by Windows Update)
- Windows 8.1 and Windows Server 2012 R2 – PowerShell version 4.0
- Windows 8 and Windows Server 2012 – PowerShell version 3.0
- Windows7 SP1 and Windows Server 2008 R2 SP1 – PowerShell version 2.0
How to check PowerShell Version?
Now that you have a clear idea of what should the default PowerShell version look like. Simply go ahead and follow these below steps to check the current version of PowerShell installed on your computer. These steps would work despite being what Windows Version you are using. Be it the older versions like Windows XP, 7 or the newest Windows 10.
Step 1: First of all, press the Windows Key + R button together to open up the Run Dialog box.
Step 2: Over here, type down PowerShell, and hit the enter button.
Step 3: Now, over here, you need to copy and paste the below command.
Step 4: After running the command, you will find several details related to the PowerShell utility. However, as we are looking for the PowerShell version, so we need to check the number followed by PSVersion.
Apart from this command, there are two other commands that you can use for the same job. These commands are the:
So that was all for your question “how to check PowerShell version”. Now go ahead and try these commands out and see if they are working for you or not. Also, for any other questions, you can feel free to comment below.