Check the Installed PowerShell version


below is the snippet for that

$PSVersionTable.PSVersion

If you want to check this on remote servers, use invoke-command which connects using WinRM service.

Invoke-command -computername server1,server2 -scriptblock ( $PSVersionTable.PSVersion)

Regards,

Chaitanya

Leave a comment

Design a site like this with WordPress.com
Get started