I'm trying to find a way to disable and reenable USB ports on a Windows 10 21H2 machine that's permanently offline. I've tried using devcon.exe, but I'm not entirely confident it'll work since previous methods haven't produced results. The ultimate goal is to have the USB ports disabled after startup, to prevent unauthorized access via keyboard and mouse. I want to be able to enable them automatically for a limited time after reboot so I can still use them when necessary. I'm looking for suggestions on how to achieve this, possibly through scripts or BIOS settings, and would love any additional insights or recommendations!
1 Answer
You might want to consider alternatives like setting up Kiosk mode with an admin password, which can limit access to USB devices while still allowing you control. If you provide a bit more context about your system setup, there might be better solutions out there!

Even if I set up Kiosk mode, I’d still need to find a way to completely disable the USB ports to restrict access.