Disable and enable the network card? The command line helps you

  

For disabling and enabling the network card, you can find the network settings in the control panel, but many people don’t know if it’s too troublesome or what they are, they don’t want to, they just want to Use batch processing to disable and enable the network card. Well, let's explain how to disable or enable the network card using the command line under the DevCon tool. Here are two examples of batch processing ——

@echo Off

devcon disable *DEV_8136*

devcon enable *DEV_8136*

echo on

First download a batch software from Microsoft's website (if you There is no need in the computer, you can find it, this file is in the SYSTEM32 folder of the WINDOWS directory):

After downloading, put it in the system32 directory

and then enter it in the run. Cmd open dos window

Enter devcon find pci\\*

List all known PCI devices on the local computer, as follows, this is my own network card

PCI\\ VEN_13F0&DEV_0201& ;SUBSYS_020113F0&REV_14\\3&13C0B0C5&0&48: Sundance ST201 based PCI Fast Ethernet Adapter #3

Make a note of the device code between the first & second and /amp; for example my The NIC is: DEV_0201

The batch script is as follows:

devcon disable *DEV_0201* //Disable this PCI device

devcon enable *DEV_0201* //Enable this PCI device< Br>

The DevCon utility is a command-line utility that can replace the device manager. With DevCon, you can enable, disable, restart, update, delete, and query individual devices or a group of devices. DevCon also provides information that is relevant to the driver developer but not visible in Device Manager. DevCon can be used with Microsoft Windows 2000, Windows XP, and Windows Server 2003, Vista, and Windows 7, but it cannot be used with Windows 95, Windows 98, or Windows Millennium Edition. Previous12Next page Total 2 pages

Copyright © Windows knowledge All Rights Reserved