detect an Active Directory installation

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
 
J

Jerold Schulman

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
 
J

JMS

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top