How to determine if a machine is running Active Directory

Posted by Hannes de Jager on Stack Overflow See other posts from Stack Overflow or by Hannes de Jager
Published on 2010-03-01T13:31:06Z Indexed on 2010/03/15 13:09 UTC
Read the original article Hit count: 337

I would like to know from Java code if the machine that I'm on is running active directory or that it has active directory installed (e.g. service may be stopped). Is there a reliable registry key to inspect? This is specifically for Windows 2008.

I found info on the web that mentions HKLM\SOFTWARE\Microsoft\MSDTC\Security\DomainControllerState, but that value is 0 on my domain controller as well as on my normal windows 7 machine!?

© Stack Overflow or respective owner

Related posts about active-directory

Related posts about registry