Does anyone know how, given the name of a computer on an NT domain, to determine if the computer is currently connected to the domain ( ie. is turned on). Any examples would be appreciated.
A very quick way (assuming that you have the IP address) would be to Ping the machine. I wrote a FAQ on how to ping programatically . . . check it out at faq222-607
- Jeff Marler B-)
Cheers, that was almost exactly what I wanted without going through the API pain. I have tried it using the WinSock Control in VB, but if the machine is not on the network, the control takes about 20 seconds to error with no way of changing the timeout.
As I am only trying to populate a tree view with the machines that are available, 20 seconds per machine that
is not available takes rather a long time.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.