VBS Ping check script
This method means your script will not hang running against machines that are powered off.
PINGFlag = Not CBool(ObjShell.run("ping -n 1 " & StrUserID(1),0,True))
If PINGFlag = True Then
' Machine is up and running
Else
' Machine has not responded
End If
Labels: Scripts
0 Comments:
Post a Comment
<< Home