detect an Active Directory installation

  • Thread starter Thread starter Arun
  • Start date Start date
A

Arun

Hi,
I have written a service which captures the login events from an
Active Directory server. this service is bundled with an istaller. The
service has a pre-requsit that it should run on the machine where
Active Directory is installed. So when installation i need detect/check
if Active Directory is installed on the machine.
can anybody know of any technique or way by which i can detect the
presence of Active Directory on the machine where they are going to
install my service.

Regards,
Arun
 
Hi,
I have written a service which captures the login events from an
Active Directory server. this service is bundled with an istaller. The
service has a pre-requsit that it should run on the machine where
Active Directory is installed. So when installation i need detect/check
if Active Directory is installed on the machine.
can anybody know of any technique or way by which i can detect the
presence of Active Directory on the machine where they are going to
install my service.

Regards,
Arun

Verify that the "DSA Working Directory" Value Name exists at the
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NTDS\Parameters" key.


Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
Hello


You can try to detect the Database NTDS.dit, that is the Database for Active
Directory and finding it means that the computer is a domain controller. The
problem is that this database already exists by default on
%systemroot%\System32, and when we run dcpromo the setup copies the ntds.dit
from System32 to a path that we especify during the setup.

You can try to use LDAP integrated on your application check:
http://www.microsoft.com/technet/prodtechnol/exchange/2003/insider/ldapquery.mspx
 
Back
Top