USB Schedule How-ToUSB ScheduleHOW-TO See Our Top Pick →

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.

  • By the NewSoftwares.net editorial team
  • Last verified: November 2026
Quick answer

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.

Keyboard and mouse icons beside a blocked flash drive icon
At a glance
Applies toWindows 10 and 11
Time needed5 minutes
DifficultyEasy
CostFree
Needs adminYes
Last verifiedNovember 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.

Tree diagram splitting USB devices into human interface and storage branches
Two branches, two drivers.
Which USB devices a storage block affects
DeviceDriver familyBlocked?
Wired keyboardHuman interfaceNo
Wired mouseHuman interfaceNo
Wireless dongleHuman interfaceNo
Flash driveMass storageYes
External hard diskMass storageYes
Smartphone file transferPortable devicesOnly with a separate rule
Block storage only (admin)
reg add HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR /v Start /t REG_DWORD /d 4 /f

Keep 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.

Allow list diagram with one approved device passing a storage block
One approved device among blocked ones.
Disabling a hub to stop a stick

A hub in Device Manager carries every device behind it. Disable one and your keyboard goes with it. Block the storage driver instead.

Recovery if input stops

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.

Always keep a way in

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.

  1. Type and click

    Confirm the keyboard and mouse respond before and after the block runs.

  2. Plug in a flash drive

    It should not appear in File Explorer while blocked.

  3. Plug in a phone

    Note whether it charges and whether file transfer is offered. Charging usually continues.

  4. Restart

    Confirm the setting survives a reboot and the keyboard still works at the sign-in screen.

  5. 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.

Get USB Block →

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.