Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

GPO USB Settings: Block or Allow USB Drives in Windows

· 5 min read · Home Tech

In this article
  1. Setting the USB policy
  2. Which setting blocks what
  3. Signs the policy is working
  4. One misconception worth clearing up
  5. Rule of thumb
  6. When the drive still works

Yes, Group Policy (GPO) can control USB storage on Windows: the key setting is Removable Disks: Deny read access and Deny write access under Computer Configuration > Administrative Templates > System > Removable Storage Access. Applied from a domain controller or a local policy, it blocks or permits USB drives across every machine the policy reaches.

Time 20 min · Steps 7 · Level Advanced

Setting the USB policy

  1. Open Group Policy Management. On a domain controller, open Group Policy Management from Administrative Tools; on a single PC, press Windows key + R, type gpedit.msc and press Enter. Labels can differ slightly between Windows versions.
  2. Create or pick a policy object. In a domain, right-click the organizational unit holding your target computers and choose "Create a GPO in this domain, and link it here." Give it a clear name such as "USB storage policy." Locally, skip this step and edit the machine policy directly.
  3. Navigate to Removable Storage Access. In the editor, go to Computer Configuration > Administrative Templates > System > Removable Storage Access. This folder holds every USB-related rule in one place.
  4. Choose the deny rule you need. Open "Removable Disks: Deny read access" to stop files being copied off the machine, "Removable Disks: Deny write access" to stop files being copied onto USB drives, or "All Removable Storage classes: Deny all access" to block USB drives entirely.
  5. Enable the setting. Select Enabled, click Apply, then OK. "Not Configured" leaves the drive working normally, and "Disabled" explicitly turns the restriction off, which is useful for overriding another policy.
  6. Link and scope the policy. Confirm the GPO is linked to the right organizational unit and, if needed, use the Security Filtering or Delegation tab to apply it only to certain computer groups. Target computers, not users, for hardware rules.
  7. Force a refresh and test. Run gpupdate /force on a target machine, then plug in a USB drive. A blocked drive either does not appear in File Explorer or shows an access-denied message, depending on which rule you enabled.

Which setting blocks what

Pick the rule that matches the outcome you want, because they act at different points. "All Removable Storage classes: Deny all access" is the blunt tool: the drive is invisible to the machine entirely. The "Removable Disks" rules are narrower and hit only USB mass-storage drives, so a USB keyboard, mouse or printer keeps working either way. "Removable Disks: Deny read access" lets a user save a file to a drive but not open one from it; "Deny write access" does the reverse, which is the common choice when you want people to bring files in but not take files out.

One setting people look for and misname is CD and DVD: it sits in the same Removable Storage Access folder as its own read and write rules, along with tape drives and WPD devices such as some phones and cameras. If a phone over USB is the concern, the WPD rules are the ones to check, not the Removable Disks rules.

Signs the policy is working

After a refresh, look for these signals on a target machine:

  • The USB drive is missing from This PC in File Explorer, or appears but returns an access-denied message when opened.
  • Copying a file to the drive fails with a write-protected or permission error, while reading existing files still works (write deny only).
  • Running gpresult /h report.html from a command prompt shows your GPO listed under Applied Group Policy Objects with the setting name visible.
  • Event Viewer, under Windows Logs > Application, records the policy name in the Group Policy operational events when the refresh happens.

One misconception worth clearing up

A common belief is that GPO USB settings work per user, so one person can keep using drives while a colleague on the same PC cannot. The hardware deny rules in Removable Storage Access are computer-side settings: they apply to the machine, and every account on it, once the policy lands. If you truly need per-user control, the practical route is a separate organizational unit or security group that excludes that user's machines, or a dedicated shared machine left out of the policy's scope. The second misconception is that these settings stop a phone charging or a mouse working; they do not, because they target storage classes, not the whole USB bus.

Rule of thumb

Use "Deny all access" on machines that should never see a USB drive, "Deny write access" where the worry is data leaving, and "Not Configured" everywhere else. Test on one machine before rolling a new GPO across a whole unit, and keep one administrative account or one exempt machine outside the policy so a mistake does not lock out every port at once. When a policy misbehaves, unblock by setting the rule to Disabled rather than deleting the GPO, then run gpupdate /force again; the change is easier to reverse and leaves an audit trail in the editor.

When the drive still works

If the drive mounts after the policy is applied, work through the likely causes in order. First, confirm the GPO is linked to the organizational unit containing that computer, not the user's unit, since these are computer settings. Second, run gpupdate /force and reboot: some hardware policies need the restart, not just the refresh. Third, check that another GPO higher in the link order is not setting the same rule to Disabled, which overrides your Enable. Fourth, verify the drive is a removable disk rather than a fixed-disk USB device, because some large external drives report as fixed disks and slip past the Removable Disks rules; in that case the "All Removable Storage classes" rule is the one that catches them. Finally, on a standalone home PC, remember that gpedit.msc is only available on Pro, Enterprise and Education editions of Windows, so a Home machine needs a different approach entirely, such as blocking the device in Device Manager or adjusting removable storage permissions in the registry.

Official source: Microsoft Support