X

How to Check the PowerShell Version on Windows

If you want to check which PowerShell version you are using, then execute either the command get-host or the command echo $PSVersionTable on PowerShell with elevated privileges.

Get PowerShell Version

Powershell Command:

echo $PSVersionTable

Result:

The latest version is 5.1 and it is available in the newer generation of Windows Server 2016.

PowerShell Versions on Windows

List of previous PowerShell versions:

  • Version 1.0 (Available in Windows Server 2008)
  • Version 2.0 (Available in Windows 7 and Windows Server 2008)
  • Version 3.0 (Available in Windows 8 and Server 2012)
  • Version 4.0 (Available in Windows 8.1 and Server 2012 R2)
  • Version 5.0 (Available in Windows 10)
  • Version 5.1 (Available in Windows 10 as an update and on Windows Server 2016)

Check PowerShell version remotely

If you have to check which PowerShell version is used on a remote computer, then use this command:

Invoke-Command -ComputerName REMOTEPC -ScriptBlock {$PSVersionTable.PSVersion}

Replace the word REMOTEPC with the hostname of the remote system. Thank you to tinku for providing this addition to the tutorial.

Have a look here to learn more about PowerShell's uses and how to upgrade Windows 32bit to 64-bit.

Karim Buzdar: About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various websites.
X

Headline

You can control the ways in which we improve and personalize your experience. Please choose whether you wish to allow the following:

Privacy Settings