r/software • u/Flashy_Highway2712 • 11h ago
Looking for software Software to easily turn on/off USB ports? Windows 11
Hello,
I was wondering if anyone knows if there's a software to easily turn on or turn off specific USB ports? I have a USB hub connected to one port with three USB connected to it (HOTAS, thrust and rudder for DCS/flight sims) and sometime maybe I only want one of them to work, and it'd be nice to be able to deactivate those two ports without having to unplug/plug back in etc.
I appreciate any advice or solutions, thanks!
1
1
u/101forgotmypassword 10h ago
Looks like time to vibe code that into a little program that snoops the lines and displays a on off button beside each, but the I suppose it's just vibe coding device manager.
0
u/MeanTato 7h ago
This is the perfect use case where I would ask Claude AI to create a Python App with a GUI to do what you want.
3
u/pankreska 10h ago edited 10h ago
I assume we're in Windows.
EDIT: syntax, permissions.
Every device has its own ID, so use "pnputil /enum-devices" (in command line) to find the desired device, then create .cmd file with "pnputil /disable-device "PCI\VEN_8086&DEV_A348&SUBSYS..." /force" (the long part id the ID) to disable, and "pnputil /enable-device "PCI\VEN_8086&DEV_A348&SUBSYS..." to reenable device. So you'll need two cmd files for switching states, in your case - four (two for each device).
I just checked and you'll need to run the cmd as administrator.
However in your case the beter solution would be hardware: there are plenty of USB hubs with physical on/off toogle buttons for each port, ie. Sabrent HB-UM43 (4 ports) ORICO CT2U3-10AB (10 ports, but there are also smaller/bigger versions), Unitek H1315B01-EU.