Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
1  
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

2 Answers 2

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.)
:NoRODCExists
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

 
discard

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.