Domain Controller Health Check Script
These tests give you a brief overview of the overall health of your active directory domain controller.
Domain controller health check script. So another one critical status is. March 21 2012 tom thesysadmins co uk 7 comments. Now we have an image of the health status of domain controller in my enviroment quick and simple. Let s dive right in.
Active directory health check script. A simple batch file for domain controller health check. It is also used to diagnose dns servers ad replication and other critical domain services within your active directory infrastructure. Click below link creating first link to my blog for those who are unfamiliar with github active directory health checkupdated with few more tests.
All we know that the best practise is to have 2 domain controllers and replicate between them. Bug fixthis script is for ad domain controller health check in the domain we have to only schedule the script in tasks with an administrator account this script email the status of all servers note please change email server setting in script synopsisdomain controller healt. It doesn t work on my system windows server 2012 r2 standard. Active directory health check as technet gallery is retiring so moving the code to git hub.
Ad health check script v2. Be sure to check the examples section below and i ll show you the output of a normal domain controller and one that has issues. There are several commands known for basic domain controller troubleshooting. For that reason i ve put together a script to collect basic information about the domain controller the script is run on and active directory itself which is then written to a log file.
To incorporate dcdiag into a large powershell ad health check script you need to transform that output into a powershell object. Parsing and using dcdiag with powershell is an easy way to convert the dcdiag result to an object that you can then send to reports monitoring systems test frameworks and so on. Dcdiag is a microsoft windows command line utility that can analyze the state of domain controllers in a forest or enterprise. Below you can find another great and useful powershell function for checking dc health dcdiag repadmin remotely.
The dcdiag tool is a microsoft command line utility that can be used to check the health of active directory domain controllers. Thank you for this script it s taught me quite a bit about what i need to pay attention to in terms of administrating a domain controller. Fsmocheck advertisingnote will not work on non english platforms. Please also check out one of the latest article for creating basic dc health email report.