dcdiag usage
Can we use dcdiag to check whether AD is installed on a machine ?
Or is there any other reliable method to find out this ?
Basically I wasnt to check if AD is available and then I need to extend the schema with 2 new attributes .... Please help
MadanPosted Nov 11, 2009, 9:18 AM
Sam HobbsPosted Nov 10, 2009, 12:43 AM
What happens if you attempt to connect with AD in a system that it is not installed in? You should get a specific error and then you know that when you get that error, AD is not installed. Perhaps you can use code such as the following, except check the exception for whatever specific exceptions you need to check for.