One of our SEs made this property to detect SMS/SCCM agent status:
if not exists service “CCmExec” then “SMS\SCCM not installed” else if exists service “CCmExec” and exists running service “CCmExec” then “SMS\SCCM installed and running” else if exists service “CCmExec” and not exists running service “CCmExec” then “SMS\SCCM installed but not running” else “unknown”
Can anyone share their relevance or know how to detect whether the sccm client is healthy, ie communicating back to the sccm infrastructure (not just installed and running) ?