USB-C Port Lockdown

Home › Keep keyboard and mouse while blocking USB storage

Block USB Storage but Keep Your Keyboard and Mouse Working on a Laptop

The fear behind this question is a laptop that will not accept any input after the change. The way to avoid it is to block one device class, storage, and leave the input class alone. This page shows how to split the two, what to test first, and which Device Manager shortcut to avoid.

NewSoftwares.net editorial teamPublished November 2026Last verified: November 20266 min read

Quick answer

Block the storage class, not the USB controller. The Removable Storage Access policy and the USBSTOR registry value both stop drives while keyboards and mice, which use the human interface class, keep working. Avoid disabling USB root hubs, then test the pointer first after the restart.

At a glance
ItemDetail
Applies toWindows 10 and 11 laptops
Time neededAbout 15 minutes
DifficultyModerate
CostFree; software optional
Last verifiedNovember 2026
Diagram: storage class is blocked while keyboard and mouse class stays allowedTWO DEVICE CLASSES, TWO RESULTSMass storage classFlash drives, external disks, SD readersBlockedHuman interface class (HID)Keyboard, mouse, pointing devicesAllowedThe keep-list is written before the block is applied

Part of the guide to blocking USB-C ports on a laptop. The registry and policy steps are in the main methods section; this page explains how to keep input devices working.

Which Device Classes Stay Working When USB Storage Is Blocked

A storage block stops mass storage devices and leaves the human interface class, which covers keyboards and mice, untouched. Petri’s Windows guide explains that disabling the USB storage driver does not disable USB devices that are not storage. Class-level blocking is why this method is safe for input.

Windows loads a separate driver for each class. USBSTOR is the driver for mass storage, and the registry method stops that one driver from starting. A keyboard uses a different driver stack and never touches USBSTOR, so it cannot be affected by the setting.

Diagram: disabling a USB hub entry switches off the keyboard and storage together, while a storage-only block removes only storageHub-level disableUSB controllerKeyboardFlash driveStorage-only blockUSB controllerKeyboardFlash driveBoth lostOnly storage lost
A hub-level disable removes every device on that controller; a storage-only block removes storage alone.
Keep-list for a Windows laptop with USB-C ports
DeviceClassStorage block effectWhat to test
External keyboardHuman interfaceNoneType a sentence at the sign-in screen
Wireless mouse dongleHuman interfaceNoneMove the pointer, click once
USB-C hub card readerMass storageBlockedInsert a test card; it should not appear
HeadsetAudioNonePlay a sound
Phone chargingPowerNoneCheck the charging icon
PrinterPrinterNot affected by the storage settingPrint a test page

Two Methods That Keep Keyboards and Mice Working

The USBSTOR registry value and the Removable Storage Access policy are the two methods that keep input devices working because they act on storage only. The registry value runs on Home and Pro. The policy needs Pro, Enterprise or Education.

  1. Write the keep-list.Name the keyboard, mouse, headset, charger and monitor you use every day. This is the keep-list rule: write what must keep working before you block anything.
  2. Create a restore point.Search for Create a restore point in the Start menu. It gives you a rollback that does not depend on remembering a value.
  3. Apply the storage block.Use the registry value in PowerShell, or the policy in Group Policy. The main guide has both sets of steps.
  4. Restart and test the pointer first.Move the mouse, type at the sign-in screen, then insert a spare drive. A working pointer and a refused drive is the result you want.
  5. Confirm the rest.Test headset, charger and monitor from the keep-list, one at a time.
Hub-level disable can remove input

NinjaOne’s guide warns that disabling USB controllers in Device Manager can also switch off a keyboard or mouse plugged into the same ports. On a laptop, internal parts may also share a controller, so use this route only as a short test with a second input device ready.

Keep one fallback

Keep a wired keyboard that you know works and an on-screen route to Device Manager, such as the built-in keyboard and the touchpad, for the first test. A fallback turns a lockout into a two-minute fix.

Using Blocking Software While Keeping Input Devices

Blocking software chooses what to block by device type. USB Block’s official page lists the types it blocks: USB storage, discs, floppy drives, mapped network drives and non-system drives. Keyboards and mice are not on that list, which matches the class-level approach.

USB Block control window displayed on a desktop monitor with its summary of device status
USB Block’s main window as it appears on a monitor.

The page also says the software is for Windows 10, 8 and 7, and does not name Windows 11, so confirm support for your version before relying on it. For a closer look at the product, read the USB Block product page. A free trial, available from the NewSoftwares download page, lets you confirm that your keyboard, mouse and charger are unaffected before you buy. NinjaOne’s guide to disabling USB drives covers the Device Manager route and its keyboard risk.

Do this

  • Block the storage class
  • Keep a spare wired keyboard for the first test
  • Test the pointer before the drive

Not that

  • Disable every USB hub entry
  • Skip the restart
  • Test only with the drive that was already plugged in

See the main guide for the full device-class table and the three-signal verification test. If something still opens after the block, read why a USB-C port still works after you block it. For a deeper look at approved drives, see the allow-list page.

Frequently Asked Questions About Keeping Input Devices

Can I block flash drives but keep a wireless mouse dongle working?

Yes. A wireless mouse dongle presents itself as a human interface device, and the storage class is a different class. The USBSTOR registry method and the Removable Storage Access policy leave it alone. After the restart, move the pointer first, because that is the quickest proof that input survived.

Will a USB-C hub with an SD card slot keep its card reader?

No. The card reader inside a hub appears as a storage device, so a storage block stops it, while the hub’s other ports can keep working. Test the ports one by one after the restart. If you need the reader for yourself, an allow-list tool is a better fit than a class-wide deny.

Does a storage block affect Bluetooth on my laptop?

Normally not. Storage blocking targets one driver, and Bluetooth radios use a different one. Trouble appears when someone disables a whole USB controller in Device Manager, because internal parts can share it. If Bluetooth vanishes after a change, re-enable the controller entry you touched last.

What if my keyboard stops working after I block USB?

Use the built-in keyboard or the touchpad, open Device Manager and enable the controller entry you disabled last, then restart. If you used the registry method, the keyboard should not have stopped, so look for a hub-level change instead. Keep a spare wired keyboard for the first test.

Our Verdict on Keeping Input Devices While Blocking USB Storage

Block storage at the class level, keep a fallback keyboard, and test the pointer first. If you want a password and an allow list on top, USB Block is our recommendation for Windows laptops that its page supports.

This page is part of our guide to blocking USB-C ports on a laptop, published by the NewSoftwares.net team, the developer of USB Block. Free and built-in options are covered alongside our own.