Querying Active Directory

G

Guest

Hi
Can anyone tell me, how can I search for Domain Administrators on a network.
What I mean is by using DirectorySearcher I can search for normal users,
which goes something like

DirectorySearcher ds = new DirectorySearcher(new DirectoryEntry());
ds.Filter="objectCategory=User";
ds.FindAll();

Similarly how can I search for administrative accounts?

Thanks in advance
Vikas
 
G

Guest

Don't you hate it when someone just pastes a link and then you have to go
read it??

Well, here ya go:
http://www.netomatix.com/GroupMembers.aspx

This will work with getting the names of users that are in a given group
name (e.g. Dimain Admins). Be aware that there isn't any type of a flag that
makes a group an "administrative group" so you'll have to know the name of
the group(s) that you want to query

If you're trying to
 

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