Question

Locked

How do I query XP system to see if it is connected to network?

By Summersond ·
We are trying to write a procedure so if the network cable is not connected to the pc, it throws an error message saying to plug in NIC cable. I have unsuccessfully tried looking thru MS stuff and Googled different things but am still at a loss. I would like to use a command line to poke for the current status of the lan connection. Is there any hope for this?

Thanks in advance!
Dave

This conversation is currently closed to new comments.

14 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Hey, Scripting Guy - Nice tutorial

by IC-IT In reply to How do I query XP system ...
Collapse -

I could swear XP already does this

by -Q-240248 In reply to How do I query XP system ...

I believe XP even pops up a message saying the cable is unplugged...

Collapse -

Yup

by Dumphrey In reply to I could swear XP already ...
Collapse -

When a network cable is removed

by Dumphrey In reply to How do I query XP system ...

you should get an event id 4202 in your system event log. This can be used for an eventrigger.

If the computer is on a domain (may work with a workgroup) the net view command will return a System Error 1231 if the net cable is disconnected.

Then there is always the classic ping, pathping, or tracert.

Collapse -

Thanks! Here is more of story...

by Summersond In reply to When a network cable is r ...

What we are attempting to do is to discover if the pc is not yet plugged into the network upon first setting up the pc. We have it run the initial (sysprepped) setup to get to windows, reboot, then it comes to our corporate setup menu that automates the final install for the user. It is here that we need to make sure that the lan cable is plugged in before they attempt to run the script, so this is where I need some kind of check to keep them from continuing until the cable is plugged in. Clear as mud? :)

thanks!
dave

Collapse -

Ping the server?

by Kenone In reply to Thanks! Here is more of ...

If it fails echo a message

Collapse -

ping

by Summersond In reply to Ping the server?

We want it to be totally transparent to the user so there is no interaction from them. They tend to really screw things up... :)

Collapse -

ping2

by Summersond In reply to Ping the server?

If there is a way to ping the server and grab an error code to use, that would work.

Collapse -

Much clearer

by -Q-240248 In reply to Thanks! Here is more of ...

You could do a script that pings the gateway and if no response, do something else, like send a message.

Collapse -

great idea

by Summersond In reply to Much clearer

... except I dont know how to script. I cant think it would be too hard to write if one had the scripting knowledge.

Thanks!

Back to Web Development Forum
14 total posts (Page 1 of 2)   01 | 02   Next

Software Forums