Block USB Storage but Keep Your Keyboard and Mouse Working
The aim is to stop flash drives and keep input devices alive. Windows treats those as different device classes, so one targeted switch does the first job without touching the second.
Set the USBSTOR Start value to 4 and leave Device Manager alone. Keyboards and mice use the human interface class, so they keep working. Do not disable generic USB hubs or controllers, because that cuts off the input devices that share them.
| Applies to | Windows 10 and 11 |
|---|---|
| Time needed | 5 minutes |
| Difficulty | Easy |
| Cost | Free |
| Needs admin | Yes |
| Last verified | November 2026 |
Why Input Devices Survive a Storage Block
Windows loads a separate driver for each device class. The storage block targets the mass storage driver, so the human interface driver behind keyboards and mice is never touched.
| Device | Driver family | Blocked? |
|---|---|---|
| Wired keyboard | Human interface | No |
| Wired mouse | Human interface | No |
| Wireless dongle | Human interface | No |
| Flash drive | Mass storage | Yes |
| External hard disk | Mass storage | Yes |
| Smartphone file transfer | Portable devices | Only with a separate rule |
reg add HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR /v Start /t REG_DWORD /d 4 /fKeep Specific Devices Working With an Allow List
A class-level block cannot say yes to one stick. For that you need device ID rules or software with a whitelist, kept separate from the keyboard question.
A hub in Device Manager carries every device behind it. Disable one and your keyboard goes with it. Block the storage driver instead.
Keep a PS/2 keyboard or use the Windows on-screen keyboard from the sign-in screen, then undo the last change.
Edge Cases Worth Testing
Four edge cases catch people out: combined dongles, docks, laptops with built-in card readers and remote desktop sessions. Test each one that exists in your setup before relying on the block.
Combined wireless dongles
Some dongles carry a small storage area alongside the receiver. The receiver keeps working under a storage block, and the storage part is refused, which is usually what you want.
Docks and hubs
A dock presents several functions at once. Input, display and network functions are unaffected by the storage value. A card reader in the dock is storage, so it is blocked.
Built-in card readers
Many laptop card readers appear as USB storage internally. They can go quiet after the block, which can surprise a photographer. Decide in advance whether that is acceptable.
Remote sessions
Redirected drives in a remote desktop session follow separate rules. The local block does not decide what the remote machine allows, so check both ends.
Keep the list short and honest: only devices you actually own and use belong on it. Write down which of these exist on your machine before you start. A two-line note of devices and ports saves guessing later, and it is the first thing a helper will ask for.
Before you test, make sure you have a second input route: a PS/2 keyboard, a laptop keyboard or the on-screen keyboard. It costs nothing and saves a long recovery.
A Five-Minute Test Plan
Run the same five checks after every change: keyboard, mouse, flash drive, phone and a reboot. The whole plan takes five minutes and catches the common surprises before users do.
Type and click
Confirm the keyboard and mouse respond before and after the block runs.
Plug in a flash drive
It should not appear in File Explorer while blocked.
Plug in a phone
Note whether it charges and whether file transfer is offered. Charging usually continues.
Restart
Confirm the setting survives a reboot and the keyboard still works at the sign-in screen.
Open the storage again
Run the open task and confirm the same drive now mounts.
Input Device Questions
Five answers about keeping keyboards and mice alive during a storage block.
No. The USBSTOR value only affects the mass storage driver, and keyboards use the human interface device class, which has its own driver. They keep working, including at the sign-in screen. The risk comes from disabling hubs or controllers in Device Manager, which you should avoid.
You most likely disabled a USB hub or controller in Device Manager, which takes everything on it down. Re-enable it using a PS/2 keyboard or the on-screen keyboard from the sign-in screen, then change the storage value instead. Never test with your only input device.
No. Mouse and keyboard dongles present as input devices and keep working. Some combined dongles also show a small storage area that holds drivers; that part would be refused under a storage block, which is normally harmless. Test your own model once to be sure.
Not directly. Docks bundle several functions, and only the storage part, such as a card reader, is affected. Display and network functions carry on. Because docks vary by maker and firmware, plug yours in during the test and check each function in turn.
Yes, and a storage block does not stop that, because the device presents itself as an input device. Physical control of ports, device allow lists and endpoint tools address that case. Treat a storage block as one layer and keep antivirus and port access controls in place.
After the test: lock in the setting
Return to the main guide for the full schedule: how to schedule when USB ports are blocked. Other pages: frequently asked questions and our recommendation. If you want a password and a log behind your schedule, read about USB Block; to protect the data on a drive that leaves the building, see USB Secure.
This guide is published by the NewSoftwares.net team, the developer of USB Block. We recommend our own product alongside other methods. Recommendations reflect our editorial assessment.