1

Windows 7 devcon can't disable and enable the nic, could you please help me?

C:\Users>devcon status =net @PCI\*
PCI\VEN_10EC&DEV_8168&SUBSYS_368217AA&REV_07\07000000684CE00000
Name: Realtek PCIe GBE Family Controller
Driver is running.
PCI\VEN_168C&DEV_0032&SUBSYS_311817AA&REV_01\4&1B96513B&0&0015
Name: Qualcomm Atheros AR9485 Wireless Network Adapter
Driver is 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.
Magnus Karlsson
  • 3,549
  • 3
  • 31
  • 57
wuhlcom
  • 119
  • 1
  • 9
  • downloaded the original `x64` file from http://www.microsoft.com/downloads/details.aspx?familyid=8A6EBFB5-833D-44E2-BF92-44648A8BB250 (opened as zip), -> support.cab (opened as zip) -> devcon.exe -> still same problem – phil294 Jan 17 '16 at 15:58

2 Answers2

0

http://ccm.net/ has an example of how to do this. In that example they are using a '*'. Does it work if you add that to your command?

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

Display all the devices in the system

In the command prompt, type

devcon find *> list.txt 

To get the list in a file For example, my 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 a piece of the string that identifies the device, and verify it is 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 that "VEN_1113" means a single network card. devcon disable *VEN_1113

Enable/disable the device

devcon disable *VEN_1113      
devcon enable *VEN_1113 

This allows me to enable/disable my network card (and therefore my internet connection) from the command line.

Magnus Karlsson
  • 3,549
  • 3
  • 31
  • 57
  • I have tried your example but it is no use. `C:\Users>devcon find =net "*DEV_8168*" PCI\VEN_10EC&DEV_8168&SUBSYS_368217AA&REV_07\07000000684CE00000: Realtek PCIe GBE Family Controller 1 matching device(s) found.'` `C:\Users\zhilu1234>devcon disable "*DEV_8168*" PCI\VEN_10EC&DEV_8168&SUBSYS_368217AA&REV_07\07000000684CE00000: Disable failed No devices disabled.` – wuhlcom Jul 13 '15 at 06:08
  • Why the apostrophes and ending star? You wrote: devcon disable "*DEV_8168*" – Magnus Karlsson Jul 13 '15 at 08:49
0

I downloaded another devcon by following this, which solved the problem!

Martin Serrano
  • 3,727
  • 1
  • 35
  • 48
wuhlcom
  • 119
  • 1
  • 9