Command line tool for device management-devcon.exe)

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.