473,499 Members | 1,551 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2118
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
3658
by: Andrew Dalke | last post by:
Is there an author index for the new version of the Python cookbook? As a contributor I got my comp version delivered today and my ego wanted some gratification. I couldn't find my entries. ...
3
3852
by: Steve | last post by:
Hi all How would i get a list of all Active Computers on a network? All I need are the computer names. Kind Regards, Steve.
4
1778
by: Terry Olsen | last post by:
I have a list of pc names that I need to go out and pull information from. If they are all online, great! But when a PC is turned off (not online), the program hangs for a good 40 seconds before...
7
3278
by: giddy | last post by:
hi, i'm making a netowork based app. and if i have the UNC path to a local computer is there a way i can check whether the pc is online/offline?? Gideon
18
2434
by: Vic Spainhower | last post by:
Hello, Can someone tell me why on some computers the following list will fail . I have a user reported that some of the links in the below list will fail and some will work. The ones that fail...
4
7659
by: JB | last post by:
I am trying to get a list of all the active computers running on my domain. I'm writing some remote management style software with WMI, which works fine when i know the computer name, but i just...
6
2674
by: MattPKaiser | last post by:
I am trying to find a way to check if a computer on a network is "online" so that I can access a file on a share. In short I maintain a list of computers that have my service running (in the...
15
2411
by: dreen1 | last post by:
Hello! Does any one of you know about some kind of PHP IDE (or at least an editor with syntax highlighting) that works online? It would be absolutely great if there was something like Google...
11
10184
by: jellychai | last post by:
I'm doing the final year project that related to the SNMP. I need to find the solution for the IP auto detection in C#. When I run the main project, the program can automatically detect the IP for...
0
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5468
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4918
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4599
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3098
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3090
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
664
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.