You can use WMI WIN32_PingStatus In you subtroutine. Based On the reply you can complete the scripts Next steps
Sub Pinger
Pinger = False
Set objPing = GetObject("winmgmts:{impersonationLevel=impersonate}")._
ExecQuery("select * from Win32_PingStatus where address = '"_
& strComputer...
Here is another way to do it using the ANSI value for Quotes(").
text = Replace(text, chr(34), chr(34) & chr(34))
It will make your code easier to read.
Hope it helps,
horacer
I would like to be able to generate a list of all the computers in a NT 4.0 Domain and distinguish between servers and workstations.
This will be similar to the server manager (srvmgr.exe) View Menu - Servers, Workstations, All.
I was told to I could accomplish this with an API call to the...
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.