Hello,
I would like to get the number of VMs per cluster using New-VIProperty like this:
New-VIProperty -ObjectType VMHost -name NumberOfVMs `
-Value {($Args[0] | Get-VM | Measure-Object).Count } `
-Force
Get-Cluster | Select Name, NumberOfVMs
But I only get zeroes.
Can someone help me ?
Thanks,
Frederic