Automation

 View Only
Expand all | Collapse all

Get the vCenter Version using PowerCLI

  • 1.  Get the vCenter Version using PowerCLI

    Posted Feb 06, 2014 12:26 AM

    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){

    }



  • 2.  RE: Get the vCenter Version using PowerCLI
    Best Answer

    Posted Feb 06, 2014 07:23 AM

    Like this

    $global:DefaultVIServers | Select Name,Version



  • 3.  RE: Get the vCenter Version using PowerCLI

    Posted Feb 06, 2014 08:40 PM

    OK great thanks