How to Turn Off USB Storage on Windows – Step by Step Guide
In this article
Yes, you can turn off USB storage on Windows by disabling the USB mass‑storage driver or using Group Policy, which stops the system from recognizing USB flash drives.
What You’ll Need
- A Windows PC (Windows 10 or Windows 11)
- Administrator privileges
- Access to the Device Manager or the Local Group Policy Editor
Step‑By‑Step
- Log in to an account that has administrator rights. If you are not sure, right‑click the Start button, choose Computer Management, then select Local Users and Groups to verify your group membership.
- Open the Device Manager. The quickest way is to press Win + X and select Device Manager from the menu. On some systems the wording may be Device Manager under System.
- In Device Manager, expand the Universal Serial Bus controllers node. You will see a list that includes items such as USB Root Hub (USB 3.0) and USB Mass Storage Device.
- Locate any entry that contains the words Mass Storage or USB Storage. Right‑click that entry and choose Disable device. Confirm the prompt that appears.
- If you have multiple mass‑storage entries (for example, one for each USB controller), repeat the previous step for each one. Disabling all of them ensures that no USB flash drive will be recognized.
- Close Device Manager and restart the computer. The change takes effect after the reboot.
- If you prefer a policy‑based approach, press Win + R, type
gpedit.mscand press Enter. This opens the Local Group Policy Editor. (Note: gpedit is not available on Windows Home editions; in that case use the Device Manager method.) - Navigate to Computer Configuration > Administrative Templates > System > Removable Storage Access. The exact path may differ slightly depending on Windows version, but the folder name Removable Storage Access is consistent.
- Find the policy named All Removable Storage classes: Deny all access. Double‑click it, set it to Enabled**, and click OK. This blocks read/write access for all removable storage, including USB drives.
- Close the Group Policy Editor and restart the PC. After the restart, Windows will no longer mount USB storage devices.
- To re‑enable USB storage, reverse the steps: either enable the disabled devices in Device Manager or set the policy back to Not Configured in the Group Policy Editor.
Common Mistakes
Many users try to uninstall the USB drivers instead of disabling them. Uninstalling removes the driver from the system, which can cause Windows to reinstall it automatically the next time a USB device is plugged in, effectively undoing the change. Disabling keeps the driver present but inactive, which is the intended outcome.
Another frequent error is disabling the wrong entry, such as a USB Root Hub. Doing so can cause loss of functionality for keyboards, mice, or other USB peripherals that rely on the same hub. Always look for the specific Mass Storage label before disabling.
On Windows Home editions, some users attempt to open gpedit.msc and receive an error that the tool is unavailable. In that case, the Device Manager method is the only supported way without third‑party software.
Tips
- Before disabling any device, create a System Restore point (search for "Create a restore point" in the Start menu) so you can roll back if something goes wrong.
- If you need to allow USB storage for a specific user or computer, use the Group Policy method and create a separate policy under User Configuration that grants access only to the designated accounts.
- For corporate environments, consider using Microsoft Endpoint Manager (Intune) to push the same policy to many machines simultaneously.
- When testing, plug in a USB flash drive after each change to verify that the device is truly blocked.
- Keep your Windows updates current; a future update may reset certain driver settings, requiring you to repeat the disable step.
Troubleshooting
If the USB drive still appears after disabling the driver, try the following sequence:
- Open Device Manager again and click View > Show hidden devices. Some mass‑storage drivers are hidden after being disabled; ensure they are still in a disabled state.
- Check the Services console (Win + R, type
services.msc). Look for the service named Shell Hardware Detection. If it is stopped, start it, because this service is responsible for auto‑mounting removable media. - Verify that the Group Policy change has been applied. In a command prompt, run
gpresult /h result.htmland open the generated HTML file. Search for "Removable Storage Access" to confirm the policy is listed as "Enabled". - If the policy appears but the device still mounts, run
gpupdate /forcefrom an elevated command prompt, then reboot. - Ensure no third‑party security software is overriding Windows settings. Some endpoint protection suites have their own removable‑media controls that can re‑enable access.
If none of the above resolves the issue, consider restoring the system to a point before the changes were made, then repeat the steps carefully, double‑checking each device you disable.
Frequently Asked Questions
Will disabling USB storage affect my mouse or keyboard?
No. The mouse and keyboard use the HID (Human Interface Device) driver, not the Mass Storage driver. As long as you only disable entries that contain "Mass Storage," other USB peripherals will continue to work.
Can I disable USB storage on a laptop without losing the ability to boot from a USB stick?
Yes. The methods described only block the operating system from mounting storage devices after Windows starts. The BIOS/UEFI firmware still sees the USB stick during the boot sequence, so you can still boot from it if needed.
Is there a way to allow a single USB drive while blocking all others?
Windows does not provide a built‑in whitelist for individual USB devices. You would need third‑party endpoint‑management software that supports device‑ID based allow lists.
Do these steps work on Windows 7?
The Device Manager method works on Windows 7. The Group Policy path is slightly different (Computer Configuration > Administrative Templates > System > Removable Storage Access still exists), but the policy name is the same.
Will disabling USB storage affect external hard drives?
Yes. Any device that presents itself as a USB mass‑storage class, including external HDDs and SSDs, will be blocked. If you need those drives, re‑enable the driver or create a separate policy for the specific machine.
Can I revert the change without a restart?
Disabling or enabling a device in Device Manager takes effect immediately, but Windows may still cache the device state. A quick log‑off and log‑on often refreshes the view, but a full restart guarantees the change is applied consistently.