Random Project

Good with possible problem

I use it to check an AD 2012 forest (W2008R2 and W2012 servers) and it works. But I needed to edit the script in order it works properly: “dcdiag.exe” output is not always on 1 line and the script doesn’t handle it correctly.

Ex: dcdiag.exe /test:VerifyEnterpriseReferences
Will have these two lines for test result
……………………. SRVXXX-XXX passed test
VerifyEnterpriseReferences
The script will find the “passed” word, but won’t be able to associate it with the test name.

I solve it by using dcdiag output file and parse it instead of parsing directly the command output.