From: Spiggy Topes on
On Aug 12, 4:23 pm, "Mike [MSFT]" <jlongh...(a)hotmail.com> wrote:
> 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
>
> "Spiggy Topes" <u...(a)shaw.ca> wrote in message
>
> news:daf4d9f2-3ace-4bf2-a8db-0e4a5bc480d8(a)u31g2000pru.googlegroups.com...
>
> > 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.
>
> > I can determinestatusas follows:
>
> > 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.
>
> > But if I replacestatuswithdisable- or restart - I get:
>
> > 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.