Home › Device classes › What a storage block stops
USB Device Classes in Windows: What a Storage Block Stops
A storage block is a class decision. Learn which of six common device types it reaches, which need their own setting and which it never touches.
Part of our guide to disabling USB storage devices in Windows. The storage steps live in the step-by-step section.
Quick Answer: Which Classes a Storage Block Reaches
A storage block reaches Mass Storage class 08h and little else. Flash drives are covered, external SSDs need a test, phones need the WPD setting, and keyboards, printers and hubs never feel it. Knowing the class tells you which control applies before you script or buy anything.
- Reached by a storage block
- Mass Storage 08h, including flash drives
- Needs its own setting
- Phones and cameras on the Portable Devices path
- Never reached
- HID, printers, hubs and audio
- Needs a test
- UASP external SSDs
Mass Storage, UASP and the Drivers Behind Them
The usb.org class list gives Mass Storage the base code 08h, and Windows binds it to Usbstor.sys. USB Attached SCSI drives use a faster protocol, and Windows 8 and later load Uaspstor.sys for them instead. That split is why one setting can cover a stick and still miss an SSD.
| Code | Class | Typical device |
|---|---|---|
| 01h | Audio | Headsets, speakers |
| 02h | Communications and CDC Control | Modems, serial adapters |
| 03h | HID | Keyboards, mice |
| 06h | Image | Cameras, scanners |
| 07h | Printer | USB printers |
| 08h | Mass Storage | Flash drives, card readers |
| 09h | Hub | USB hubs |
| E0h | Wireless Controller | Bluetooth adapters |
| FFh | Vendor Specific | Anything the maker defines |
Background on removable media and how operating systems treat it is summarised in an overview of removable media.
Phones, Cameras and the Portable Device Path
Phones in file-transfer mode speak MTP, and many cameras speak PTP, so Windows files them under Windows Portable Devices instead of disks. A phone can be blocked with the WPD Devices deny settings, or by the registry values for the portable devices subkey, without touching ordinary flash drives.
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices\{6AC27878-A6FA-4155-BA85-F98F491D4F33}" /v Deny_Write /t REG_DWORD /d 1 /fCharging stays available, since power does not depend on the data class.
Keyboards, Mice and the HID Exception
Keyboards and mice report class 03h, HID, which no storage setting touches. That keeps your input working during a block, and it also leaves a gap, because a device can claim to be a keyboard while being something else. Storage blocking never inspects the class a device reports.
Printers, Hubs and Audio Devices
Printers use class 07h, hubs use 09h and audio devices use 01h, and none of them depends on the storage driver. A block on drives therefore leaves printing, headsets and docking hubs alone, which is usually what an office wants. Hubs carry the other devices, so avoid disabling them.
If a docking station contains a card reader, the reader follows the storage rules while the dock’s hub, ports and network adapter do not.
Class-Gap Map: Match Each Class to a Control
The class-gap map pairs each device type with the one setting that reaches it. Filter the lookup below to a family, and any row that reads leave alone or needs testing is a gap. Gaps are where a policy needs a second layer, such as device allow-listing or physical port control.
The Class-Gap Map
List each device type your office uses, find the single control that reaches it, and mark any row with no control as an open gap. The gaps are your real risk list.
| Device | Control that reaches it | Action |
|---|---|---|
| Flash drive, card reader | USBSTOR or Removable Disks deny | Apply either, then restart |
| External SSD | Removable Disks deny, test first | Plug in a real SSD and read the result |
| Phone or camera | WPD Devices deny | Enable both read and write settings |
| Keyboard, mouse | Device allow-listing by ID | Needs careful testing |
| Printer, hub, audio | Not needed for storage policy | Leave alone |
When Class Rules Are Not Enough
Class rules trust what a device reports, so offices that need stricter control add a device allow list. The vendor’s USB Block page describes whitelisting your own devices, and a published USB malware protection guide covers BadUSB-style risks that class rules leave open.
See the USB Block product page for what it blocks, and this USB malware protection guide for the risks class rules miss.
Drives you do allow can carry a password layer too: USB Secure password-protects whole USB drives.
Device Class Questions Answered
Six questions cover what people ask about classes: codes, keyboards, phones, card readers, optical drives and misreported classes. Each answer names the class involved and the setting that reaches it, so you can decide without reading the entire specification.
What is the USB class code for a flash drive?
Flash drives use base class 08h, Mass Storage, as listed by usb.org. Windows binds that class to the USBSTOR driver, or to Uaspstor.sys when the drive speaks USB Attached SCSI. Keyboards sit at 03h and printers at 07h, which is why a storage setting never reaches them.
Does a storage block stop a USB keyboard?
No. Keyboards use the HID class, 03h, and the storage drivers are not involved. That is useful, since you keep input, and it is also the gap: a device that reports itself as a keyboard passes through a storage block untouched.
Can Windows block phones but allow flash drives?
Yes. Phones in MTP or PTP mode use the Windows Portable Devices class, which has its own deny read and write settings. Enable those two and leave the Removable Disks settings alone, and flash drives keep working while phones lose file transfer.
Are SD card readers covered by a storage block?
Usually yes. Most USB card readers present themselves as mass storage, so the same drivers and policies apply as for a flash drive. A reader built into the laptop rather than attached over USB may follow a different path, so test it separately.
Do USB optical drives count as removable storage?
Windows policy lists CD and DVD as their own class under Removable Storage Access, and the Deny all setting covers it. A USB optical drive may therefore need the CD and DVD deny setting as well as the disk settings, so test with a disc.
Why would a device report the wrong class?
A composite device exposes several interfaces at once, such as storage plus a keyboard, and a malicious device can report whatever it likes. Class-based blocking trusts the report. Allow-listing by device ID narrows that trust but needs more upkeep, so decide which devices truly need it.
More USB Storage Guides
Two pages continue from the class map. The troubleshooting page covers blocks that do not hold, and the rollout checklist covers applying a working policy to many computers. Either can follow this page, depending on whether you are fixing a block or deploying one.