Win7 using the command line to detect hardware changes

Source: Internet
Author: User

Recently changed from Win10 to Win7, HP comes with a USB mouse always detected problems, need to manually detect hardware changes to re-use the mouse.

At first, it has been implemented by using the computer-----------------Device Manager------------to detect hardware changes, especially troublesome.

DevCon

This is a command-line tool that Microsoft provides to early system device management, which is equivalent to the command line Device Manager.

Microsoft's official website download connection has broken down ... There are 32-bit and IA64 bits on the internet (basically useless, because the 64 bits of the PC are not IA64 architecture), can be run after downloading

The parameter excerpt is as follows

Devcon.exe [-R] [-m:\\<machine>] <command> [<arg>]
-R if specified would reboot machine after command was complete, if needed.
<machine> Target machine name.
<command> command (see below).
<arg> parameters passed to the command.
Specific command, Type:devcon.exe help <command>
Classfilter allows you to modify class filters.
Classes display device installation classes.
Disable disabling the device with the specified hardware name or instance ID
Driverfiles lists the driver files for the device installation.
Drivernodes displays the driver for all nodes of the device.
Enable enables the device with the specified hardware name or instance ID.
Find finds the device with the specified hardware name or instance ID.
FindAll Find all hardware devices including those that are not displayed.
Help displays assistance information.
Hwids Displays the device hardware ID.
Install the device manually.
ListClass Displays the installation class for all devices.
Reboot restart the local machine.
Remove removes the device with the specified hardware name or instance ID.
rescan new scan hardware information. That's the one I want.
Resources displays the hardware resource used by the device.
Restart Restart the device with the specified hardware name or instance ID.
Stack lists the device's drive stack.
Status lists the state of the device.
Update manually updates the device driver.
Updateni Update device status does not display the user interface
Sethwid the order in which hardware IDs are added, deleted, and edited.

So it's much easier to set up a planning task or something.

In addition, some people say that the situation of unsuccessful, in https://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/ Devcon-not-working-correctly-in-windows-7/9abcc12c-d7db-4249-aec4-fc4ff0ea6ee8 There is a workaround under this post (Win7 64B) The main idea is to extract AMD64 version of the DevCon, more trouble, did not go to try.

As for the Win7 UAC prompt, and then write a special article to deal with the problem of adding trust ~

Win7 using the command line to detect hardware changes

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.