Windows Domain Health Checks

 In administration, Operating Systems, Server Core, Windows

Binary Royale is an IT consultancy company based in the East Midlands. We spend all of our time with clients, helping them to make good decisions about their IT. When we come across issues that would be useful to others we “try” to post the answers on our website – www.binaryroyale.com . We cover Derby and Derbyshire, Nottingham and Nottinghamshire mainly, but do also have clients further afield. Please browse our website to see what we offer – thanks, and enjoy the blog


It’s often necessary to check the health of your Windows Domain and Domain Controllers. You need to know if your domain is healthy before and after routine maintenance – Patching and the like – and when you are trying to diagnose problems.

I’ve had to do this more times than i care to remember, and each time I end up trawling the same sites to recall the same scripts that I run to output the logs that allow me to determine whether everything is OK or not. So this time I decided to compile the individual scripts in to a batch file that will run them all in sequence and output the results to files that I can review for problems. The scripts are thus:

  • Dcdiag.exe /v – shows if there are any problems with your Domain Controllers and their associated services
  • Dcdiag.exe /test:dns  – validates the health of the Domain DNS service and replication.
  • Netsh dhcp show server  – Verifies DHCP servers and names
  • Repadmin /showreps  – Shows the status of replication between domain controllers
  • repadmin /replsum /errorsonly  – shows you any errors in the replication between domain controllers

I’ve inserted these commands into a batch file, together with the switches to output the results of each script to file, rather than display it on screen. All files are created in C:temp – you will need to created this folder first if it doesn’t already exist. There are 2 batch files – one to be run before your maintenance to check for pre-existing problems, and another to run afterwards, to check for problems created as a result of your maintenance. The scripts are identical except for the name of the output files – the pre files are all prefixed pre_ and the post files are all prefixed post_ – so that you can see the before and after versions for comparison.

The batch files are available for download below. You will need to change the file extension of the downloaded files to .bat in order for them to work:

DC Diagnose Pre

DC Diagnose Post

 

 

Leave a Comment

Contact Us

Call us on: 01332 890460 or Send us an email and we'll get back to you, asap.

Not readable? Change text. captcha txt