Menu Close

How to determine your PowerShell version

One method of determining your PowerShell version is to check the Windows Registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine. Given below are other(recommended) methods of obtaining version information for your PowerShell:

PS C:\POWERSHELL> $PSversiontable

Name                           Value
----                           -----
CLRVersion                     2.0.50727.3053
BuildVersion                   6.0.6002.18111
PSVersion                      2.0
WSManStackVersion              2.0
PSCompatibleVersions           {1.0, 2.0}
SerializationVersion           1.1.0.1
PSRemotingProtocolVersion      2.1


PS C:\POWERSHELL> $PSversiontable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
2      0      -1     -1

PS C:\POWERSHELL> [string]$PSVersionTable.PSVersion.Major+"."+$PSVersionTable.PSVersion.Minor
2.0

VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)
Print Friendly, PDF & Email
(Visited 50 times, 1 visits today)

Leave a Reply

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