Solved

Restart NIC automatically

Posted on 2006-11-07
9
1,389 Views
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)

Thanks
0
Comment
Question by:rustyrpage
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 48

Expert Comment

by:Jay_Jay70
Comment Utility
you can use the devcon utility from ms

http://support.microsoft.com/kb/q311272/
0
 
LVL 6

Author Comment

by:rustyrpage
Comment Utility
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.
0
 
LVL 48

Expert Comment

by:Jay_Jay70
Comment Utility
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
0
 
LVL 6

Author Comment

by:rustyrpage
Comment Utility
I would need an idea of how to do it since I don't see any easy way.
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 48

Expert Comment

by:Jay_Jay70
Comment Utility
aight give me some time and ill see if i can put it in a script for you
0
 
LVL 7

Expert Comment

by:jalilthe1
Comment Utility
Try
The keys in the registry are located in the following location -

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}

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.
0
 
LVL 5

Expert Comment

by:MarkusKolbeck
Comment Utility
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.

ATB
Markus
0
 
LVL 2

Accepted Solution

by:
myron-szy earned 500 total points
Comment Utility
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.
0
 
LVL 2

Expert Comment

by:myron-szy
Comment Utility
Thanks for the the grade A rating.  Which solution did you implement?  A server restart early in the morning or a different NIC?
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Learn about cloud computing and its benefits for small business owners.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
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, fr…

743 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

16 Experts available now in Live!

Get 1:1 Help Now