- Blog - http://blog.bennett-scharf.com -

Automated, Scheduled Domain Controller Diagnostics

Posted By Bennett On 18. February 2007 @ 19:10 In Windows OS | No Comments

Wouldn’t it be nice to have the time once a week to run the dcdiag against all of your domain controllers and review the results? (yeah, right) Well, I wrote a [1] script to automate that process. It works like this: First there is a subroutine that enumerates the DCs and puts the result into an array of strings. Next there is a function that runs DCDiag against the list of DCs looking for the string “failure”. If that string is found it concatenates the server name and failure string to a global string variable. At the end of this function, if a failure was found, the function returns “True”. If the function returns true, the script e-mails an alert with the necessary information.


Article printed from Blog: http://blog.bennett-scharf.com

URL to article: http://blog.bennett-scharf.com/2007/02/18/automated-scheduled-domain-controller-diagnostics/

URLs in this post:
[1] script: http://www.bennett-scharf.com/Scripts/TestDomainControllers.html

Click here to print.