Disable USB Storage How-To
Six USB device classes and how a storage block treats eachOne storage block, six device classesFlash driveMass storageExternal SSDUAS, test itPhoneWPD, own policyKeyboardHID, untouchedPrinterPrinter classUSB hubHub class

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.

Published: November 2026Last verified: November 2026NewSoftwares.net editorial teamReading time: 7 min

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.

Base class codes from the usb.org defined class list
CodeClassTypical device
01hAudioHeadsets, speakers
02hCommunications and CDC ControlModems, serial adapters
03hHIDKeyboards, mice
06hImageCameras, scanners
07hPrinterUSB printers
08hMass StorageFlash drives, card readers
09hHubUSB hubs
E0hWireless ControllerBluetooth adapters
FFhVendor SpecificAnything 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.

Two parallel paths: flash drives through USBSTOR and phones through portable devices
WPD Devices deny write
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices\{6AC27878-A6FA-4155-BA85-F98F491D4F33}" /v Deny_Write /t REG_DWORD /d 1 /f

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

A drive-shaped device reporting the keyboard class, which a storage block does not stop

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.

Matrix showing which of three block controls reaches flash drives, SSDs, phones, keyboards and printers
Class-gap lookup: device, control that reaches it, action
DeviceControl that reaches itAction
Flash drive, card readerUSBSTOR or Removable Disks denyApply either, then restart
External SSDRemovable Disks deny, test firstPlug in a real SSD and read the result
Phone or cameraWPD Devices denyEnable both read and write settings
Keyboard, mouseDevice allow-listing by IDNeeds careful testing
Printer, hub, audioNot needed for storage policyLeave 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.

Block not working

A five-rung ladder for drives that still mount.

→

Multi-PC rollout

Pilot, deploy and audit a policy.

→