PowerShell cmdlet Get Unhealthy Agents in SCOM

In customer environments where resources are strained andagent health may have degraded over time this PowerShell cmdlet could helpidentify the agents in your environment that are currently not functioning.This sample cmdlet can verify if unavailable agents are responding to ping andalso remotely check if the HealthService is installed, running and whether itis disabled or set…