JSI Tip 9097. How can I enable or disable a specific USB ROOT_HUB instance from the command-line?


In tip 4628 ยป How do I manage devices via a command line, Microsoft discussed the Devcon.exe utility.

If you need to enable and/or disable a specific USB ROOT_HUB instance from the commands line, locate the instance as a sub-key of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\ROOT_HUB.

Using the @ to define that the string you are providing is an instance, and the ^ to escape the &, I was able to use the following commands:

devcon disable @USB\ROOT_HUB\4^&1CD314EF^&0

devcon enable @USB\ROOT_HUB\4^&1CD314EF^&0



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish