Is there a registry key I can check to tell if a server is a read only domain controller?
Asked
Active
Viewed 932 times
3
-
1Can I rely on using HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DNS\Parameters\EnableRSOForRODC set to TRUE? – Ben Hamilton Oct 19 '11 at 00:07
2 Answers
1
I've now got a code snippet to check if the EnableRSOForRODC key exists, and if it does, returns it value.
1>NUL: 2>NUL: REG QUERY "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DNS\Parameters" /v "EnableRSOForRODC" || @Goto NoRODCExists
FOR /F "tokens=3 skip=1 " %%G IN ('REG QUERY "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DNS\Parameters" /v "EnableRSOForRODC"') DO (Echo Read Only Domain Controller? %%G.)
:NoRODCExists

Ben Hamilton
- 41
- 4
0
As far as i know EnableRSOForRODC works...

dfc
- 1,341
- 8
- 16
-
Thanks dfc, I'll move forward with checking that key. If I find a case where it doesn't work I'll update here. – Ben Hamilton Oct 20 '11 at 00:13