how do i list all computer name on my network
-
does anyone know how to list all the computers found on my network in a drop down list box? I am working on this project that i need the user to select a computer name from a list of computer found on the network so as to setup up the system.. how do i list all the computer on my network..
Nab
-
does anyone know how to list all the computers found on my network in a drop down list box? I am working on this project that i need the user to select a computer name from a list of computer found on the network so as to setup up the system.. how do i list all the computer on my network..
Nab
Well, it depends on how your network is setup. Unless you're using Active Directory or the old NT Domains, there is no central database that lists all the machines on the network. You'll have to ping each and every IP address in your net to see if there is a response. But, that does NOT mean it's a Windows machine. It can be something else, like a network Printer, some server, Linux box, ... Even a non-response doesn't mean that a machine is not there. It could just be turned off. Even using Active Directory or NT Domain, there's no guarantee that every machine on the network is a member of the domain.
Dave Kreskowiak Microsoft MVP - Visual Basic
-
Well, it depends on how your network is setup. Unless you're using Active Directory or the old NT Domains, there is no central database that lists all the machines on the network. You'll have to ping each and every IP address in your net to see if there is a response. But, that does NOT mean it's a Windows machine. It can be something else, like a network Printer, some server, Linux box, ... Even a non-response doesn't mean that a machine is not there. It could just be turned off. Even using Active Directory or NT Domain, there's no guarantee that every machine on the network is a member of the domain.
Dave Kreskowiak Microsoft MVP - Visual Basic
Yes i am using Active Directory and all the computers are on the same domain..so now how do i go about listing them from that database...
Nab
-
Yes i am using Active Directory and all the computers are on the same domain..so now how do i go about listing them from that database...
Nab
JustmeNick wrote:
so now how do i go about listing them from that database...
Google ADSI Here is an MSDN Example showing how to do it using VB Script. Retrieving Computer Names from an Active Directory Container[^] Or a CP Article (in C#) Retreiving a list of network computer names[^] They at least point you in the right direction. Good luck :)
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley: