How do I get list of pc's in Active Directory

Anybody have some sample code to query the computers in Active Directory on a domain I would like to build an array from a list of computers within Active Directory. I am building an application that checks for existing files on computers on our network to tell me whether a particular program was installed or not.

Thanks,

Arkman5




Answer this question

How do I get list of pc's in Active Directory

  • Steve Severance

  • Harris Syed

    Rock on, Ken! Exactly what I was looking for - works like a charm and gives me enough of a sample to play around with and make my own. Thanks!!!

    Arkman5



  • Pedro Remedios

    to get started with, read about DirectoryServices. it cannot be imported by default using Imports System.DirectoryServices so you should add a reference to it in the solution explorer.

    from there you can play around the DirectoryEntry Class.


  • How do I get list of pc's in Active Directory