Solved

"network restart" equivalent in Windows OR: Auto-Restart network adapter if ping fails

Posted on 2004-04-06
2
1,330 Views
Last Modified: 2013-11-09
Hi,

some of our computers don't get the network configuration right after an automatic reboot at night. What we typically do to fix this problem is - of course - to either reboot the computer or "reboot" the network connection (In Network Neighbourhood right click on connection, disconnect and connect again).

Is there a way to automate this ?

Basically I want to do the following using Windows Scripting Host:

After reboot (in Autostart):
- ping a set of other computers
- if more than one remote computer cannot be pinged, the local computer probably does not have a network connection
- in this case disconnect and connect the network adapter

I think I can do the pinging part using VBScript (http://www.microsoft.com/technet/community/scriptcenter/network/scrnet04.mspx), but I am not sure about how to restart a network adapter - I'm missing something like the "/etc/init.d/network restart" from linux.

Any ideas ? Thanks in advance !
Holsche
0
Comment
Question by:Holsche
2 Comments
 

Accepted Solution

by:
Derek_Neuberger earned 125 total points
ID: 10775348
If this is an automatic reboot, I am assuming that it occurs at the same time each night... This being the case it might be easier to set up a batch file on each machine (depending on network configuration, should be able to implement remotely) to force it to renew its network settings.  For example:

In Windows 2000
________________
@echo off
ipconfig /release *
ipconfig /renew *
________________

You could then set this batch file to run at the appropriate time interval on each individual machine.

Remember that the syntax of the ipconfig switches can change from one operating system version to another; so if you have a heavily mixed network, this might not be the best solution.

Hope this helps,
Derek
0
 

Author Comment

by:Holsche
ID: 10790275
Thanks, I'll try that
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Let’s list some of the technologies that enable smooth teleworking. 
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question