Quick way to re-enable U disk

Source: Internet
Author: User

Right-click on My Computer-properties--hardware--Device Manager--Expand in the list Universal Serial Bus controller--right-click on the USB Root Hub to select Deactivate-and then right-click to select Enable. So your USB drive is back again. (Note: If you have more than one USB Root Hub, you can disable it individually and then try which one is your USB drive.) There are also articles on the web that use USB Mass Storage Device, but I find that it is deactivated, can not be enabled, and prompts to reboot the computer. All of the following are for the USB Root Hub)

But who would want to do such a troublesome thing? So here's a simple one:

Using DevCon combined with batch processing, the above complex operation can be achieved by a click. As for DevCon, Microsoft says:

The DevCon utility is a command-line utility that can override Device Manager. With DevCon, you can enable, disable, restart, update, delete, and query individual devices or a set of devices. DevCon also provides information that is relevant to driver developers but cannot be seen in Device Manager. You can use DevCon for Microsoft Windows 2000, Windows XP, and Windows Server 2003.

Note: The Devcon.exe coming down is a zip compression package that must be decompressed (available winrar). After decompression, there are two folders, the Devcon.exe in the I386 is used by 32-bit machines, and the Ia64 in the 64-bit machine.

Create a new text file, enter the following code, change the extension to bat at save time, and place it in the same directory as Devcon.exe

@echo off

devcon disable @ "usbroot_hub204&1a2797b1&2"

DevCon enable @ "Usbroot_hub204&1a2797b1&2"

Note: The above code is the first to implement the disable USB device and then enable. The long list of things you need to modify, by right-clicking on the "USB Root Hub" and selecting "Properties", then "details" and substituting "device instance ID" to replace the one in the above code. The final note is, "@" and double quotes, this is the key to success or failure!

Another: "Device instance ID" can use the wildcard "*", which represents any character. For example, you write a devcon disable @ "usb*", all USB devices (such as USB keyboard, mouse, etc.) will be disabled.

Well, later encountered in the first paragraph of the situation, just click on batch processing will be able to restart the U disk, you can directly unplug the U disk.

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.