Summary: Learn how to determine the version of Windows PowerShell installed on your system.
How can I discover the version of Windows PowerShell that is installed on a particular system?
Use the $psversiontable built-in variable to get a display such as this:
Name Value
—- —–
PSVersion 4.0
WSManStackVersion 3.0
SerializationVersion 1.1.0.1
CLRVersion 4.0.30319.34014
BuildVersion 6.3.9600.17090
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion 2.2
The first line of the results tells you the current Windows PowerShell version. This variable was introduced with
Windows PowerShell 2.0. If you get nothing back, it’s Windows PowerShell 1.0.
0 comments