VMware Cloud Community
TheVMinator
Expert
Expert
Jump to solution

Get the vCenter Version using PowerCLI

I have a report that runs connected to multiple vCenters at the same time.  How can I get the version of the vCenter in the format of 4.1, 5.5, 5.1, 5.0, etc. and use it in a report such as below?

Thanks!

foreach($vcenter in $global:DefaultVIServers){

}

1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Like this

$global:DefaultVIServers | Select Name,Version


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

2 Replies
LucD
Leadership
Leadership
Jump to solution

Like this

$global:DefaultVIServers | Select Name,Version


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

TheVMinator
Expert
Expert
Jump to solution

OK great thanks

Reply
0 Kudos