So you want to check your host's version number via powercli?
Use this:
This is setup for a single host
****************************************
#thanks ict-freak.nl
#host will be the host name you want to check
$vhost = Read-Host "Enter the host name you want to check"
Connect-VIServer $vhost
get-vmhost $vhost | Sort Name -Descending | % { $server = $_ |get-view; `
$server.Config.Product | select `
@{ Name = "Server Name"; Expression ={ $server.Name }}, `
Name, Version, Build, FullName, ApiVersion }
Disconnect-VIServer -Confirm:$false
****************************************
0 comments:
Post a Comment