• Home  / 
  • how-to-get-powershell-version

how-to-get-powershell-version

Nilesh asked 5 months ago

Question is how can I check the Powershell version and what are the different commands for the same?

1 Answers
Nilesh Kamble Staff answered 5 months ago

To check the Powershell version you have to run below command
Get-Host
PS C:\Users\user1 > get-host

Name             : ConsoleHost
Version          : 4.0
InstanceId       : a1955668-02a9-4376-9533-d8363d3fadee
UI               : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture   : en-US
CurrentUICulture : en-US
PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
IsRunspacePushed : False
Runspace         : System.Management.Automation.Runspaces.LocalRunspace

How to get powershell version with $PSVersionTable command?

PS C:\Users\user1> $PSVersionTable

Name                           Value
—-                           —–
PSVersion                      4.0
WSManStackVersion              3.0
SerializationVersion           1.1.0.1
CLRVersion                     4.0.30319.42000
BuildVersion                   6.3.9600.18773
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion      2.2