[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register 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,338 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 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

Q2 2017 - Latest Malware & Internet Attacks

WatchGuard’s Threat Lab is a group of dedicated threat researchers committed to helping you stay ahead of the bad guys by providing in-depth analysis of the top security threats to your network.  Check out our latest Quarterly Internet Security Report!

Question has a verified solution.

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

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses

656 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