kalex
Enthusiast
Enthusiast

script to get version and build of virtual center?

Hello,

I'm having a problem trying to figure out how to use powercli to extract virtual center version number.

any help is appreciated

thanks

Alex

0 Kudos
3 Replies
ykalchev
VMware Employee
VMware Employee

Hi,

You can get this information from the VIServer object returned by Connect-VIServer cmdlet.

$c = Connect-VIServer <vc_name>
Write-Host $c.Version $c.Build

More detailed info you can get from ServiceInstance.Content.About SDK Object

$si = Get-View ServiceInstance
$si.Content.About

Regards,

Yasen Kalchev

PowerCLI Dev Team

Yasen Kalchev, vSM Dev Team
kjb007
Immortal
Immortal

$vc=connect-viserver

$vc.build

vExpert

VMware Communities Moderator

-KjB

vExpert/VCP/VCAP vmwise.com / @vmwise -KjB
kalex
Enthusiast
Enthusiast

thank you both. works perfectly

0 Kudos