Prev: Unloading NDIS IM Filter driver
Next: Non Plug & Play ISA Driver support in Windows XP and Windows 7 ?
From: Spiggy Topes on 6 Aug 2010 14:36 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.
From: Mike [MSFT] on 12 Aug 2010 19:23
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" <ubik(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 > 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. > |