How to get the online computers list in AD ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i can search objects in AD,someone can tell me how to get the online
Computers in AD ?
 
Microsoft has published a complete section on how to view active directory
components. It ships with the online documentation in MSVS2003. Use the
help to do a search for...

active directory objects

and filter on c#

it includes sample code so this should be a start for you...

Chris

--
Securing your systems is much like fighting off disease -- as long as you
maintain basic hygiene, you're likely to be okay, but you'll never be
invulnerable.

Steve Shah - Unix Systems Network Administrator
 
Try the help under...

Searching Active Directory Hierarchies...

You should be able to use the DirectorySearcher class to search any valid
path for nodes.

Beyond this I can't find anything...sorry about that.

Chris

--
Securing your systems is much like fighting off disease -- as long as you
maintain basic hygiene, you're likely to be okay, but you'll never be
invulnerable.

Steve Shah - Unix Systems Network Administrator
 
roopeman said:
i can search objects in AD,someone can tell me how to get the online
Computers in AD ?

You can't use AD for this. The AD is a repository, it contains the static
state of the objects, but it does not contain the dynamic state of each of
it's objects.

Willy.
 
Even if you "ping" them there is no guarantee you can reach them, if routers
are configured to drop ICMP ping request packets you are screwed, the same
applies to intermediate firewalls.

Willy.
 
Back
Top