471,306 Members | 1,334 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,306 software developers and data experts.

How to get the online computers list in AD ?

i can search objects in AD,someone can tell me how to get the online
Computers in AD ?
Dec 1 '05 #1
7 2027
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
"roopeman" <ro******@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com...
i can search objects in AD,someone can tell me how to get the online
Computers in AD ?

Dec 1 '05 #2
it seems just search AD objects in MSDN, but in this post ,my point is online
hosts!

"Chris Springer" wrote:
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
"roopeman" <ro******@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com...
i can search objects in AD,someone can tell me how to get the online
Computers in AD ?


Dec 1 '05 #3
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" <ro******@discussions.microsoft.com> wrote in message
news:FC**********************************@microsof t.com...
it seems just search AD objects in MSDN, but in this post ,my point is
online
hosts!

"Chris Springer" wrote:
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
"roopeman" <ro******@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com...
>i can search objects in AD,someone can tell me how to get the online
> Computers in AD ?


Dec 1 '05 #4

"roopeman" <ro******@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com...
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.
Dec 1 '05 #5
Oh ! Thanks! so do you have any ideal for get the online hosts list ?

"Willy Denoyette [MVP]" wrote:

"roopeman" <ro******@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com...
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.

Dec 7 '05 #6
Search AD then ping them. Afraid you cannot know whether a machine is
online unless you ping it.

In .NET 2.0, you should be able to use Ping class.
In older versions, see http://www.eggheadcafe.com/articles/20020209.asp
and http://www.codeproject.com/dotnet/CSharpPing.asp.

Thi

Dec 7 '05 #7
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.

"Truong Hong Thi" <th*****@gmail.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
Search AD then ping them. Afraid you cannot know whether a machine is
online unless you ping it.

In .NET 2.0, you should be able to use Ping class.
In older versions, see http://www.eggheadcafe.com/articles/20020209.asp
and http://www.codeproject.com/dotnet/CSharpPing.asp.

Thi

Dec 7 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Andrew Dalke | last post: by
3 posts views Thread by Steve | last post: by
7 posts views Thread by giddy | last post: by
18 posts views Thread by Vic Spainhower | last post: by
4 posts views Thread by JB | last post: by
15 posts views Thread by dreen1 | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.