windows - devcon.exe - disable net device failed -


windows 7 devcon can't disable , enable nic, please me?

c:\users>devcon status =net @pci\* pci\ven_10ec&dev_8168&subsys_368217aa&rev_07\07000000684ce00000 name: realtek pcie gbe family controller driver running. pci\ven_168c&dev_0032&subsys_311817aa&rev_01\4&1b96513b&0&0015 name: qualcomm atheros ar9485 wireless network adapter driver running. 2 matching device(s) found.  c:\users>devcon disable pci\ven_10ec pci\ven_10ec&dev_5229&subsys_522910ec&rev_01\00000001004ce00000: disable failed pci\ven_10ec&dev_8168&subsys_368217aa&rev_07\07000000684ce00000: disable failed no devices disabled. 

http://ccm.net/ has example of how this. in example using '*'. work if add command?

the following http://ccm.net/faq/1886-enable-disable-a-device-from-the-command-line

display devices in system

in command prompt, type

devcon find *> list.txt  

to list in file example, network card accton appears as:

pci\ven_1113&dev_1211&subsys_12111113&rev_10\3&13c0b0c5&0&48: accton en1207d series pci fast ethernet adapter #2  

choose piece of string identifies device, , verify unique:

c:\>devcon find *ven_1113      pci\ven_1113&dev_1211&subsys_12111113&rev_10\3&13c0b0c5&0&48: accton en1207d ser      ies pci fast ethernet adapter #2      1 matching device(s) found. 

make sure "ven_1113" means single network card. devcon disable *ven_1113

enable/disable device

devcon disable *ven_1113       devcon enable *ven_1113  

this allows me enable/disable network card (and therefore internet connection) command line.


Comments