Work PC USB Lockdown
Home/Keyboard and mouse

Block USB Storage but Keep the Keyboard and Mouse Working on a Work PC

To block USB storage while keeping the keyboard and mouse working on a Windows work PC, deny the removable storage class instead of switching off the ports. Windows 10 and 11 treat input devices and storage as different classes, so one policy can stop flash drives while typing carries on.

Editorial TeamLast verified: November 20267 min read
Quick answer

Deny the removable storage class, not the USB hub. Enable All Removable Storage classes: Deny all access in Group Policy, or set USBSTOR Start to 4 on Windows Home, then restart. Test with a new drive, a keyboard and a mouse.

At a glance
Applies toWindows 10 and 11
Time needed10 minutes with testing
DifficultyEasy to moderate
CostFree with built-in tools
NeedsAdministrator account
Keyboard and mouse marked as allowed above a flash drive marked as blocked

Which USB devices keep working when you block storage

Keyboards, mice, headsets and webcams keep working because they use human-interface, audio and video classes, which storage policies do not touch. Flash drives and phones in file-transfer mode are the targets. The table lists what each of the two main methods affects, from Windows 10 and 11 documentation and testing practice.

What each block affects by device type
DeviceWindows classDeny all access policyUSBSTOR Start = 4
Keyboard, mouse, wireless receiverHuman interface deviceNoNo
Headset, microphone, webcamAudio and videoNoNo
Flash drive, external disk, memory cardMass storageYesYes
Phone in file-transfer modePortable deviceYesNo, a different driver
Printer or scannerPrinting and imagingNot listedNo
VerdictThe policy covers storage and phones; the registry value covers only the storage driver. Neither touches input devices.

Microsoft describes the portable-device class as including media players and smartphones, which is why the policy catches phones that the registry value alone may not. Details on both methods are in our main guide to blocking USB ports.

Flow: the storage class is denied while keyboard and mouse input classes keep working Storage class Policy denies Keys work

Test that input devices survived the block

After a storage block, test input devices before you close the administrator session: type in a text box, click, then plug in a headset and a never-used flash drive. Four checks take under five minutes and catch the one setting, a disabled root hub, that can lock you out.

  1. Restart the computer

    The storage policy does not apply until Windows restarts.

  2. Use the keyboard and mouse

    Type your password and click a few items. If they respond, the class split worked.

  3. Plug in a new drive

    No drive letter should appear in File Explorer.

  4. Plug in audio and video devices

    A headset and webcam should still be recognised.

Input-device test checklist

0 of 4 completed

What a fake keyboard does to a storage block

A device that pretends to be a keyboard bypasses every storage policy, because Windows trusts input devices by default. Keystroke-injection tools such as the USB Rubber Ducky send commands as typing, so a storage block alone does not stop them. Physical control and allow-lists are the answer.

Security vendors describe these tools as human-interface-device exploits: they look like a keyboard, so a block on storage does not see them. That is an honest limit of the approach on this page, not a reason to skip it, because ordinary data theft by flash drive is far more common.

Do not assume

That a storage policy makes every USB port safe. Input-device trust is a separate gap.

Do instead

Lock the screen when away, limit who can reach the ports, and use an allow-list for devices where policy supports it.

Named rule: class, list, lock
  1. Class: deny the storage classes you do not need.
  2. List: allow only the devices you do need.
  3. Lock: lock the screen and the ports you can reach.

Keyboard stopped working after blocking USB: what to check

If a keyboard stopped after you blocked USB, the likeliest cause is a disabled USB root hub or controller in Device Manager rather than the storage policy. Re-enable the hub, restart, and block the storage class instead. Tutorials warn that Device Manager changes can disable input devices sharing the same ports.

Four-step timeline: apply the block, restart, type to test input, plug in a drive to test storage1Apply2Restart3Type4Plug drive

Plug the keyboard into a different port, or use the on-screen keyboard from Settings, Accessibility, Keyboard to reach Device Manager. Expand Universal Serial Bus controllers, right-click the disabled entry, and choose Enable device. One independent tutorial that covers this risk is NinjaOne's guide to disabling USB drives.

Tip

Keep a second administrator account and a wired keyboard available while you test a block on a remote or kiosk PC.

When blocking software handles the split for you

Blocking software can make the keyboard question a non-issue: USB Block's documented targets are storage devices, discs, network drives and non-system drives, not input devices. So installing it blocks drives behind a password while keyboards and mice carry on. It is Windows-only and not antivirus.

That fit suits a single PC where editing policy is more effort than it is worth. USB Block's page lists what it blocks and its supported Windows versions; confirm Windows 11 support there before installing.

Install only the build from the developer's own site, and restart once to confirm keyboards and mice still respond.

Questions about keeping input devices working

Six questions cover wireless receivers, hubs, printers, phones and fake keyboards, which are the doubts that come up most after a storage block is applied. Each answer assumes Windows 10 or 11 and an administrator account.

{{

Yes. A wireless receiver reports itself as an input device, not as storage, so a storage-class block leaves it alone. Plug it in after the restart and type to confirm. If a receiver stops responding, look for a root hub you disabled in Device Manager rather than a policy.

Not directly. The removable storage policies list CD and DVD, floppy, removable disks, tape drives and portable devices such as phones. Printers are not on that list. Test your own model, because a multifunction printer with a memory-card slot can expose a storage part.

Yes. A hub passes traffic and is not storage, so keyboards and mice plugged into it keep working. Drives plugged into the same hub are still blocked, because the policy follows the device class, not the port it uses. Test a docking station's built-in card reader separately.

Charging continues, because power from the port needs no storage driver. What stops is file transfer: a phone in file-transfer mode is a portable device, and the all-classes policy blocks it. Set the phone to charge-only mode for the cleanest result.

No. A device that identifies itself as a keyboard is treated as input, so a storage policy never sees it. Reduce the risk with physical port control, locked screens and an allow-list that restricts which keyboard hardware may install on that PC.

Both leave input devices alone when set correctly. The registry value USBSTOR Start = 4 touches only the storage driver. The Group Policy class setting touches only removable storage classes. The riskier move is disabling USB root hubs in Device Manager, which can cut off keyboards.

}}

Next step: block storage and keep typing

Pick one method, restart, and run the four-point test before closing your administrator session. Keep the undo value written down beside the change, along with the date, so a later administrator can reverse it without guessing which layer was applied.

If you want a password prompt and approved-drive list on one PC, try the software option; otherwise the policy route in the main guide is enough.

Try USB Block free →

Part of our guide to blocking USB ports on a work computer. The NewSoftwares.net team publishes this page and develops USB Block; free and built-in options are covered alongside it.