Enumerating DC

  • Thread starter Thread starter Hemang Shah
  • Start date Start date
H

Hemang Shah

Hello



Could someone please point me to an example which demonstrates a c#

application which will list all the DCs in a domain, so that the user

can select which Domain Controller its selecting to read / update the

active directory.



Thank You
 
Hemang said:
Could someone please point me to an example

If you don't say what's wrong with the previous answers
we provided, why should we answer if you ask again?
 
Hello Clifford

I'm sorry for the repost, I was searching for my name in the "from" and when
I couldn't find it, I reposted it.

I'm sure the example provided would atleast give me a very good start.

Thank You and sorry for the repost again.
 
There are other options too. You could p/invoke DsGetDCOpen/DsGetDCNext or
you could use System.DirectoryServices to do an LDAP query.

I think there is a sample of the former on www.pinvoke.net.

Joe K.
 
Ok, I understand these things happen.

Did you solve the security descriptor problem?
 
Thanks :)

Well these all questions are part of the same utility I want to write:

Its a utility to check the installation of Microsoft Exchange.

On installation of Ms Exchange, it creates numerous objects in AD. I want
the utility to go and scan the AD to see if there are any wrong permissions
set on these objects which could lead to many errors and aberrant behaviour
for exchange.

The utility would start with selecting a DC in the domain which will be the
DC the utility will read (to avoid any ambiguity for replication related
uncertainty), I want to let the user select which DC the utility will run
against.

So thats why the security descriptor question and DC enumeration.

Unfortunately all information about security descriptor is quite over
whelming. But i'm sure with some help, i'll be able to write this utility
:)

Thanks

Thank You

__________________________________________________________________________

Hemang Shah MCSE A+
Enterprise Messaging Support
Direct phone: (905) 568-0434 x 23854

Email: (e-mail address removed)
 
Back
Top