Lock USB ports, but keyboard and mouse in USB.
brucine Posted messages 25275 Registration date Status Member Last intervention -
Hello,
I want to lock the USB ports of my PC during an absence of a few days. I have seen several solutions for this (modifying the registry, device manager). But my keyboard and mouse are connected to USB ports. So how will I be able to unlock the USB ports without using my keyboard and mouse after my return? Thank you for your solution, my PC is running Windows 10.
Borneo67.
- Mouse cursor moves but clicking is impossible
- "True" right click without a mouse (physical or virtual keyboard)?
- Blocked - blue screen (keyboard/mouse not working anymore)
- Unable to use keyboard and mouse - startup
- Kernel PNP Error - USB Ports Not Working / Windows 10
- Pin code A1B2C3 locked and rejected by Windows
2 answers
-
You need to lock everything down by specifying an exception for your keyboard and mouse with their UID and GUID.
-
Hello Steph810,
Glad to know there is a solution, thank you. To specify an exception, should I lock it through regedit or through the device manager, how do I find the UIDs and GUIDs? Thank you and have a good day.
-
Hello,
If we block all USB ports, we indeed find ourselves at a standstill; if we keep the ones for the keyboard and mouse active, nothing prevents a user from plugging in something else unless we specifically specify the type of device allowed.
The approach of positively identifying the mouse and keyboard ID in the registry (and thus negating the rest) is complicated.
It's better to modify the registry through a local security policy, but you need Windows 10 Pro or to activate this policy using a suitable utility like Policy Plus Latest: https://github.com/Fleex255/PolicyPlushttps://www.it-connect.fr/comment-bloquer-les-cles-usb-par-gpo/
-