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
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.
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.
Summary: I just upgraded my processor from a amd xp 1900+ to a 2600+, and after i rebooted my computer, the onboard lan for my GA-7VAXP gigabyte motherboard had disapeared both from windows and the bios (it us...
Summary: You have probably never seen anything like this. No matter how I twist it - the network card is ALWAYS installed twice. I'm using Win98SE, I have an IBM Thinkpad 600x with a Pent.3 and 128Ram. I got t...
Summary: here my setup: internet~>cablemodem~>Router~> (nic.1)-PC.A-(nic.2)~>HUB~>PC.B pc.a has 2 network cards install one onboard(nic.1) and one pci(nic.2) nic.1=linked to router and is used for internet acc...