How To Check Powershell Version

Hey there, fellow tech enthusiasts! Today, I want to talk about how to check the version of PowerShell, something that comes up quite often for anyone who works with this powerful scripting and automation tool. As an IT professional, I’ve encountered numerous scenarios where knowing your PowerShell version is crucial, and I’m excited to share this knowledge with you.

Checking Your PowerShell Version

First things first, let’s talk about how to actually check the version of PowerShell you’re running. This can be done easily using a built-in cmdlet.

To check the PowerShell version, open your PowerShell console and simply type:


This command will display detailed information about the PowerShell version you’re using, including the major and minor version numbers, build, and revision details.

Now, you might be wondering, why is it important to know the PowerShell version? Well, understanding the version you’re working with is essential for ensuring compatibility with scripts, modules, and certain features. It also helps when seeking assistance in forums or documentation, as different versions may behave differently.

Diving Deeper with $PSVersionTable

Let’s take a closer look at the $PSVersionTable variable. This table stores information about the PowerShell environment and provides a wealth of details beyond just the version number. You can explore properties such as PSVersion, CLRVersion, WSManStackVersion, and more, each offering valuable insights into your PowerShell setup.

For instance, if you’re interested in the version of the .NET Common Language Runtime (CLR) being used by PowerShell, simply access the CLRVersion property within $PSVersionTable.

Additional Options

If you’re looking for alternative methods to check the PowerShell version, you can also utilize the $Host automatic variable. Typing $Host followed by two consecutive “dot” operators and the word Version will provide the version number without additional information.

Another approach involves executing the following command:

Get-Host | Select-Object Version

This will retrieve a similar output to the previous method, offering a quick way to obtain the version information.


So, there you have it! Understanding how to check the PowerShell version is a fundamental skill for any PowerShell user. Whether you’re troubleshooting, ensuring script compatibility, or simply staying up to date, knowing your PowerShell version is a must. With the simple commands and techniques I’ve shared, you’re now equipped to confidently ascertain the version of PowerShell running on your system. Happy scripting!