Group members
Get group members and contained instance state, by group name
foreach ($group in get-monitoringobjectGroup) {if($group.DisplayName -eq "group_name") {$group.GetRelatedMonitoringObjects() | ft DisplayName,HealthState}}
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Get group members and contained instance state, by group name
foreach ($group in get-monitoringobjectGroup) {if($group.DisplayName -eq "group_name") {$group.GetRelatedMonitoringObjects() | ft DisplayName,HealthState}}