Force Windows to Remove and Re 您所在的位置:网站首页 win10卸载usb驱动后无法识别u盘 Force Windows to Remove and Re

Force Windows to Remove and Re

2024-04-25 13:39| 来源: 网络整理| 查看: 265

Solution

This behavior occurs when the device loses power, but the computer does not. 聽For example, often when a computer goes into standby or power-save mode it will often shut down power to the USB ports. 聽Also, this can happen when a computer returns from having been hibernated. 聽In either case, the device is not re-detected by the computer and thus you will not be able to communicate with it.

Follow the instructions below to re-detect the device within Windows when this happens:

Install the DevCon Utility聽 from Microsoft. 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.

You will now need to determine which USB hub (port) the troubled device is connected to. To do this, expand the Universal Serial Bus controllers group at the bottom of the list. You can double click on every USB Root Hub entry and click the Power tab to see if your device is listed.

When you have found the hub that has your device listed, click the Details tab and select Device Instance Id from the drop down menu. If you are running Windows 7 or Windows 10, select Device Instance Path instead of Device Instance Id. Record the name shown in the list between the first and second \ sign, for example ROOT_HUB20

Next, start a Command Prompt by going to聽StartRun,聽type in聽cmd, and聽then click the聽OK聽button.In the聽Command Prompt聽window, first change directory to the folder that contains the聽devcon.exe聽file that you downloaded. If you are using a 64-bit operating system, you need to ensure you are calling the 64-bit version of聽devcon.exe.聽聽Once you have navigated to the proper directory, type in 聽the following command followed by enter, replacing聽ROOT_HUB20聽with what you recorded in step 4:聽devcon restart *ROOT_HUB20*聽

Note:聽If your user interface devices such as a mouse or keyboard, or any other USB devices such as a USB Network Adapter are on the same root hub as the USB device you are trying to re-detect, then you will lose connectivity to your mouse or keyboard while the restart is performed.

Now, Windows will remove and re-detect the hub and any聽USB devices attached to it, re-enabling them in the process. If this does not work,聽you probably selected the wrong hub in step 4.聽聽Repeat steps 3 - 6 until the restart is successful.Once you know which root hub your device is connected to, you can implement this solution programatically in LabVIEW using the聽System Exec VI, which allows you to pass commands to the command prompt. The聽System Exec VI聽can be found in the Libraries and Executables Palette.


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有