Discussion:
DevCon - Status Finds, Disable Doesn't.?
(too old to reply)
Spiggy Topes
2010-08-06 18:36:35 UTC
Permalink
I'm running Win 7 64-bit on an AMD processor. Most times, when I boot,
my network adapter fails to initialize properly. I've found if I
disable and enable it through the device manager, it will work fine
from then on.

To automate this, I picked up the WDK and DevCon.exe, and thought I'd
set up a batch file to prep the adapter after boot.

I can determine status as follows:

C:\WinDDK\7600.16385.1\Tools\devcon\amd64>devcon status =net
*81411043*
PCI\VEN_10DE&DEV_0057&SUBSYS_81411043&REV_A3\3&2411E6FE&1&50
Name: NVIDIA nForce Networking Controller
Driver is running.
1 matching device(s) found.

But if I replace status with disable - or restart - I get:

C:\WinDDK\7600.16385.1\Tools\devcon\amd64>devcon disable =net
*81411043*
PCI\VEN_10DE&DEV_0057&SUBSYS_81411043&REV_A3\3&2411E6FE&1&50: Disable
failed
No matching devices found.

What am I doing wrong?

Thanks.
Mike [MSFT]
2010-08-12 23:23:07 UTC
Permalink
Are you sure you are running the tool from an elevated command prompt? The
error string you are seeing is telling you how many devices it successfully
disabled, not how many it found, as it would seem (perhaps not ideal).

-Mike
Post by Spiggy Topes
I'm running Win 7 64-bit on an AMD processor. Most times, when I boot,
my network adapter fails to initialize properly. I've found if I
disable and enable it through the device manager, it will work fine
from then on.
To automate this, I picked up the WDK and DevCon.exe, and thought I'd
set up a batch file to prep the adapter after boot.
C:\WinDDK\7600.16385.1\Tools\devcon\amd64>devcon status =net
*81411043*
PCI\VEN_10DE&DEV_0057&SUBSYS_81411043&REV_A3\3&2411E6FE&1&50
Name: NVIDIA nForce Networking Controller
Driver is running.
1 matching device(s) found.
C:\WinDDK\7600.16385.1\Tools\devcon\amd64>devcon disable =net
*81411043*
PCI\VEN_10DE&DEV_0057&SUBSYS_81411043&REV_A3\3&2411E6FE&1&50: Disable
failed
No matching devices found.
What am I doing wrong?
Thanks.
Spiggy Topes
2010-08-17 16:29:25 UTC
Permalink
Post by Mike [MSFT]
Are you sure you are running the tool from an elevated command prompt? The
error string you are seeing is telling you how many devices it successfully
disabled, not how many it found, as it would seem (perhaps not ideal).
-Mike
Post by Spiggy Topes
I'm running Win 7 64-bit on an AMD processor. Most times, when I boot,
my network adapter fails to initialize properly. I've found if I
disableand enable it through the device manager, it will work fine
from then on.
To automate this, I picked up the WDK andDevCon.exe, and thought I'd
set up a batch file to prep the adapter after boot.
C:\WinDDK\7600.16385.1\Tools\devcon\amd64>devconstatus=net
*81411043*
PCI\VEN_10DE&DEV_0057&SUBSYS_81411043&REV_A3\3&2411E6FE&1&50
   Name: NVIDIA nForce Networking Controller
   Driver is running.
1 matching device(s) found.
C:\WinDDK\7600.16385.1\Tools\devcon\amd64>devcondisable=net
*81411043*
PCI\VEN_10DE&DEV_0057&SUBSYS_81411043&REV_A3\3&2411E6FE&1&50:Disable
failed
No matching devices found.
What am I doing wrong?
Thanks.
I'm an idiot. No, I wasn't. I was running from a plain vanilla command
prompt. Run as administrator and my problem is solved. Thank you,
hugely.

Loading...