G Guest Jan 25, 2005 #1 how to identify a domain controller through its registry keys ? Is there any specific keys which stores this information
how to identify a domain controller through its registry keys ? Is there any specific keys which stores this information
J Jerold Schulman Jan 25, 2005 #2 how to identify a domain controller through its registry keys ? Is there any specific keys which stores this information Click to expand... I am not aware of any, but: set dc=N for /f "Tokens=*" %a in ('netdom query dc^|Find /I "%ComputerName%"') do set dc=Y or set dc=N for /f "Tokens=*" %a in ('DSQUERY SERVER -O RDN^|Find /I "%ComputerName%"') do set dc=Y See tip 8241 and links in the 'Tips & Tricks' at http://www.jsiinc.com Jerold Schulman Windows Server MVP JSI, Inc. http://www.jsiinc.com
how to identify a domain controller through its registry keys ? Is there any specific keys which stores this information Click to expand... I am not aware of any, but: set dc=N for /f "Tokens=*" %a in ('netdom query dc^|Find /I "%ComputerName%"') do set dc=Y or set dc=N for /f "Tokens=*" %a in ('DSQUERY SERVER -O RDN^|Find /I "%ComputerName%"') do set dc=Y See tip 8241 and links in the 'Tips & Tricks' at http://www.jsiinc.com Jerold Schulman Windows Server MVP JSI, Inc. http://www.jsiinc.com
W Wayne Tilton Jan 26, 2005 #3 I am not aware of any, but: set dc=N for /f "Tokens=*" %a in ('netdom query dc^|Find /I "%ComputerName%"') do set dc=Y or set dc=N for /f "Tokens=*" %a in ('DSQUERY SERVER -O RDN^|Find /I "%ComputerName%"') do set dc=Y See tip 8241 and links in the 'Tips & Tricks' at http://www.jsiinc.com Jerold Schulman Windows Server MVP JSI, Inc. http://www.jsiinc.com Click to expand... Actually, you CAN identify a DC via the registry. HKLM/System/CurrentControlSet/Control/ProductOptions/ProductType will be: ServerNT for a member server and LanmanNT for a DC HTH, Wayne Tilton
I am not aware of any, but: set dc=N for /f "Tokens=*" %a in ('netdom query dc^|Find /I "%ComputerName%"') do set dc=Y or set dc=N for /f "Tokens=*" %a in ('DSQUERY SERVER -O RDN^|Find /I "%ComputerName%"') do set dc=Y See tip 8241 and links in the 'Tips & Tricks' at http://www.jsiinc.com Jerold Schulman Windows Server MVP JSI, Inc. http://www.jsiinc.com Click to expand... Actually, you CAN identify a DC via the registry. HKLM/System/CurrentControlSet/Control/ProductOptions/ProductType will be: ServerNT for a member server and LanmanNT for a DC HTH, Wayne Tilton
G Guest Jan 27, 2005 #4 Thank you for the information. Wayne Tilton said: Actually, you CAN identify a DC via the registry. HKLM/System/CurrentControlSet/Control/ProductOptions/ProductType will be: ServerNT for a member server and LanmanNT for a DC HTH, Wayne Tilton Click to expand...
Thank you for the information. Wayne Tilton said: Actually, you CAN identify a DC via the registry. HKLM/System/CurrentControlSet/Control/ProductOptions/ProductType will be: ServerNT for a member server and LanmanNT for a DC HTH, Wayne Tilton Click to expand...