How to know your PowerShell version details?

How to know your PowerShell version details?

Many Admins are using PowerShell scripts to automate few tasks, either they develop their own script or they may download from Technet Script Gallery. Use the script as you wish but before that it's good to know about your PowerShell Version

Solution:

$PSVersionTable


Name                           Value
----                           -----
PSVersion                      4.0
WSManStackVersion              3.0
SerializationVersion           1.1.0.1
CLRVersion                     4.0.30319.18063
BuildVersion                   6.3.9421.0
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion      2.2



($PSVersionTable).PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
4      0      -1     -1

($PSVersionTable).PSCompatibleVersions

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


($PSVersionTable).PSRemotingProtocolVersion


Major  Minor  Build  Revision
-----  -----  -----  --------
2      2      -1     -1
Sort by: Published Date | Most Recent | Most Useful
Comments
Page 1 of 1 (1 items)