Domain Member Health: Check the domain join health

1dfd8950-7d31-4fd1-84ab-f3ecc3c95f00

This script checks the domain join health of the host. It will exit with an error if the machine's domain trust is not healthy.

Note: The script will also fail if no domain controller is available at the time it runs, which may indicate a connectivity or domain-related issue.

Remediation

Fix the relation of the host with the domain, either by removing and rejoin the domain, or by running a Powershell script to fix the domain trust of the host.

You can find the script in our GitHub repository at:
https://github.com/eventsentry/scripts/blob/main/DomainTrustFix.ps1