Computing.Net > Forums > Networking > Enabling & disabling network cards

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Enabling & disabling network cards

Reply to Message Icon

Name: charles
Date: November 12, 2001 at 10:20:30 Pacific
Comment:

I am looking for a way to enable and disable network cards with a script program. Using the Windows command "netsh.exe" I can change the network settings on a laptop from a fixed IP to DHCP (see http://www.ec11.dial.pipex.com/win2000.shtml). However, the command seems to work best if the network card is disabled. So, I'm looking for the following sequence in a script:
* Disable the network card
* Execute the netsh.exe command
* Enable the network card

The only piece of the puzzle I need is how to enable and disable the network cards using a script.

As to which script program to use, I'm open to suggestions. The main requirement is it be executable on machines which have a generic version of Windows 2000 installed, that is, no special programs or upgraded versions of programs are needed.

Thanks for any insight you might be able to give me on how to solve this dilemma.



Sponsored Link
Ads by Google

Response Number 1
Name: Hamid Azmi
Date: February 25, 2002 at 08:07:32 Pacific
Reply:

I am trying to implement almost the same thing. I need to disable/enable my network card either through a script command, or an activex, or a DLL. I was wondering if you had any information.

Thanks
Hamid



0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Networking Forum Home


Sponsored links

Ads by Google


Results for: Enabling & disabling network cards

network card slows to almost nothin www.computing.net/answers/networking/network-card-slows-to-almost-nothin/12867.html

Network Card Always installs Twice! =\ www.computing.net/answers/networking/network-card-always-installs-twice-/8150.html

installing 2 network cards on 1 pc www.computing.net/answers/networking/installing-2-network-cards-on-1-pc/29821.html