How to get the Powershell version

To get the version, open a Powershell prompt in windows, here is how:

  • Open Windows Start Menu
  • Just type Powershell and then click on the Powershell option
  • Once the Powershell window is opened, use the command: $PSVersionTable.PSVersion
# Command:
$PSVersionTable.PSVersion

Here is how the $PSVersionTable.PSVersion appear in a PS command line,

# Example:
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\Users\codetryout> $PSVersionTable.PSVersion
Major Minor Build Revision
----- ----- ----- --------
5 1 14393 693
PS C:\Users\codetryout>

The version in this example is: 5.1

To get details and complete version of Powershell, use the following command

$PSVersionTable

Example output for $PSVersionTable:


PS C:\Users\codetryout> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.19041.1151
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.1151
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

PS C:\Users\codetryout>

Note: This How to guide explains the steps to get the current PowerShell version. Depending upon the version that you may have in your computer, this output view might vary.