Discussion Locked

Disabling Network Adapter

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How can it be disbled a network adapter status in windows 2000 using scripting?

1 reply

by murray.wall

Try this,
netsh interface show interface
Then copy/paste the Dedicated Interface name into the following line...
netsh interface set interface name={IFName} admin=enabled connect=disconnected

Or
http://download.microsoft.com/download/win2000ddk/Util/1.0/NT5XP/EN-US/DevCon.exe

1. At the command line, type: devcon hwids * > out.txt
2. open out.txt and look for your NIC. For example, my laptop has the following entry:

PCMCIAINTEL-ETHEREXPRESS(TM)_PRO/100_PC_CARD_MOBILE_ADAPTER16-33F81
Name: Intel EtherExpress PRO/100 Mobile PC Card 16 Adapter
Hardware ID's:
PCMCIAIntel-EtherExpress(TM)_PRO/100_PC_Card_Mobile_Adapter16-33F8
PCMCIAIntel-0089-010A

3. you're interested in the hardware id's, in my case, PCMCIAIntel-EtherExpress(TM)_PRO/100_PC_Card_Mobile_Adapter16-33F8

4. to disable the nic, type: devcon disable - so, in my case: devcon disable "PCMCIAIntel-EtherExpress(TM)_PRO/100_PC_Card_Mobile_Adapter16-33F8"

5. to enable the nic, just replace disable with enable.

This discussion is closed to new replies.