PowerTip: Find the PowerShell Version

PowerTip: Find the PowerShell Version

  • Comments 1
  • Likes

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

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • thanks for hep