gareth asked this 7 years ago

How to check version of powershell

What is the command to check the version of powershell?


Best Answer by Vikas 7 years ago

There are a few different ways. You can use the Get-Host cmdlet like below:

PS C:\> Get-Host

PS C:\> $(get-host).version

Or the variable

PS C:\> $PSVersiontable

sonja 7 years ago
2 likes

Use $PSVersionTable.PSVersion

PS C:\Users\nec> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      14393  693