Quantcast
Channel: Windows 7 – FAQforge
Viewing all articles
Browse latest Browse all 27

How to Check the PowerShell Version on Windows

$
0
0

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.

The post How to Check the PowerShell Version on Windows appeared first on FAQforge.


Viewing all articles
Browse latest Browse all 27

Trending Articles