Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#309200 - 16/04/2008 21:04 Disabling and enabling NIC adapter via a DOS command?
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
If, on Windows Server 2003, I wanted to disable and re-enable the NIC in a loop with specified delays between each, is there an easy way to do that from the command line?

I poked through the NETSH commands and couldn't see anything obvious. It's dead-obvious in Vista and Longhorn, not so much in 2003.
_________________________
Tony Fabris

Top
#309201 - 16/04/2008 21:21 Re: Disabling and enabling NIC adapter via a DOS command? [Re: tfabris]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Ah, looks like I just needed DEVCON.EXE.
_________________________
Tony Fabris

Top
#309202 - 16/04/2008 21:25 Re: Disabling and enabling NIC adapter via a DOS command? [Re: tfabris]
AndrewT
old hand

Registered: 16/02/2002
Posts: 867
Loc: Oxford, UK
Might be worth looking at cnic.exe too. Do a Ctrl-F a few times on http://technet.microsoft.com/en-us/magazine/cc160985.aspx

Top
#309235 - 17/04/2008 15:42 Re: Disabling and enabling NIC adapter via a DOS command? [Re: AndrewT]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Downloaded, looking at Cnic now. Thanks!
_________________________
Tony Fabris

Top
#309240 - 17/04/2008 19:29 Re: Disabling and enabling NIC adapter via a DOS command? [Re: tfabris]
siberia37
old hand

Registered: 09/01/2002
Posts: 702
Loc: Tacoma,WA
A VBS Script using WMI would be able to do it. Might be easier to maintain in the long run rather than a batch file or a third-party program.

Top