← Back to blog

How to Block USB Ports on Windows 10 & 11 (4 Methods)

·Updated Nov 3, 2026·By WarnDesk Team
How to Block USB Ports on Windows 10 & 11 (4 Methods)

To block USB ports on Windows 10 or 11, the most common approach is to disable the USB mass-storage driver: set the Start value under HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR to 4, or enable the Group Policy "All Removable Storage classes: Deny all access." Both stop flash drives and external disks while leaving USB keyboards and mice working. For a team of PCs, device-control software adds central rules, read-only mode and alerts that the built-in methods lack.

This guide walks through all four methods, step by step, and shows which one fits which situation.

Why businesses block USB storage

A USB flash drive is the simplest way to move a large amount of data off a computer. It needs no internet connection, no login to a cloud service and, by default, leaves very little trace. That makes removable storage a priority for anyone thinking about data loss prevention for small teams.

The risks run in both directions:

  • Data going out — customer lists, source code, financial files or designs copied to a personal drive.
  • Malware coming in — an infected stick plugged into one PC can be the start of a wider incident.
  • Compliance — many contracts and security frameworks expect you to control removable media.

Before you start, note one important distinction: "blocking USB ports" usually really means blocking USB storage. You almost never want to disable the ports themselves, because keyboards, mice, headsets, webcams and docking stations use them too.

Before you change anything: you need administrator rights on the PC, you should back up the registry (or create a restore point), and you should test on one machine before rolling out. Make sure employees use standard (non-admin) accounts — anyone with admin rights can reverse every built-in method below.

Method 1: Disable USB storage with the Registry

This works on every edition of Windows 10 and 11, including Home. It disables the USBSTOR driver, which Windows uses for USB flash drives and external hard drives.

  1. Press Win + R, type regedit and press Enter. Approve the UAC prompt.
  2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR.
  3. Double-click the Start value (a DWORD).
  4. Change the value data to 4 (disabled). The default is 3 (enabled, loaded on demand).
  5. Click OK, then unplug any connected drives. Newly connected USB storage will no longer mount; a restart makes sure the change applies everywhere.

You can do the same from an elevated Command Prompt, which is handy for scripts:

reg add "HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR" /v Start /t REG_DWORD /d 4 /f

To re-enable USB storage, set the value back to 3.

What this does and does not block

  • Blocks: USB flash drives and USB external hard drives/SSDs that use the standard mass-storage driver.
  • Does not affect: USB keyboards, mice, printers, headsets or webcams — they use different drivers.
  • May not cover: phones connected as media devices (MTP), some built-in SD card readers, and devices that use other storage drivers. Test with the devices your team actually has.

The weakness is visibility. Nothing tells you when someone tried to plug a drive in, and you have to touch every PC individually (or script it) to apply or change the setting.

Method 2: Block removable storage with Group Policy

Group Policy gives you more control, including the option to block only writing. The Local Group Policy Editor (gpedit.msc) is available in Windows 10/11 Pro, Enterprise and Education — not in Home editions.

  1. Press Win + R, type gpedit.msc and press Enter.
  2. Go to Computer Configuration → Administrative Templates → System → Removable Storage Access.
  3. Open All Removable Storage classes: Deny all access, set it to Enabled and click OK.
  4. Run gpupdate /force from an elevated prompt, or restart the PC.

For finer control, leave the "all classes" policy alone and use the per-class settings in the same folder instead, for example:

  • Removable Disks: Deny write access — staff can open files from a USB drive but cannot copy anything onto it.
  • Removable Disks: Deny read access — blocks opening files from the drive.
  • WPD Devices: Deny read access / Deny write access — covers phones and media players connected as portable devices.
  • CD and DVD classes, if you still have optical drives.

The same settings exist under User Configuration if you want them to apply per user rather than per machine. In an Active Directory domain you can push them to many computers at once with a domain Group Policy Object, which is the main reason larger IT teams prefer this method.

Group Policy still gives you little visibility, though. You know what the rule is, not who tried to break it.

Method 3: Disable USB in Device Manager

Device Manager lets you switch off USB hardware directly:

  1. Right-click Start and choose Device Manager.
  2. Expand Universal Serial Bus controllers.
  3. Right-click a USB Root Hub (or a host controller) and choose Disable device.

This is the bluntest tool available. Disabling a root hub turns off everything on that hub — including USB keyboards and mice. On a desktop with no PS/2 ports you can lock yourself out of your own machine. It is also easy for an admin user to re-enable, it does not stop someone using a different port on another hub, and Windows can re-detect hardware after driver updates.

Some organisations go a step further and disable USB ports in the BIOS/UEFI firmware. That is very hard to bypass without a firmware password, but it is all-or-nothing, has to be done physically at each machine, and breaks peripherals. Reserve it for kiosks and locked-down terminals.

Method 4: Device-control software (central rules and alerts)

The built-in methods are fine for one or two PCs. Once you manage a team, you run into the same problems: no central view, no alerts, no per-person exceptions, and every change means visiting machines. That is the gap device-control software fills.

With WarnDesk USB and storage control, rules are set once in a web dashboard and applied to every enrolled Windows 10 and 11 PC:

  • Alert on any USB or removable drive — you see who plugged in what, on which PC, and when.
  • Read-only mode — staff can still copy files from a USB drive (a supplier's price list, a scanned document) but cannot copy company data onto it.
  • Per-company or per-employee rules — lock down most of the team while allowing an IT technician or designer the access they need.
  • File-to-USB visibility — part of WarnDesk's wider data loss prevention monitoring, alongside clipboard and print activity.
  • A central alert feed — restricted USB events land in one place with the rest of your instant alerts.

Because the agent reports to a cloud dashboard, rules also apply to laptops at home or on the road — useful for remote and hybrid teams that never touch your office network.

Comparison: which USB blocking method should you use?

MethodScaleGranularityReversibilityVisibility / alerts
Registry (USBSTOR)Per PC, or scriptedOn/off for USB storageEasy (set back to 3)None
Group PolicyPer PC, or domain-wide with ADPer class, read vs write, user vs machineEasy (set to Not Configured)None by default
Device Manager / BIOSPer PC, manualWhole hub or all portsManual at the machineNone
Device-control softwareWhole fleet from one dashboardPer employee, alert-only or read-onlyOne click in the dashboardReal-time alerts and history

Best practices for a USB policy that sticks

  • Write it down. Tell staff that removable storage is restricted and why. A clear policy prevents most "I didn't know" incidents — see how to monitor employee computers legally and ethically.
  • Offer an approved alternative. If people need to share files, give them a company cloud folder so they are not tempted to work around the block.
  • Remove local admin rights. Every built-in control can be undone by an administrator.
  • Start with alerts, then tighten. Watching for a couple of weeks shows you who genuinely needs USB access before you switch on read-only.
  • Cover the other exits. USB is only one channel. Uploads to personal websites and VPNs are others — website blocking and VPN detection close those gaps.

FAQ

Does disabling USBSTOR stop my USB keyboard and mouse?

No. Setting USBSTOR Start to 4 only disables the USB mass-storage driver. Keyboards, mice, headsets and webcams use different drivers and keep working.

How do I block USB drives on Windows 11 Home without Group Policy?

Use the Registry method — it works on Home, Pro and Enterprise. Alternatively, use device-control software that applies rules through its own agent rather than Group Policy.

Can I allow reading from USB drives but block copying to them?

Yes. In Group Policy, enable "Removable Disks: Deny write access." In WarnDesk, switch the employee or company to read-only USB mode, which lets them copy from a drive but not onto it.

Can employees get around a USB block?

Anyone with local administrator rights can reverse the Registry, Group Policy and Device Manager methods. Give staff standard accounts, and use alerts so you know when someone tries a blocked device.

Want central USB control with alerts and read-only mode across every Windows PC? Start a free WarnDesk trial — every feature is included on every plan.

W
Written by the WarnDesk Team

The people who build and support WarnDesk, the employee monitoring platform for Windows by The Great Technologies. Our guides are based on hands-on work with Windows fleets and are reviewed and updated as products and laws change. Nothing here is legal advice. About us

Explore WarnDesk

Employee monitoring software for Windows 10 & 11 — every feature on every plan, with a free trial.