VBS Script that check's your Active Directory Health status and report using e-mail. It work's for complex Domains structures, checking every DC for each Site.
Download a raw copy of the vbs-ad-health-report.vbs
script, save it in your main Active Directory Domain Controller (for example C:\scripts\vbs-ad-health-report.vbs). Open the script with any text editor (Notepad++ recommended).
serviceState and organizationUnitDC are important variables to edit:
- serviceState: The status string of a running service. Edit if you use a non-english OS
- organizationUnitDC: The name of the OU where you store your DC's. Edit if you use a custom OU
Othe lines are for customize the levels of reports (e-mail, CSV attachment, outputFile, ...), just change True or False. Configure then your e-mail server settings (GMail supported!). Save changes and double-click to execute and test the script. If everyting works fine, create a new scheduled task to run this script automatically (1 run per day recommended):
You will get a daily report of your Active Directory Health Status in your e-mail, like this
Original idea by Vikas Sukhija, I used his idea, translated into VBS script and adding more AD checks/tests.