Official Document address:Http://support.microsoft.com/kb/311272/zh-cn
The devcon parameters are as follows:
========================================================== ================
Devcon.exe [-R] [-M :\< machine>] <command> [<Arg>...]
-R if specified will reboot machine after command is complete, if needed.
<Machine> name of the target machine.
<Command> command (see below ).
<Arg> parameters passed to the command.
For help on a specific command, type: devcon.exe help <command>
Classfilter allows class filters to be modified.
The classes display device installs classes.
Disable: Disable the device with the specified hardware name or instance id
Driverfiles lists the driver files installed on the device.
Drivernodes displays the drivers of all nodes of the device.
Enable enables the device with the specified hardware name or instance id.
Find uses the specified hardware name or instance id to find the device.
Findall searches for all hardware devices, including those not displayed.
Help displays help information.
Hwids displays the device hardware ID.
Install manually install the device.
Listclass displays the installation classes of all devices.
Reboot restarts the local machine.
Remove deletes a device with the specified hardware name or instance id.
Rescan re-scans hardware information.
Resources displays the hardware resources used by the device.
Restart restarts the device with the specified hardware name or instance id.
A stack is used to list the driver stacks of a device.
Status: lists the status of a device.
Update manually updates the device driver.
Updateni does not display the updated device status on the user interface
Sethwid: add, delete, and edit hardware IDs.
========================================================== ==================================
Two important parameters are:EnableAndDisableTo enable or disable Windows devices. Another parameter isFindallTo viewID.
You can use the following command to obtain the usage of a specific command:Devcon HELP command
Example:
1. View help
Devcon /?
Devcon help find
2. view the IDs of all PCI NICs
Devcon find = net PCI \*
3. Disable the specified Nic
Devcon disable = net PCI \ ID
Note: The ID ranges from 1st characters to & characters. For example:
Devcon.exe disable = net PCI \ ven_8086
3. Disable the specified Nic
Devcon disable = net PCI \ ID
4. Enable the specified Nic
Devcon enable = net PCI \ ID
Devcon.exe enable = net PCI \ ven_8086