XP Repair Network Script?

Logolotta

Member
Aug 20, 2004
27
0
0
I was trying to explain to a friend how to repair their network connection in windows xp if they all of a sudden don't have internet connection, or if they have to reset their router or something.

The few steps of clicking START: SETTINGS: NETWORK CONNECTIONS: [RIGHT CLICK ACTIVE CONNECTION]: and REPAIR is actually too complex for some people... So I wanted to know if theres some script I could plug into a batch file or something. Adding an icon to the desktop that could do this would probably be a lot easier for these less than advanced users. If any of you uber nerds could help I'd appreciate it!

Chris-
 

mikecel79

Platinum Member
Jan 15, 2002
2,858
1
81
A "repair" of a network connection actually only does 4 main things. Renews the IP address, flushes the DNS cache, flushes the arp table ,and flushes the NBTcache. So here's a little batch file.

However I'd like to add that using the repair option, if something were to fail Windows would tell you. This batch file won't tell you. You can have it pipe everything to a logfile on the machine but then you have to tell them how to open the log file which may be harder.
 

stash

Diamond Member
Jun 22, 2000
5,468
0
0
Uh, click the repair button?

It does everything that mikecel79 just listed.

You don't need to do a lot of clicking. Set up their machine so the network icon shows up in the tray. When it doesn't work, right click on the icon and click repair.
 

JackMDS

Elite Member
Super Moderator
Oct 25, 1999
29,546
422
126
Originally posted by: mikecel79
A "repair" of a network connection actually only does 4 main things. Renews the IP address, flushes the DNS cache, flushes the arp table ,and flushes the NBTcache. So here's a little batch file.

However I'd like to add that using the repair option, if something were to fail Windows would tell you. This batch file won't tell you. You can have it pipe everything to a logfile on the machine but then you have to tell them how to open the log file which may be harder.
While this is very good it is just part of the story.

Many times Winsock and LSP need to be fixed first.

I would suggest to your friend to read this: http://www.ezlan.net/clean#refreshnet

Download the programs involved and keep it for emergencies.

This might be a part of the solution too: http://www.xp-smoker.com/freeware.html

:sun: