Solved

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

Posted on 2004-04-06
2
1,333 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

733 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