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 is too troublesome or not. Actually, they don't want to use batch processing to disable and enable the network card. Ok, let's explain how to disable or enable the NIC using the command line under the DevCon tool. Here are two examples of batches ——
@echo off
devcon disable *DEV_8136*
devcon enable *DEV_8136*
echo on
First download a batch software from Microsoft's website (if you have one in your computer, you don't have to, look for this file in the SYSTEM32 folder of the WINDOWS directory) B):
Download and put it in the system32 directory
Then enter cmd in the run to open the 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
Write the first & second &amp The device code between, for example, my network card 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
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.
Copyright © Windows knowledge All Rights Reserved