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:WinDDK7600.16385.1Toolsdevconamd64>devcon status =net
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:WinDDK7600.16385.1Toolsdevconamd64>devcon disable =net
No matching devices found.
What am I doing wrong?
The DevCon utility is a command-line utility that acts as an alternative to Device Manager. Using DevCon, you can enable, disable, restart, update, remove, and query individual devices or groups of devices. Open the Windows Device Manager by going to Start » Run, type in devmgmt.msc, and then click the OK button. However, when I try to the same, I get the message 'devcon failed' with no further elaboration. I provided following commands but none of them works. Devcon install 'C: Program Files (x86) Molecular Imaging MI Application Drivers pixciwin7x64 epixxcw6.inf' 'PCI VEN165A&DEVEB01&CCFF00'. Or after installing through device manager.
Creates a new, root-enumerated devnode for a non-Plug and Play device and installs its supporting software. Valid only on the local computer.
Conditional reboot. Reboots the system after completing an operation when a reboot is required to make the change effective. By default, DevCon does not reboot the system.
Specifies the full path and file name of the INF file for the device. If you omit the path, DevCon assumes that the file is in the current directory.
Specifies a hardware ID for the device.
The specified hardware ID must exactly match the hardware ID of the device. Patterns are not valid. Do not type a single quote character (') to indicate a literal value. For more information, see Hardware IDs and Device Identification Strings.
The system might need to be rebooted to make this change effective. To have DevCon reboot the system, add the conditional reboot parameter (/r) to the command.
You cannot use the DevCon Install operation for Plug and Play devices.
The DevCon Install operation creates a new non-Plug and Play device node. Then, it uses the DevCon Update operation to install drivers for the newly added device. As a result, the success message for the DevCon Install operation reports that DevCon has created the device node and that it has updated the drivers for the device.
If any step of the DevCon Install operation fails, DevCon displays a failure message and does not proceed with the driver installation.
The DevCon Install command creates a new non-Plug and Play device node each time you run it. To update or reinstall drivers, use the DevCon Update command.