Laptop USB LockLaptop USBLOCKSee Our Top Pick →
Home / Device classes
Laptop USB Lock

USB Device Control on Laptops: Block Storage, Keep Input

Keyboards, drives and phones use different device classes. Blocking one does not have to cost you the others.

Quick answer

Block the mass-storage and portable-device classes. Leave the human interface class alone. For one approved drive, allow its hardware ID through device installation restrictions. Test on a spare laptop with a second administrator account first.

  • Published by the NewSoftwares.net team
  • Last verified 21 November 2026
  • Windows laptops
Hub icon with keyboard, drive, printer, phone and dock connected around a USB symbol

USB Device Classes on a Laptop at a Glance

Windows sorts USB devices into classes: mass storage, human interface, printers, portable devices and optical drives. Each class has its own policy handle. The handles do not overlap, so storage-only blocking works.

USB device classes and the control that reaches them
ClassTypical devicesControl that reaches it
Mass storageFlash drives, external disks, card readersRemovable Disks policy, USBSTOR
Human interfaceKeyboards, mice, some headsetsDevice installation restrictions
PrintersUSB printers and scannersDevice installation restrictions, Defender device control
Portable devicesPhones and cameras in file-transfer modeWPD Devices policy
OpticalUSB CD and DVD drivesCD and DVD policy

Which Control Handles My Device?

Pick a device below to see the class it uses and the control that reaches it. The answers match the table above and update without leaving the page.


Keep the Keyboard and Mouse Alive

Keyboards and mice use the human interface class, so a storage rule leaves them alone. The risk comes from catch-all rules. A rule that blocks every device not described elsewhere hits input devices unless you allow them first.

When you do use a catch-all, add an allow for the keyboard and mouse setup classes. Their class GUIDs are published in Microsoft’s documentation and look like this:

Keyboard  {4d36e96b-e325-11ce-bfc1-08002be10318}
Mouse     {4d36e96f-e325-11ce-bfc1-08002be10318}
HID       {745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Test before you rely on it

Verify each GUID against Microsoft’s list on a spare laptop. One wrong character leaves a catch-all rule unopposed.

Allow-Listing by Hardware ID, Step by Step

Allowing a single drive means reading its hardware ID, adding it to an allow policy and blocking the rest. The path is Computer Configuration, Administrative Templates, System, Device Installation, Device Installation Restrictions.

Allow-list flow where a device ID is checked against approved drives and then allowed or blockedAllow listOffice drive ABackup disk BAdd device IDPolicy checkID on the list?AllowedBlocked
An allow list checks each device ID, then allows or blocks it.
  1. Read the ID

    Plug in the approved drive. In Device Manager, open its Details tab and copy the first Hardware Ids line.

  2. Allow the ID

    Enable Allow installation of devices that match any of these device IDs and paste the string.

  3. Allow input classes

    Enable Allow installation of devices using drivers that match these device setup classes and add the GUIDs above.

  4. Block the rest

    Enable Prevent installation of devices not described by other policy settings.

  5. Restart and test

    Check that the approved drive mounts, a second drive does not and the keyboard still types.

Dock, Hub and USB-C Edge Cases

A dock is a hub with devices behind it, so class rules apply to each one. A storage block stops a drive in the dock. The dock’s Ethernet and display outputs carry on.

Do not block the hub class to control a dock, because the keyboard and network adapter ride on it. Thunderbolt and USB4 ports add a separate exposure: direct memory access. Check System Information for Kernel DMA Protection, and remember Microsoft states it does not cover FireWire, PCMCIA, CardBus or ExpressCard.

Class Control for a Shared or Kiosk Laptop

A shared laptop needs the class block plus a standard daily account, because an administrator can undo the policy. Keep the allow list short. List only the scanner, card reader or drive the job requires.

Keep one administrator account with a long password stored apart from the machine. Keep a list of approved hardware IDs and their owners. Review it when a device is retired. A dedicated USB blocking program offers the same split with a password gate if policy editing is not practical.

If a rule locks you out, the recovery ladder for locked USB ports shows how to climb back.

Device Class Questions

Five questions cover the policy scope, hardware IDs, catch-all rules, docks and shared laptops. Those are the places where class control most often surprises people.

Which device classes does the Removable Storage Access policy cover?

It covers removable disks, CD and DVD drives, floppy drives, tape drives, WPD devices such as phones, and custom classes added by GUID. Keyboards, mice and printers fall outside it. That is why a storage deny rule leaves input working. Printers need a device installation rule.

Where do I find a device’s hardware ID?

Open Device Manager, right-click the device, choose Properties and open the Details tab. Select Hardware Ids in the property list. The first line is the most specific. Copy it exactly, since the installation restriction policies compare strings character by character and a typo silently fails to match.

What happens if I block all devices not described by other policies?

Windows refuses every device you have not allowed by ID or setup class. That includes a new keyboard or the dock you forgot. Allow the keyboard, mouse and HID setup classes first. Test on a spare laptop with a second administrator account before applying it to the one you rely on.

Does a USB-C dock need special handling?

Yes. A dock is a hub with devices behind it, and each device carries its own class. Blocking storage stops a drive in the dock, while the dock’s Ethernet adapter and monitor outputs keep working. Blocking the hub class would cut the keyboard, mouse and network together.

How should a shared or kiosk laptop be set up?

Use a standard account for daily work. Deny removable disks and WPD devices through policy, and keep an administrator account for changes. Add an allow list only for devices the kiosk needs, such as a scanner. Record the hardware IDs of those devices in a file kept apart from the laptop.

Last verified: 21 November 2026 against Microsoft documentation. Published by the NewSoftwares.net team.