Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 232413

Re: VM_Count for PowerCLI

$
0
0

Hi,

 

You can try something like that :

 

$Audit = @()

$hosts = Get-Cluster [Cluster Name] | Get-vmhost

foreach ($esx in $hosts)

    {

    $vm= Get-vmhost $esx | get-vm

    $objGuest= "" | Select  Name ,Version, Count

    $objGuest.Name= $esx.Name

    $objGuest.Version = $esx.Version

    $objGuest.Count = $vm.Count

    $Audit += $objGuest

    }

 

 

$Audit

 

Regards,

Julien.


Viewing all articles
Browse latest Browse all 232413

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>