April 16th, 2013

PowerTip: Find the PowerShell Version

Doctor Scripto
Scripter

Summary: Easily find the installed version of Windows PowerShell.

Hey, Scripting Guy! Question How can I find the installed version of Windows PowerShell?

Hey, Scripting Guy! Answer There are two easy ways.

1. Use the automatic $PSVersionTable variable:

PS C:> $PSVersionTable

Name                           Value

—-                           —–

PSVersion                      3.0

WSManStackVersion              3.0

SerializationVersion           1.1.0.1

CLRVersion                     4.0.30319.18033

BuildVersion                   6.2.9200.16434

PSCompatibleVersions           {1.0, 2.0, 3.0}

PSRemotingProtocolVersion      2.2

2. Use the $host automatic variable and to select the Version property:

PS C:> $Host.Version

 

Major  Minor  Build  Revision

—–  —–  —–  ——–

3      0      -1     -1

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.