This guide shows you how to block USB storage devices (like flash drives and external hard drives) from being used on a Windows 10 computer. It covers three methods: using the Registry Editor, using the Local Group Policy Editor, and using Device Manager. You’ll need administrative rights to make these changes.
What You’ll Need
- An administrator account on the Windows 10 PC.
- Backup of important data (in case you need to revert changes).
Step-by-Step
Method 1: Using Registry Editor (Works on all Windows 10 editions)
- Press Windows + R to open the Run dialog.
- Type
regeditand press Enter. If prompted by User Account Control, click Yes. - Navigate to the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR - In the right pane, double-click the Start DWORD value.
- Change the Value data to
4(this disables the USB storage driver). Click OK. - Close the Registry Editor and restart the computer for the change to take effect.
Method 2: Using Local Group Policy Editor (Windows 10 Pro/Enterprise only)
- Press Windows + R, type
gpedit.msc, and press Enter. - Navigate to:
Computer Configuration → Administrative Templates → System → Removable Storage Access - In the right pane, double-click All Removable Storage classes: Deny all access.
- Select Enabled, then click OK.
- Close the Group Policy Editor. The change applies immediately (no restart needed).
Method 3: Using Device Manager (Temporary or per-device)
- Right-click the Start button and select Device Manager.
- Expand Disk drives or Universal Serial Bus controllers.
- Right-click on the USB storage device (e.g., a USB flash drive) and select Disable device.
- Confirm if prompted. The device will no longer function until re-enabled.
Common Mistakes
- Editing the wrong registry key: Ensure you are in
USBSTORunderServices, not a similarly named key elsewhere. - Setting the Start value to 0 instead of 4: 0 enables the driver, 4 disables it. Double-check the value.
- Using Group Policy on Windows 10 Home: gpedit.msc is not available on Home edition. Use the Registry method instead.
- Not restarting after registry changes: Some changes require a reboot to take effect.
Tips
- To re-enable USB storage later, set the Start value back to
3(manual) or1(enabled) in the registry, or set the Group Policy to Not Configured. - For a more selective approach, use Group Policy to deny write access but allow read access (set “Writes” to Deny).
- Test the setting with a USB drive to confirm it is blocked.
- Consider using BitLocker or other encryption for data protection if you are blocking USB for security reasons.
Troubleshooting
If USB storage still works after applying the changes:
- Check the registry value: Reopen
USBSTORand confirmStartis set to4. Sometimes it reverts due to Windows updates. - Check Group Policy precedence: If both Registry and Group Policy are used, Group Policy may override. Ensure the policy is set to Enabled and not Not Configured.
- Restart the computer: Some settings only apply after a full reboot.
- Check for third-party security software: Some antivirus or endpoint protection may override these settings.
- Ensure the USB device is actually a storage device: Phones, cameras, or other MTP devices may not be blocked by the USBSTOR driver.
Frequently Asked Questions
Will this block all USB devices (like keyboards and mice)?
No, the methods above specifically target USB storage devices. Keyboards, mice, and other peripherals will continue to work.
Can I still use a USB drive if I boot from it?
Yes, the USBSTOR driver is only loaded after Windows starts. Booting from a USB drive (e.g., to install Windows) bypasses this restriction.
Is there a way to allow specific USB drives while blocking others?
Yes, you can use Group Policy to set allowed device classes or use third-party software for more granular control. The methods above block all storage devices.
Will this affect USB ports used for charging?
No, charging still works because it is a hardware function, not dependent on the USBSTOR driver.
Can I disable USB storage temporarily without a restart?
Using Device Manager to disable the device works immediately. Registry changes typically require a restart or at least a driver reload.
Does this prevent data theft if someone steals the computer?
No, this only prevents USB storage from being used while Windows is running. A determined attacker could bypass it by booting from a live Linux USB or removing the hard drive. For full protection, use disk encryption.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Hogwarts Legacy Microsoft Visual C Runtime Error Fix
- Set Up UPI Payments Through WhatsApp
- Pair Oppo Enco Earbuds with Android, iPhone & Windows
- Fix Administrator Account Disabled Error in Windows 11
- How to Play Kodi on Smart TV from PC
- WhatsApp vs Facebook: Key Differences Explained