Domain Controller health check

I was looking for this script a few days ago, but couldn’t find it. Throwing it up here for my own reference. Basically it will run a number of tests on a DC to make sure that there are no errors or connectivity issues. Just save it as a .bat file and run it with cmd.exe.
I did not write this script, I just found it somewhere online.