Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1409
  • Last Modified:

Restart NIC automatically

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
rustyrpage
Asked:
rustyrpage
  • 3
  • 2
  • 2
  • +2
1 Solution
 
Jay_Jay70Commented:
you can use the devcon utility from ms

http://support.microsoft.com/kb/q311272/
0
 
rustyrpageAuthor Commented:
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
 
Jay_Jay70Commented:
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
rustyrpageAuthor Commented:
I would need an idea of how to do it since I don't see any easy way.
0
 
Jay_Jay70Commented:
aight give me some time and ill see if i can put it in a script for you
0
 
jalilthe1Commented:
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
 
MarkusKolbeckCommented:
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
 
myron-szyCommented:
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
 
myron-szyCommented:
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now