Ok, no triggered alarms, now I get it.
Try like this
$esx = Get-Datastore xxxxx | Get-VMHost -State Connected | where {$_.ExtensionData.Summary.OverallStatus -eq "green"}
Ok, no triggered alarms, now I get it.
Try like this
$esx = Get-Datastore xxxxx | Get-VMHost -State Connected | where {$_.ExtensionData.Summary.OverallStatus -eq "green"}