Random Project

Read Only DC – Fix

The script was flawless for DCs from 2003 to 2016. However I also have a Read Only 2012 R2 DC and the DCDiag does not check or output RIDManger. So I made a slight modification to line 237:
‘Set default status for each named test
for loop1 = 0 to (ubound(name)-1)
status(loop1) = “CRITICAL”
lock(loop1) = FALSE
cmd = cmd & “/test:” & name(loop1) & ” ”
next

‘Set default status for each named test
for loop1 = 0 to (ubound(name)-1)
status(loop1) = “Not Checked”
lock(loop1) = FALSE
cmd = cmd & “/test:” & name(loop1) & ” ”
next

This will allow the check to return OK if the keyword of the check is not found. However labeling that check as “Not Checked” in the service text.