Joan
Joan

Reputation:

Active Directory in VB.Net

How can I get a list of computers and their properties from Active Directory using VB.Net and Visual Studio 2008?

Upvotes: 1

Views: 843

Answers (3)

hugoware
hugoware

Reputation: 36397

You're going to want to use the System.DirectoryServices or the System.DirectoryServices.AccountManagement to access your domain.

These namespaces have classes you can use to search your directory and examine the objects it finds.

Is there something you're looking for in particular?

(it's worth noting that is most cases you need to add a reference to these namespaces in your project)

Upvotes: 3

Mike Hofer
Mike Hofer

Reputation: 17012

Working with Active Directory, even with the help of the DirectorySearcher class, is no mean feat. It is not a task to be taken lightly. If you haven't done it before, I'd read up on it before attempting to do so.

I highly recommend The .NET Developer's Guide to Directory Services Programming.

That being said, the classes in the DirectoryServices namespace do some of the work for you, but certainly nowhere near enough of it.

Upvotes: 2

Matthew Groves
Matthew Groves

Reputation: 26141

Check out the DirectorySearcher class.

Upvotes: 0

Related Questions