PDA

View Full Version : Detecting a Domain Controller



jamesw
10-17-2003, 03:47 PM
I'm working on an install that needs to detect if the machine is a domain controller. I've hunted around in the registry and haven't been able to find any tell-tale trace yet. I could also make the determination by the presense or absense of Active Directory services on the machine as well. Does anyone have any ideas?

Thanks,

Jim

RobertDickau
10-20-2003, 09:48 AM
If you haven't yet, you might see if InstallShield KB article Q102257 (http://support.installshield.com/kb) helps; there's also the GetVersionEx Windows API with the OSVERSIONINFOEX structure, about which see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/osversioninfoex_str.asp.

jamesw
10-21-2003, 12:28 PM
Thanks, this is perfect - just what I need.:)

Best regards,

Jim