[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2004-04-06
2
Medium Priority
?
1,347 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 500 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

A Cyber Security RX to Protect Your Organization

Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

Question has a verified solution.

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

During and after that shift to cloud, one area that still poses a struggle for many organizations is what to do with their department file shares.
Make the most of your online learning experience.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

834 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