RudiDudi
RudiDudi

Reputation: 455

Enable/Disable USB-Port

I have to disable a specific USB-port with a program or a .bat or a .vbs file.

This program would have to check if the port is enabled, disable this, and if is disabled, enable it.

How can I do this?

Upvotes: 0

Views: 4971

Answers (1)

Ansgar Wiechers
Ansgar Wiechers

Reputation: 200493

You should be able to do this with devcon. Note that if you're using Windows 7 you must use the version included with the Windows Driver Kit. Earlier versions will not work correctly on Windows 7.

Upvotes: 2

Related Questions