Re: Online Test

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Al Dunbar [MS-MVP] (alan-no-drub-spam_at_hotmail.com)
Date: 05/09/04


Date: Sun, 9 May 2004 16:10:49 -0600


"Russ_S-K" <anonymous@discussions.microsoft.com> wrote in message
news:4E960996-C198-477C-931A-0D42E87E4BB9@microsoft.com...
> I was wondering if there is a better test to determine if a PC is online
than the one I am using. Using ping seem to be a rather crude way. Here is
the code I use:
>
> iPing = oShell.Run( "cmd /c ping -n 2 -w 50 " & sComputer & _
> " | find /i ""Reply from"" ", 0, TRUE )
> If iPing <> 0 Then
> wScript.Echo sComputer & " is not currently online."
> End If

Almost any method for communicating with a remote computer is going to have
some issues when the remote computer fails to respond, resulting in even
more time wasted than waiting for ping responses to time out.

You could write a WMI script, for example. But the nature of the
communications involved in that scenario is more detailed than a ping, and
relies more heavily on processing being done by the remote system. I have
not timed it myself, but I would be surprised if it takes less time for a
WMI script to determine that a system is not there.

/Al



Relevant Pages

  • Re: XP Pro not accessable via LAN or VPN
    ... If you can not ping the machine by name or at least IP address it seems you ... address of the remote computer you can not access to see if you can see any ... TCP port 445: LISTENING ...
    (microsoft.public.windowsxp.security_admin)
  • Re: connection to desktop
    ... Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net ... Bob I can ping the remote computer ip however I am not sure what you mean ... > Bob Lin, MS-MVP, MCSE & CNE ...
    (microsoft.public.windows.server.networking)
  • Re: vpn to either xp pro or 2000 pro desktop
    ... >> should be able to ping a remote computer by its IP address....and if ... >> you use WINS you might even be able to ping by name. ... > vnc server running ( ... There are lots of sites that will help with VPN. ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: Remote desktop can browse but connection doesnt work
    ... PC on the LAN by name it fails but by IP it passes. ... This computer can't connect to the remote computer. ... Another anomaly occures if I ping the other computer. ... But when I try to connect the connection fails. ...
    (microsoft.public.windowsxp.network_web)
  • Re: vpn to either xp pro or 2000 pro desktop
    ... > able to ping a remote computer by its IP address....and if you use WINS you ... > might even be able to ping by name. ... and access files on those drives that way, at least I would like to run vnc ... I can connect to without using vpn.. ...
    (microsoft.public.windowsxp.work_remotely)