Everyone likes to know what the overall state of their SCOM agents are. You can see this info in the console, but where’s the fun in that? Here’s a PowerShell way to do it…
This script will produce a list of the total number of agents that are in these Health States:
Healthy (Success) , Warning , Critical (Error) or Uninitialized.