Restart NIC automatically

Posted on 2006-11-07
Last Modified: 2010-05-18
I have a problem on my email server that I cannot figure out the issue...until I figure out the issue, I have found that restarting the NIC (enable/disable, plug/unplug etc) seems to fix the problem for a half hour or so.  Does anyone know of a way to have Windows scheduler run a script or something that will restart the NIC (or TCP/IP)

Question by:rustyrpage
  • 3
  • 2
  • 2
  • +2
LVL 48

Expert Comment

ID: 17895733
you can use the devcon utility from ms

Author Comment

ID: 17895746
I do not want to actually reboot the whole server...just the network interface.  I do not even know what service that is.  I need to be able to do it as a restart so that I do not have to go to the server console to restart.
LVL 48

Expert Comment

ID: 17895816
i know, thats why i suggested devcon :) i havent scripted it before, but have noticed mentioned in a couple of threads, thought it might help, its just a command line sub for device manager

Author Comment

ID: 17895829
I would need an idea of how to do it since I don't see any easy way.
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

LVL 48

Expert Comment

ID: 17895864
aight give me some time and ill see if i can put it in a script for you

Expert Comment

ID: 17897025
The keys in the registry are located in the following location -


Under here you will have many other sub-keys for your network adapters (onboard/wireless/bluetooth etc) theyt are named 0000, 0001, 0002 etc

Unfortunately, each NIC will have it's Network Speed and Duple mode referenced in a different way so you will have to chack each model. E.g On a Dell GX260 they are "Duplexmode"="FullDuplex" and "MediaSelect"="100BASETX", other Dell's are "SpeedDuplex"="4".

Most machines will need a reboot to make the change.

Good luck.

Expert Comment

ID: 17897037
you can use the Windows Support Tool devcon (Device Console) to enable or disable devices (such as the NIC).

Example to disable the VMWare NIC:
devcon disable *VMNetAdapter1

you must provide the Hardware-ID which can be found in the device manager (devmgmt.msc) under the properies - details - Hardware-IDs of the network card.


Accepted Solution

myron-szy earned 500 total points
ID: 17905657
I had this problem with a VIA NIC that is built onto the main board and the NIC only seemed to go deaf and dumb about 7 days after the initial PPTP connection through it.  After about a month of head scratching and going off a hunch I put in a NIC with the RealTek NIC chip on it and since I did that all the connectivity problems are 100% solved.  Disabling and re-enabling the problem NIC, for me, may have restored connectivity but I soon discovered that File and Print services continued to malfunction as well as a few other services after the VIA NIC malfunctioned until I rebooted the server.  For a while I resorted to a schedule and script that rebooted the file server in the very early morning during the weekend.

A process of troubleshooting the problem: try use another NIC to see if the NIC and/or NIC's device driver is at fault or of the fault lies in some other part of the server operating system.

The actual NIC I was having problems with is labeled as:  VIA Rhine II Campotible Fast Etherent Adapter
It's Microsoft's own NIC driver that's controlling this NIC.

For curiosity's sake, try another NIC.

Expert Comment

ID: 17939965
Thanks for the the grade A rating.  Which solution did you implement?  A server restart early in the morning or a different NIC?

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Dentrix G4 1 47
Trust relationship SBS2011 - > Windows 2003 3 38
Connecting two servers 30 76
ESEUTIL Stopped Working Need a new copy for 2003 Exchange. 11 46
by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Internet Business Fax to Email Made Easy - With eFax Corporate (, 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, fr…

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now