DevCon tool disables or enables NICs with the command line

  
        Smart people are often lazy, lazy to feel a little uncomfortable with a few more mouse clicks. For disabling and enabling the network card, you can find the network settings in the control panel, but they are not, you have to use batch processing, well, Microsoft's DevCon tool can disable or enable the network card, the following are two examples of batch - @echo off devcon disable * DEV_8136 * devcon enable * DEV_8136 * echo on Microsoft's Web site to download the first batch software (if you do not have any computer, and you go and find this file In the SYSTEM32 folder of the Windows directory): http://download.microsoft.com/download/1/1/f/11f7dd10-272d-4cd2-896f-9ce67f3e0240/devcon.exe After downloading it, put it in the system32 directory and then Run the input cmd to open the DOS window and enter devcon find pci\\* to list all known PCI devices on the local computer, as follows, this is my network card line PCI\\VEN_13F0&DEV_0201&SUBSYS_020113F0&REV_14\\3&13C0B0C5&0&48 : Sundance ST201 based PCI Fast Ethernet Adapter # 3 & a note of Dir The device code between amp; and the second & 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 DevCon utility A tool is a command-line utility that can replace a 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 for Microsoft Windows 2000, Windows XP and Windows Server 2003, Vista and Windows7, but can not be used in Windows 95, Windows 98 or Windows Millennium Edition. Usage Under normal circumstances :( introduce some commonly used commands and syntax) 1, devcon find devcon find * [This list command to list the device instances of all devices present on the local computer] devcon find pci \\ * [listed All known Peripheral Component Interconnect (PCI) devices on the local computer (if a device's hardware ID is prefixed with "PCI\\", this command considers the device to be a PCI device] 2. devcon disable *msloop [Disabled Hardware ID All devices ending with "MSLOOP" (including "*MSLOOP")] 3. devcon enable '*MSLOOP [Enable all devices with hardware ID "*MSLOOP". Single quotes indicate that the hardware ID must be interpreted literally. In other words, the asterisk ["*"] is really an asterisk, not a wildcard] 4. devcon remove @usb\\* Delete all USB devices. The deleted device will display its delete status when listed. An example, so let's talk about the hardware ID is 啥 fun, that is to let everyone know how to find it, please see: find pci \\ * The following is to find part: PCI \\ VEN_10EC & DEV_8139 & SUBSYS_813910EC & REV_10 \\ 3 & 13C0B0C5 & 0 & 58: Realtek RTL8139 Family PCI Fast Ethernet NIC PCI \\ VEN_1106 & DEV_0571 & SUBSYS_18271019 & REV_06 \\ 3 & 13C0B0C5 & 0 & 89: VIA Bus Master IDE Controller PCI \\ VEN_1106 & DEV_3038 & SUBSYS_18271019 & REV_80 \\ 3 & 13C0B0C5 & 0 & 80: VIA Rev 5 or later USB Universal Host Controller these lines ":" in front of that hardware ID, followed by device Name. Even if you want to disable the network card, please read carefully: devcon disable *DEV_8139* [This is the case, if you have devcon.exe in your computer] Even if you want to enable it, the same thing: devcon enable *DEV_8139* If you specify -r and need to restart, after all the devices have been processed, it will restart without any warning message. Others will not say much. If you like to use it, download a compressed package. Use it on your own machine, some people may think that if it is With more powerful features, please be self-reliant... Believe in yourself! There are 2 folders in the archive, one for 32-bit and one for 64-bit. The DevCon.exe file contains the following files: File Description I386\\ DevCon.exe executable file for the 32-bit DevCon tool. This file does not work well on 64-bit Windows. Ia64\\DevCon.exe An executable file for the 64-bit DevCon tool.
Copyright © Windows knowledge All Rights Reserved