Powershell Version Check

When you need to find the version of Powershell you are running you can use the following ways.

Check version with $PSVersionTable

This variable was first introduced in Powershell v2.0


PS C:\> $PSVersionTable

Name                           Value
----                           -----
<strong>PSVersion</strong>                      5.0.10586.117
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.10586.117
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

From the results you get the following info:

  • PSVersion show that installed version of Powershell is 5.0
  • PSCompatibleVersions shows the backwards compatibility of installed version
  • CLRVersion indicates common runtime version
  • BuildVersionĀ varies depending on the underlying operating system

To make a more detailed Powershell version check


PS C:\&gt; $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      0      10586  117

 

Leave a Reply