3

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

  • 1
    Can 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 Answers2

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 "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
0

As far as i know EnableRSOForRODC works...

dfc
  • 1,331
  • 8
  • 16