Home / Guide
Windows 10 and 11 administratorsHow to Disable USB Ports Using Group Policy: Step-by-Step Guide 2026
To disable USB ports using Group Policy, open gpedit.msc, go to Computer Configuration, Administrative Templates, System, Removable Storage Access, and enable All Removable Storage classes: Deny all access. Run gpupdate /force and replug a drive to test. This guide explains what that switch really blocks, why it fails on Windows Home, and how to prove it worked.
See our top recommendation →Group Policy blocks USB storage, not the electrical ports. Enable All Removable Storage classes: Deny all access under Computer Configuration, Administrative Templates, System, Removable Storage Access on Windows Pro, Enterprise or Education, then run gpupdate /force. Keyboards, mice and charging keep working. Windows Home needs a registry value or blocking software instead.
| Applies to | Windows 10 and 11 Pro, Enterprise and Education (Home has no Group Policy Editor) |
|---|---|
| Time needed | About 5 minutes on one PC; one GPO covers a whole organizational unit |
| Difficulty | Beginner on one PC, intermediate across a domain |
| Cost | Free, built into Windows |
| Needs | Local administrator rights, or rights to edit and link a GPO |
| Last verified | November 2026 |
On this page
Jump to the part you need
- Quick answer and requirements
- Why block USB ports
- Built-in Windows methods
- Step by step with Group Policy
- Free methods and registry fallback
- USB device classes
- Approved drives only
- Common mistakes
- Verify it worked
- Is this enough
- Office rollout
- Re-enable safely
- Our recommendation
- Pricing
- When the policy does not apply
- FAQ
How to Disable USB Ports Using Group Policy: Quick Answer
Disabling USB ports using Group Policy means denying access to removable storage classes, so flash drives and external disks stop working while keyboards, mice and power stay on. The setting is All Removable Storage classes: Deny all access, found in the Local Group Policy Editor on Windows Pro, Enterprise and Education.
A literal port shutdown is a firmware job. Group Policy works one layer higher, at the point where Windows decides whether a storage device may be read, written or installed. That distinction explains most of the surprises administrators hit later: a phone still charges, a drive that was already mounted still opens, and a Home edition PC has no editor to change anything.
This guide is for device owners and administrators acting lawfully on machines they manage. It covers the built-in methods first, then the registry fallback, then the checks that prove the block holds. The three deeper guides linked below own the details of failures, allow-lists and method choice.
Pick your path
What you need before starting
- Windows 10 or 11 Pro, Enterprise or Education for Group Policy
- Local administrator rights, or rights over the GPO
- A second admin account that will not be locked out
- One spare flash drive for testing
Microsoft lists the removable-storage policy settings for Pro, Enterprise, Education and IoT Enterprise editions. Windows Home has no Local Group Policy Editor, so the steps below need the registry route in the free methods section.
Why Block USB Ports at All
Blocking USB storage closes two practical risks: staff copying files onto personal drives, and malware arriving on an infected stick. Microsoft's own device-installation guidance says stopping thumb-drive installs cannot eliminate data theft, but it adds another barrier against unauthorized removal of company data.
Insider copying and insider risk basics
The common pattern is mundane. Someone needs a file at home, plugs in a personal drive, and the copy leaves with no record. A deny policy removes that path for storage devices on managed machines, and an audit policy records the attempts that remain. Neither needs a security budget; both start in the editor you already have.
How autorun malware spreads from USB drives
Worms such as Conficker used the AutoRun feature to launch code from flash drives. Microsoft changed Windows 7 so AutoPlay no longer shows an AutoRun task for non-optical removable media, and backported the change to XP and Vista through update KB971029. Its own advisory noted that some drives can pose as CD or DVD devices, which is one reason a storage policy still earns its place.
Turning off AutoRun does not stop a person opening a malicious file by hand. A deny policy blocks the drive itself, which is the stronger control.
Built-in Windows Methods Compared
Windows offers six built-in ways to restrict USB: removable-storage deny settings, device-installation restrictions, the USBSTOR registry value, Device Manager, firmware settings and Intune policies. Only the first two are manageable at scale through Group Policy, and only one needs no software on Windows Home.
| Method | Works on | Scope | Undo by | Main limit |
|---|---|---|---|---|
| Removable Storage Access deny settings | Pro, Enterprise, Education | Per computer or per user, domain-wide with a GPO | Set to Not Configured | Does not stop non-storage USB devices |
| Device Installation Restrictions | Pro, Enterprise, Education | Computer, by device ID or class | Disable the setting | Needs correct IDs; allow lists act only when the device is connected |
| USBSTOR registry value | All editions | One PC | Start back to 3 | Blunt: disables every USB storage device |
| Device Manager | All editions | One device instance | Enable device | Disabling a hub can cut off the keyboard |
| Firmware (BIOS or UEFI) settings | Hardware-dependent | Physical controller | Firmware menu | Needs a firmware password to mean anything |
| Dedicated blocking software (USB Block) | Windows | One PC per license | Password in the program | Paid, and another program to maintain |
| Verdict | Use the storage deny settings first on Pro and above. Use the registry value on Home. Add software when you need an allow-list screen or a usage report. | |||
Step-by-Step: Disable USB Ports Using Group Policy
The Local Group Policy Editor disables USB storage in six steps and about five minutes: open gpedit.msc, reach Removable Storage Access, enable All Removable Storage classes: Deny all access, run gpupdate /force, test with a drive, and confirm with gpresult. Each step below includes what to expect.
- Open the Local Group Policy EditorSign in as an administrator, press Win+R, type
gpedit.mscand press Enter. A missing editor means you are on Windows Home. - Go to Removable Storage AccessExpand Computer Configuration, then Administrative Templates, then System, and select Removable Storage Access. The computer-side copy covers every user of the PC.
- Enable the deny settingDouble-click All Removable Storage classes: Deny all access, choose Enabled, then Apply and OK. Microsoft advises not to combine this with the individual class settings.
- Refresh the policyRun
gpupdate /forcein an administrator Command Prompt. No restart is normally needed. - Test with a driveUnplug and reinsert a flash drive. Access should be denied. A drive that stayed connected may keep working until it is removed.
- Verify and write the rollback noteRun
gpresult /h report.html /scope computerand confirm the policy is listed. Record that Not Configured reverses it.
Which removable-storage setting to choose
Microsoft's removable-storage group offers separate deny settings for removable disks, CD and DVD, floppy, tape, portable devices and custom classes, each with read, write and sometimes execute variants. Pick the narrowest one that meets the goal. Deny write on removable disks stops copying out while letting staff read files in.
Start with Removable Disks: Deny write access on a pilot PC. Complaints reveal who genuinely needs a drive before you switch everything off.
When Removable Disks: Deny write access is enabled, the BitLocker setting that denies write access to unprotected removable drives is ignored, so encrypted drives lose write access too. Plan exceptions before you enable it.
Domain and multi-PC deployment
In a domain, open Group Policy Management, create a GPO, edit the same setting under Computer Configuration, and link it to the organizational unit that holds the target computers. Never link a first test to the domain root. Keep servers and your own admin workstation in a separate OU until the pilot passes.
Best Free Methods to Disable USB Ports Using Group Policy
Three free routes cover almost every Windows setup: the removable-storage deny settings for Pro editions, the USBSTOR registry value for Home, and Device Installation Restrictions for finer control. Choose by edition and fleet size, not by habit; the picker below recommends one in two clicks.
USB block method picker
Registry USBSTOR method explained
The USBSTOR service loads the driver for USB mass storage. Its Start value is 3 by default, meaning the driver loads on demand, and 4 disables it. Microsoft documents this value as a way to stop USB storage on a PC without the policy editor, and it is the realistic option on Windows Home.
:: Disable USB mass storage
reg add "HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR" /v Start /t REG_DWORD /d 4 /f
:: Re-enable USB mass storage
reg add "HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR" /v Start /t REG_DWORD /d 3 /fSetting Start to 4 does not eject a drive that is already installed and running. Remove it and restart before you test, or you will think the change failed.
Group Policy removable-storage deny settings as registry values
Each Group Policy deny setting writes a value under the Policies key, so you can script it. All Removable Storage classes: Deny all access maps to Deny_All. The class-specific settings use a subkey named for the device class GUID, for example the Removable Disks class.
Office USB policy generator
USB Device Classes: What You Are Really Blocking
A USB port carries many device classes, and Group Policy storage settings affect only some. Mass-storage drives are blocked, phones and cameras fall under a separate portable-device class, and keyboards, mice and printers keep working unless you deliberately restrict their classes through device installation rules.
USB device-class cheat sheet
| Device | Class | Storage deny settings | Charging |
|---|---|---|---|
| Flash drive, external disk | Mass storage | Blocked | Works |
| Phone in file-transfer mode | Portable device (WPD) | Blocked by the all-classes setting | Works |
| CD, DVD or floppy USB drive | Optical and floppy classes | Blocked by the all-classes setting | Works |
| Keyboard, mouse | Human interface device | Not affected | Works |
| Printer, scanner | Printer and imaging | Not affected | Works |
| Webcam, headset | Video and audio | Not affected | Works |
A malicious device can pretend to be a keyboard. Storage policies do not stop that, which is why device-installation rules matter on sensitive machines.
How to Allow Approved Drives Only
Allowing approved USB drives only means blocking every device class, then permitting specific hardware IDs. Windows evaluates instance IDs first, device IDs second, setup classes third and the removable flag last, and the allow entry takes effect only while that device is connected.
The full procedure, including how to read a hardware ID and a verified policy order, is in the dedicated guide: allow approved USB drives only. It also shows how to keep keyboards and mice working while storage stays blocked.
Common Mistakes When You Disable USB Ports Using Group Policy
Five mistakes cause most failed USB policies: testing on the admin workstation, disabling a hub rather than storage, forgetting drives already installed, mixing user and computer scope, and skipping the rollback record. Each is cheap to avoid with a pilot machine and a short checklist.
Do not
- Link the first test to the domain root
- Disable USB Root Hub in Device Manager
- Judge success without removing the drive
- Change settings with no rollback note
Do this instead
- Pilot on one OU with one test PC
- Use the storage classes only
- Replug the drive, then run gpresult
- Save the setting path and the undo step
The Block, Prove, Roll Back rule
| Gate | Question | Evidence to keep |
|---|---|---|
| Block | Is a test drive refused on the pilot PC? | Screenshot of the denied drive |
| Prove | Does gpresult list the policy? | Saved gpresult HTML report |
| Roll back | Can I restore access in two commands? | One-line undo written next to the setting |
Mixing User Configuration and Computer Configuration. A user-side setting follows the signed-in account, so an administrator who is not in scope can still use drives on the same PC.
How to Verify It Worked After You Disable USB Ports Using Group Policy
Verification takes three checks: a physical test with a flash drive, a gpresult report showing the policy under applied objects, and an audit trail in the Security log. If the first two disagree, the drive was probably mounted before the policy applied; replug it or restart.
gpupdate /force
gpresult /h gpreport.html /scope computer
auditpol /get /subcategory:"Removable Storage"Logging and auditing USB device activity
Turn on Audit Removable Storage under Advanced Audit Policy Configuration, Object Access. Windows then writes event 4663 when someone reads or writes on a removable drive. Failed attempts log as 4656, which also needs Audit Handle Manipulation. Device arrivals come from Audit PNP Activity as event 6416 on Windows 10 and later.
Event 4663 identifies the file, user and access type, but not the device serial number. Microsoft also advises against enabling removable-storage auditing on a file server that hosts shares on removable media, because the event volume climbs quickly.
If the policy refuses to apply, the failure-by-failure walkthrough is in why a USB policy is not applying.
Is This Enough? What Else to Do After You Disable USB Ports Using Group Policy
A storage deny policy is a strong first layer, not a finished defense. It leaves keyboards-emulating devices, network transfers, cloud uploads and administrators with edit rights untouched. Pair it with audit logging, an endpoint scan and a clear written USB rule for staff.
Risk score card: check your PC's USB exposure
Layers to add after the policy
Physical access is the hardest thing to police, and security researchers discuss attacks that depend on physical access to a port. A written rule, a locked case or firmware password for sensitive machines, and endpoint scanning address what a software policy cannot.
Policy Rollout Checklist for Multi-PC Offices
Rolling out a USB policy to an office works best in four stages: pilot group, verification, wider organizational unit, and a recorded rollback. Treat the checklist below as a working list; ticking items updates the count, and the page prints cleanly for the change record.
USB policy rollout checklist
USB blocking on shared, school and kiosk PCs
Shared machines benefit most from the computer-side policy because it ignores who signs in. Kiosks usually need the strict all-classes setting plus a locked firmware menu. Schools and libraries should confirm they are authorized to manage the device and publish the rule to users. Any covert monitoring is out of scope for this guide.
How to Re-enable USB Ports Safely
Re-enabling USB storage means reversing exactly the method you used: set the Group Policy setting to Not Configured and run gpupdate /force, or change the USBSTOR Start value from 4 back to 3 and restart. Always test with a spare drive before telling users the block is lifted.
You do not need to reinstall drivers. Windows reloads the USB mass-storage driver the next time a drive is connected after the block is removed.
Delete stray values if access does not return. A leftover Deny_All, Deny_Read or Deny_Write value under the Policies key can keep storage blocked after a half-finished edit. Export the key first, remove the value, and replug the drive. The rollback path for stubborn cases is covered in what to do when access does not come back.
The Tool We Recommend When Policy Settings Are Not Enough
When built-in settings fall short, we recommend USB Block's device allow-list and reports for Windows PCs. It adds one-click switches for USB drives, discs and network access, a list of authorized devices, activity reports and a password. It is a paid desktop program for single machines, not a domain tool.
USB blocking software: what it should cover
Good blocking software replaces three jobs Group Policy does clumsily: a visible on and off switch per device type, an allow-list you can edit without reading hardware IDs, and a log of what was plugged in. Per its documented screens, USB Block offers all three on one window, with protection that can also run in Safe Mode.
Where it fits and where it does not
We use it as the answer for Windows Home PCs, for home offices, and for single machines where an administrator wants a password-protected switch. We would not choose it to manage hundreds of domain PCs; a GPO or Intune policy is the better fit there. Its documentation does not describe central management, so we do not claim it.



Blocking software versus a policy setting
A policy setting is part of Windows and free; blocking software is a separate program with its own password and logs. Choose software when you need the allow-list screen or the report. Choose the policy when you manage many machines and want one source of truth. Many setups sensibly use both.
USB Block Compared With Other Control Options
Compared with other ways to control USB, USB Block suits single Windows PCs that need an allow-list and a report, Group Policy suits domains that need free central control, and Microsoft Intune or Defender device control suit organizations already managing devices in the cloud. Each has a licensing or scale trade-off.
| Criterion | Group Policy | Intune or Defender device control | USB Block |
|---|---|---|---|
| Best for | Domain-joined PCs | Cloud-managed fleets | Single PCs and home offices |
| Allow-list | By hardware ID with layered evaluation | Device IDs and classes in policy | Authorized devices list in the program |
| Usage report | Needs audit policy and event reading | Reporting in the Microsoft portals | Reports and logs tab in the program |
| Cost | Included with Windows | Requires Microsoft licensing | One purchase per PC |
| Windows Home | No | Check Microsoft's edition requirements | Works on Windows |
| Verdict | Group Policy first for domains, Intune where you already use it, USB Block where one PC needs a simple, password-protected control. | ||
The detailed comparison of policy, registry and software, with scenario picks, lives in choosing between policy, registry and software. Independent roundups such as this review of USB port locking tools and a list of free USB blocking software help you shortlist options.
What USB Block Does and Does Not Do
USB Block's documented features are four device switches, an authorized-devices list, reports and logs that keep the last hundred entries, and password settings with a stealth mode. It does not describe domain management, so it is a single-PC control rather than a replacement for Group Policy.
Best for
- Windows Home PCs
- Home offices and shared family PCs
- Owners who want a password on the switch
Not ideal for
- Hundreds of domain PCs
- Teams that need central dashboards
- Phones and tablets
The four switches stop unauthorized USB drives and memory cards, CDs, DVDs and floppy drives, network access to other computers, and non-system drives and partitions. Hack-attempt monitoring counts program deletion, uninstall and invalid password attempts, which matters when others share the machine.

Software-Based USB Blocking Step-by-Step
Blocking USB with USB Block takes five steps: download and install, open the control center, switch on the device types to block, set a password, and review the log. The window layout in each step follows the product's own screens.
- Download and installGet the Windows installer from the official download link and run it as an administrator.
- Open the control centerSelect the Control Center tab to see switches for USB devices, discs and floppy drives, network access and non-system drives.
- Switch on what to blockTick Block USB Devices, then confirm the status changes to Enabled.
- Set the passwordOpen Program Options, choose Change Password, and decide whether to turn on stealth mode and Safe Mode protection.
- Check the logOpen Reports and Logs to review device and usage reports, which keep the last hundred entries.


USB Block Pricing: What You Get
USB Block was listed at 49.95 USD as a one-time price on the official NewSoftwares store when we checked in November 2026. Its registration screen describes a registered version with no limit on blocked devices, and mentions discounts on multiple licenses for other computers. Check the store for current terms.
| Item | What the official pages show |
|---|---|
| Price shown | 49.95 USD, one-time (checked November 2026) |
| Registered version | Block as many devices as you want without restrictions |
| Extra computers | Additional licenses with multi-license discounts |
Is it worth it? If the PC runs Windows Pro, the built-in policy costs nothing and may be enough. If it runs Home, or you want the report and password, a single purchase is reasonable next to a half-day of scripting. Buy at the official NewSoftwares store.
Who Should Use Which Option
Match the method to the machine: Group Policy for Pro and domain PCs, the registry value for a single Home PC, Intune where devices are already cloud-managed, and USB Block where one Windows PC needs an allow-list, a report and a password. The table gives the first choice and an honest alternative for each user.
| User | First choice | Honest alternative |
|---|---|---|
| Home user on Windows Home | USBSTOR registry value | Blocking software for a password and log |
| Small office on Pro | Local or domain Group Policy | Software on the one PC that needs reports |
| Domain administrator | GPO linked to an OU | Intune where devices are cloud-managed |
| School lab or kiosk | All-classes deny plus locked firmware | Software with a password on single kiosks |
| Parent managing a family PC | Blocking software with a password | Registry value on a standard-user account |
When the Policy Does Not Apply
Six faults explain nearly every USB policy that appears to do nothing: a drive mounted before the policy, the wrong configuration scope, a missing editor on Windows Home, an untouched phone class, a GPO that never reached the computer, or a leftover registry value. The table maps each symptom to a first fix.
| Problem | Likely cause | First fix |
|---|---|---|
| Drive still opens | Mounted before the policy | Remove it, run gpupdate /force, replug |
| Keyboard stopped working | Hub or wrong class disabled | Revert the last change from another account |
| gpedit.msc not found | Windows Home | Use the USBSTOR registry value |
| Phone still transfers files | Only disk settings enabled | Use the all-classes setting or WPD settings |
| Domain PCs ignore the GPO | Link, filtering or scope problem | Run gpresult /r on the PC |
| Access will not return | Leftover Deny value | Remove the value and replug |
Quick troubleshooting checklist
The fault-by-fault guide with diagnostic order is on the dedicated page: fix a USB policy that is not applying.
More Answers on Disabling USB Ports
The remaining questions people ask about disabling USB ports with Group Policy come down to what the phrase means, which route is easiest, and what is realistic for free. The short answers below are written to stand alone; detailed procedures sit on the guides linked above.
Is it possible to disable USB ports using Group Policy?
Yes for storage, not for the ports themselves. Group Policy can deny access to removable storage and block installation of chosen device classes, but it cannot cut power to a connector. Physical shutdown belongs to firmware settings or a case lock.
Setting expectations this way saves a support call later: users still see a charging phone, and that is correct behavior.
What is the easiest way to disable USB ports using Group Policy?
The easiest and lowest-risk route is Removable Disks: Deny write access, because it stops copying out without disturbing input devices. Move to the all-classes deny setting only after a pilot shows nobody needs read access.
Start narrow, then widen. A restriction that nobody notices is easier to defend than one that breaks a printer queue on the first morning.
Can you disable USB ports using Group Policy for free on a home PC?
Only on Pro, Enterprise or Education editions, where the Local Group Policy Editor is included. On Windows Home the same outcome needs the USBSTOR registry value or a separate blocking program, and the registry value costs nothing.
Third-party roundups such as this walkthrough on disabling USB drives show the same options from an IT-management angle.
Frequently Asked Questions
These fourteen answers cover the questions administrators ask most when they disable USB ports using Group Policy, from the exact setting path to rollback. Filter by topic to narrow the list; every answer is also readable with scripts switched off.
Open gpedit.msc, go to Computer Configuration, Administrative Templates, System, Removable Storage Access, and enable All Removable Storage classes: Deny all access. Then run gpupdate /force from an administrator prompt and replug a drive to test. Keyboards, mice and charging keep working because the setting targets storage classes only.
Yes. The removable-storage deny settings and the device-installation restrictions are built into Windows Pro, Enterprise and Education, and cost nothing. On Windows Home you can use the USBSTOR registry value instead. Paid software only adds extras such as a friendly allow-list screen, password protection and usage reports.
The fastest route is the single setting All Removable Storage classes: Deny all access in the Local Group Policy Editor. On one PC it takes about two minutes, including gpupdate /force. For many PCs, create one GPO with that setting and link it to the organizational unit holding the computers.
Avoid four mistakes: applying the policy to your own admin workstation first, disabling a USB hub instead of storage, forgetting that already-installed drives need a replug or restart, and skipping the rollback note. Test on one pilot PC, record the setting path, and keep a way to reverse it.
Insert a flash drive and confirm Windows refuses access. Then run gpresult /h report.html /scope computer and confirm the policy appears under applied Group Policy Objects. For evidence over time, turn on Audit Removable Storage and watch the Security log for event 4663 on success and 4656 on failure.
Yes. Storage policies act on removable-storage classes, and keyboards and mice belong to the human interface device class, which these settings do not touch. The risk comes from blocking the wrong layer: disabling a USB hub or root controller in Device Manager can switch off your input devices as well.
No, charging continues. Storage policies control data access, not power delivery. Phones that transfer files appear as portable devices, a separate class, so All Removable Storage classes: Deny all access also blocks that file transfer, while the narrower Removable Disks settings leave it open.
Group Policy will not, because Windows Home ships without the Local Group Policy Editor. Two routes remain: set the USBSTOR service Start value to 4 in the registry, which stops the mass-storage driver loading, or use dedicated blocking software. Both need administrator rights and a tested undo.
Set the policy back to Not Configured, run gpupdate /force, and replug the device. If you used the registry route, change USBSTOR Start from 4 back to 3 and restart. Confirm access returns with a test drive, then document the change so the next administrator knows the state.
Yes, with device-installation restrictions. Prevent installation of all USB device classes, then allow the approved drive by its hardware ID and enable layered order of evaluation. Dedicated software offers an easier allow-list screen. The full procedure sits in the approved-drives guide linked from this page.
It sits under Computer Configuration, Administrative Templates, System, Removable Storage Access, with a matching copy under User Configuration. The computer-side copy applies to every user on the machine, so it is the better place to start for a shared PC.
Usually not. Run gpupdate /force, then unplug and reinsert the drive. A drive that was already mounted may keep working until it is removed. If a device still opens after a replug, restart the PC and check gpresult before assuming the policy failed.
A standard user cannot change a computer policy. A local administrator can edit local policy or the registry, and a domain GPO re-applies at the next refresh. Physical alternatives also exist: boot media or firmware settings. Treat policy as one layer, not a guarantee.
Not by itself. Enable Audit Removable Storage to log file access on removable drives (event 4663 for success, 4656 for failure). Audit PNP Activity records device arrivals as event 6416 on Windows 10 and later. Event 4663 does not list the device serial number.
Our Verdict
For most administrators, enabling All Removable Storage classes: Deny all access through Group Policy, then proving it with gpresult, is the right first move. Use the USBSTOR registry value on Windows Home, and add USB Block when a single PC needs a password-protected allow-list and a usage report.
The pattern that holds up is block, prove, roll back. Start on a pilot machine, keep the gpresult report, write the undo step beside the setting, and add audit logging so you can see what the policy stops. No setting replaces a written rule and physical care for sensitive machines.
Go deeper
Troubleshoot a policy that is not applying
Trace scope, link, refresh and device state in order.
Block every class, then permit one hardware ID.
Choose between policy, registry and software
Pick by scale, control and audit needs.
This guide is written by the NewSoftwares.net team, which develops USB Block. We cover free and built-in options alongside our own, and the Windows steps follow Microsoft's published documentation. Questions about the product can go to the developer through the NewSoftwares.net contact page.