USB Registry Keys Cheat Sheet: Paths, GUIDs and Values
Registry-based USB control is scattered across a service key, a policy key and a handful of class GUIDs. This page collects the verified paths, value names and GUIDs in one place, with read-only checks and a short test plan for each change.
USB storage is controlled by two registry locations: the USBSTOR service key, where Start = 4 disables the driver, and the RemovableStorageDevices policy key, where Deny_All = 1 blocks all removable classes and per-class GUID subkeys hold Deny_Read, Deny_Write and Deny_Execute.
| Locations | Services key and Policies key |
|---|---|
| Main values | Start, Deny_All, Deny_Read, Deny_Write |
| Edition | Home, Pro, Enterprise, Education |
| Needs | Administrator, then a restart |
| Last verified | November 2026 |
The two-location map
Two locations matter: the USBSTOR service key under Services, which switches the storage driver, and the RemovableStorageDevices key under Policies, which holds the same values Group Policy writes. The service key is a driver setting; the policy key is an access rule.
Keys and values at a glance
Four values cover nearly every case: Start under USBSTOR, Deny_All at the policy root, and Deny_Read and Deny_Write under a class GUID. Each takes a DWORD, with 1 meaning deny for the policy values and 4 meaning disabled for Start.
| Key | Value | Data | Effect |
|---|---|---|---|
HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR | Start | 3 default, 4 disabled | Loads or disables the USB storage driver |
HKLM\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices | Deny_All | 1 | Denies all removable storage classes |
| Same key, class GUID subkey | Deny_Read | 1 | Denies reading from that class |
| Same key, class GUID subkey | Deny_Write | 1 | Denies writing to that class |
| Same key, class GUID subkey | Deny_Execute | 1 | Denies running programs from that class |
Class GUIDs for the policy subkeys
Each removable storage class has a GUID that names its subkey under the policy key. Removable Disks uses {53f5630d-b6bf-11d0-94f2-00a0c91efb8b}, CD and DVD uses {53f56308-b6bf-11d0-94f2-00a0c91efb8b}, and phones use the two Windows Portable Device GUIDs listed below.
| Class | GUID |
|---|---|
| Removable Disks | {53f5630d-b6bf-11d0-94f2-00a0c91efb8b} |
| CD and DVD | {53f56308-b6bf-11d0-94f2-00a0c91efb8b} |
| Floppy drives | {53f56311-b6bf-11d0-94f2-00a0c91efb8b} |
| Tape drives | {53f5630b-b6bf-11d0-94f2-00a0c91efb8b} |
| Windows Portable Devices | {6AC27878-A6FA-4155-BA85-F98F491D4F33}{F33FDC04-D1AC-4E8E-9A30-19BBD4B108AE} |
Read-only checks you can run any time
Use read-only commands to see the current state before and after any change. They print values without writing anything, so you can run them as often as you need while troubleshooting, and paste the output into your notes.
# Prints Start; changes nothing
Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR" -Name Start# Shows Deny_ values if the key exists
Get-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices" -ErrorAction SilentlyContinueCopy-ready snippets
Two snippets cover the common cases: one blocks all removable storage through the policy key, and one denies only writes to removable disks while allowing reads. Save either as a .reg file, run it as an administrator, and keep the matching undo file beside it.
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices] "Deny_All"=dword:00000001
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices\{53f5630d-b6bf-11d0-94f2-00a0c91efb8b}]
"Deny_Write"=dword:00000001Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices] "Deny_All"=- [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices\{53f5630d-b6bf-11d0-94f2-00a0c91efb8b}] "Deny_Write"=-
A short test plan for every change
Test each change the same way: read the value, restart, test a drive, test a phone, test input devices, and read the value again. Six checks take about ten minutes and catch the usual failures, such as a typo in a GUID or a drive that was already connected.
Per-change test plan
Phones need their own test
Phones use the portable devices class rather than the removable disks class, so a disk policy can pass the flash drive test and still leave file transfer open.
Read the value before and after
Reading before and after shows whether anything rewrote it, which is the pattern described on the page about the Start value resetting to 3.

If you would rather not maintain keys by hand, compare the layers on the registry, policy and software comparison. For related reading on drive risks, the USB flash drive security best practices page is a useful starting point, and a guide to detecting and preventing USB data leaks covers the monitoring side.
Questions about USB registry keys
This section answers the lookups people repeat most when working with USB registry values: which key holds a setting, what a value does, which class GUID applies, and how to check or undo a change without damaging anything else on the PC.
Which registry key controls USB storage?
The service key HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR holds the Start value for the USB storage driver. A value of 3 is the default and 4 disables the driver. A separate policy key under Software\Policies\Microsoft\Windows\RemovableStorageDevices holds Deny_ values for removable storage classes. Export the key before editing it, so the original value is easy to restore.
What does Deny_All do?
Deny_All set to 1 under the RemovableStorageDevices policy key blocks all removable storage classes. CISA lists it in its countermeasure for blocking removable media, and it is the registry form of the Group Policy setting named All Removable Storage classes: Deny all access. A restart is the safe assumption after setting it.
What is the GUID for removable disks?
The removable disks class GUID is {53f5630d-b6bf-11d0-94f2-00a0c91efb8b}. Under the policy key, it is a subkey that can hold Deny_Read, Deny_Write and Deny_Execute values. Check the digits carefully, because a mistyped GUID creates a key that does nothing and shows no error.
Which GUIDs cover phones?
Phones in file-transfer mode appear as Windows Portable Devices. The commonly listed GUIDs are {6AC27878-A6FA-4155-BA85-F98F491D4F33} and {F33FDC04-D1AC-4E8E-9A30-19BBD4B108AE}. A Microsoft Q&A thread reports that the WPD policy was needed to block a phone when the disk policies alone did not. Test a phone separately after any disk policy, because passing the flash drive test does not prove file transfer is closed.
How do I read a value without changing it?
Use Get-ItemProperty in PowerShell with the key path and the value name, for example the USBSTOR path with the name Start. It prints the current number and changes nothing, which makes it safe for repeated checks while you troubleshoot. Regedit also shows the data in its right-hand pane.
Do I need administrator rights to edit these keys?
Yes. Both locations are under HKEY_LOCAL_MACHINE, and Windows refuses writes from a standard session without administrator approval. Reopen Registry Editor or PowerShell with the administrator prompt accepted, and export the key before changing anything. Keep the export somewhere other than the desktop of a shared PC, so you can import it later if the change needs undoing.
How do I remove a Deny value I added?
Delete the value in Registry Editor, or set it to 0, then restart. In a .reg file, a line that sets a value name to a minus sign deletes it on import. Remember to remove per-class values as well as Deny_All, since any of them can leave drives showing Access denied.
Related pages for the registry keys
These pages put the keys in context: the step-by-step registry procedure that uses the Start value, the explanation of why that value can revert to 3, and a comparison of registry, policy and software control for different PC counts.
Disable USB ports using Registry Editor
The full guide with steps, rollback and verification.
Start value resetting to 3
Find what keeps undoing your edit.
Registry, policy or software
A scorecard to choose the control layer.
Need a password and a log, not just a switch?
USB Block is our own Windows program for that job.