site1.erralert.com

← all categories

Services & processes

Service status, process running, pending Windows updates. Use to monitor specific services that must stay up.

powershell

Active Directory replication health

Runs `repadmin /replsummary` on a domain controller and parses the per-source failure counts. Posts total failure count + the failing summary lines. Schedule on at least one DC per site.

powershell

Hyper-V VM guest heartbeat

On a Hyper-V host, walks every VM and reports state + integration-services heartbeat. Flags any running VM whose guest agent isn't reporting healthy — usually means the VM is stuck before login, kernel panicked, or the integration services died.

powershell

Microsoft 365 license usage (Graph API)

Pulls per-SKU consumed vs available license counts from Microsoft Graph. One-time setup: register an Azure AD app, grant it `Organization.Read.All` (Application) with admin consent, generate a client secret, paste TenantId/ClientId/ClientSecret below (or pull them from a vault). The script then runs unattended.

powershell

Process running

Posts whether a named process is running and how many instances. Use for desktop apps that should always be open (e.g. a kiosk app) or daemons that get killed by their parent restart.

powershell

Stuck print jobs

On a Windows print server, finds jobs that have been queued longer than a threshold (default 30 minutes). Posts the count + the oldest few so support staff can clear them or follow up with the user.

powershell

Windows service status

Reports running/stopped status for a list of Windows services. Alert if any service that should be running isn't.

powershell

Windows Update pending count

Reports how many updates are currently pending install. Use to find machines drifting behind on patches.