Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a registry key I can check to tell if a server is a read only domain controller?

share|improve this question
Can I rely on using HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DNS\Parameters\EnableRSOFor‌​RODC set to TRUE? – Ben Hamilton Oct 19 '11 at 0:07

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 "EnableRSOFor‌​RODC" || @Goto NoRODCExists
FOR /F "tokens=3 skip=1 " %%G IN ('REG QUERY "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DNS\Parameters" /v "EnableRSOFor‌​RODC"') DO (Echo Read Only Domain Controller? %%G.)
share|improve this answer

As far as i know EnableRSOForRODC works...

share|improve this answer
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 0:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.