How to Block USB Ports in Windows 10: Step-by-Step Guide 2026
Blocking USB ports in Windows 10 means stopping removable storage, and optionally phones, from opening on a PC while keyboards and mice keep working. Windows 10 22H2 has four built-in ways to do it, and this guide covers each one, how to confirm it worked and how to undo it.
On Windows 10 Pro, open gpedit.msc, go to Computer Configuration > Administrative Templates > System > Removable Storage Access, enable All Removable Storage classes: Deny all access and restart. On Home, set the USBSTOR Start value to 4 in the registry and restart.
| Applies to | Windows 10 22H2: Home, Pro, Enterprise, Education |
|---|---|
| Time needed | 5 to 10 minutes plus a restart |
| Difficulty | Easy for Group Policy, moderate for registry |
| Cost | Free with built-in tools |
| Needs | Administrator account, restart, restore point |
| Last verified | November 2026 |
In this guide
- Quick answer
- What you need first
- Why block USB ports
- Free methods
- Step by step
- Methods compared
- Approved drives only
- Common mistakes
- Verify it worked
- When ports still respond
- What else to do
- Our recommendation
- Blocking software compared
- Software tutorial
- USB malware blocker
- Cost and trial
- Re-enable safely
- Who should use which
- FAQ
- More answers
- Our verdict
How to Block USB Ports in Windows 10: Quick Answer
To block USB ports in Windows 10, open the Local Group Policy Editor on Pro and enable All Removable Storage classes: Deny all access, or set the USBSTOR Start value to 4 in the registry on any edition. Both stop flash drives and external disks after a restart while keyboards and mice keep working.
Windows 10 22H2 is the last release of the operating system, so every menu path in this guide applies to it. Microsoft ended support for Windows 10 on October 14, 2025, which makes closing the USB route a little more worthwhile, because the platform no longer gets free security fixes. The sections below start with what you need, then work through each method, and finish with the checks that prove the block holds.
Pick your path
- I want the exact steps for Pro or Home.
- My drive still opens after the block: causes and fixes.
- I need to undo the block and get my ports back.
- I want to weigh Group Policy against blocking software.
What do you need help with?
What you need before you start
You need an administrator account on Windows 10 version 1809 or later, a restore point, and a list of devices that must keep working, usually the keyboard, mouse and printer. Windows 10 Pro, Enterprise and Education include the Group Policy Editor; Home does not and relies on the registry.
Windows edition: Home versus Pro
| Edition | Group Policy Editor | USBSTOR registry value | Device Manager |
|---|---|---|---|
| Home | Not included | Works | Works |
| Pro | Included | Works | Works |
| Enterprise and Education | Included | Works | Works |
Admin rights and a rollback plan
Every method below writes to protected settings, so run them from an administrator account. Before the first change, type Create a restore point in the Start menu, choose System Protection, and click Create. Then note the original values: the USBSTOR Start value is normally 3, and the removable-storage policy is normally Not Configured.
A restore point and a second administrator account turn a mistake into a five-minute fix. If you disable a USB root hub on a PC whose keyboard is USB, the second account will not help, but a restore point booted from Windows recovery will.
Create the restore point
Name it with the date and the word USB so you can find it later.
Write down what must keep working
Keyboard, mouse, printer, headset, webcam. These are the devices you will test after the restart.
Keep one drive aside for testing
Use a spare flash drive that was never plugged into this PC, so that Windows has no driver cached for it.
Why Block USB Ports at All
USB flash drives move data in and out of a Windows 10 PC without leaving a network trail, which is why they appear in insider data theft and in malware that spreads from drive to drive. Blocking removable storage closes that route on a shared, family or kiosk PC without touching the keyboard or mouse.
Three situations account for most blocks. A shared home PC where visitors plug in drives of unknown origin. A small office where client files should not leave on a thumb drive. A public or kiosk machine where nobody should be able to bring in software. In each case the aim is the same: the PC should read only drives you approve.
Malware that rides on removable drives needs a person or the PC to open something from the drive. Blocking storage stops the PC mounting the drive at all, so a disguised file never gets the chance to run. It is a narrow defence, and the malware section below explains where it stops.
How USB port blocking differs from disabling a single device
Disabling a single device in Device Manager turns off one item, and disabling a port or controller turns off every device behind it, keyboard included. Blocking a storage class is different again: it leaves every socket powered and stops only drives from opening. Most readers want the class block.
Blocking USB ports in Windows 10 switches the sockets off.
The built-in policies block a device class. Only Device Manager and BIOS switch off a controller or port, and both can disable a USB keyboard.
Risk score: is your PC exposed through USB?
Tick every statement that is true for this PC.
Best Free Methods to Block USB Ports in Windows 10
Windows 10 ships four free ways to block USB: a Group Policy setting on Pro, the USBSTOR Start registry value on any edition, a Deny_All registry policy value, and Device Manager or a BIOS option that switches off whole ports. The first three block storage only; the last switches off hardware.
Group Policy
Difficulty: easy. Time: 3 minutes. Best for: one Pro PC or a domain.
Single setting, fully reversible. Not on Home.
USBSTOR Start = 4
Difficulty: moderate. Time: 2 minutes. Best for: Home PCs and scripts.
Stops the storage driver itself. Needs a restart.
Deny_All value
Difficulty: moderate. Time: 3 minutes. Best for: mirroring the policy without the editor.
Documented by CISA as a countermeasure for removable media.
Device Manager
Difficulty: easy but risky. Best for: a PC with no USB keyboard.
Disables whole hubs, so it can take keyboards with it.
BIOS or UEFI
Difficulty: moderate. Best for: physical lockdown.
Only some makers offer the switch, so check your manual.
What is the easiest way to block USB ports in Windows 10?
The easiest way is the Group Policy setting on Pro, because it is one checkbox and the undo is setting it back to Not Configured. On Home, the easiest way is the USBSTOR Start value, which is one number in one registry key and works on every edition.
Can you block USB ports in Windows 10 for free?
You can block USB storage in Windows 10 for free with tools already installed. Group Policy, the registry and Device Manager cost nothing. What the free tools lack is a per-drive allow-list that does not need hardware IDs and a record of what was plugged in, and those are the gaps software fills.
Is it possible to block USB ports in Windows 10 in 2026?
Yes, every method here still works on Windows 10 22H2 in 2026. Microsoft ended support on October 14, 2025 and extended consumer Extended Security Updates to October 12, 2027, so the operating system keeps receiving patches only through that program. The policy and registry values themselves did not change.
Why choose Group Policy
- One setting, clear name
- Easy to roll out through a domain
- Overrides the per-class rules
Why it may not suit you
- Missing from Home
- Blocks every drive, no exceptions
- No log of attempts
Step-by-Step: Block USB Ports in Windows 10
The steps differ by edition. On Pro, enable one policy in the Local Group Policy Editor. On any edition, set the USBSTOR Start value to 4 or add the Deny_All value, then restart. Phones that appear as portable devices need extra WPD rules, covered in the third tab below.
Method 1: Local Group Policy Editor (Pro, Enterprise, Education)
Open the editor
Press Win + R, type
gpedit.mscand press Enter. Approve the administrator prompt.Go to the policy
Open Computer Configuration > Administrative Templates > System > Removable Storage Access.
Enable the deny rule
Double-click All Removable Storage classes: Deny all access, choose Enabled, then Apply and OK. Microsoft documents that this setting overrides the per-class rules.
Optionally force the restart
Enable Set time (in seconds) to force reboot and enter a value such as 3600. Without a forced reboot, the change takes effect only after the next restart.
Restart and test
Restart Windows, then plug in your spare drive. Windows detects it but refuses access.
Method 2: Registry USBSTOR Start value (every edition)
Open Registry Editor
Press Win + R, type
regeditand press Enter. Export the key you are about to edit with File > Export.Find the USBSTOR key
Browse to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR.Change Start from 3 to 4
Double-click Start, select Hexadecimal or Decimal (both show 4), enter 4 and click OK. A value of 3 is the default that lets the driver load on demand.
Restart and test
After the restart no drive letter appears for a new flash drive, because the storage driver no longer loads.
:: Block USB storage (Start = 4)
reg add HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR /v Start /t REG_DWORD /d 4 /f
:: Undo (default Start = 3)
reg add HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR /v Start /t REG_DWORD /d 3 /fMethod 3: The Deny_All policy value in the registry
Create the key HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices if it is missing, add a DWORD (32-bit) value named Deny_All and set it to 1. CISA lists this value as a way to disable removable-storage access. Several guides say it works on Home, but Microsoft documents the matching policy only for Pro, Enterprise and Education, so rely on Start = 4 there.
Phones, cameras and portable devices
A phone that connects as a portable device belongs to the Windows Portable Devices class, and one Microsoft Q&A thread reports that Deny all access alone did nothing for an Android phone. In Group Policy, enable the two WPD Devices policies for deny read and deny write as well. In the registry, write Deny_Read and Deny_Write under the WPD class GUID {6AC27878-A6FA-4155-BA85-F98F491D4F33}.
Policy generator: build the registry snippet
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices]
"Deny_All"=dword:00000001
; To undo: set each value to dword:00000000 or delete it, then restart.Method 4: Device Manager and BIOS for whole ports
In Device Manager, expand Universal Serial Bus controllers, right-click a USB Root Hub or host controller and choose Disable device. Everything behind that controller stops, including a USB keyboard, and on some PCs the Disable option is greyed out. BIOS or UEFI setup may offer a switch for USB ports; check your maker's manual because options differ.
Do not disable USB root hubs on a desktop whose keyboard and mouse are USB. Use the storage methods above, or test on a PC with a PS/2 or Bluetooth keyboard first.
Allow keyboard and mouse while blocking storage
Group Policy and both registry methods already do this, because they act on storage classes. A USB keyboard, mouse, headset or webcam uses a different driver and keeps working after a restart. Only Device Manager and BIOS switches risk cutting input devices, since they work on controllers.
Built-in Windows Methods Compared
Group Policy is the clearest method on Pro, the USBSTOR value is the dependable method on Home, and Device Manager is the riskiest because it works on controllers. Device Installation Restrictions add an allow-list but need hardware IDs. The table scores each method on difficulty, protection, cost, fit and limits.
| Method | Difficulty | Security | Cost | Best for | Limitations |
|---|---|---|---|---|---|
| Group Policy: Deny all access | Easy | Medium | Free | Pro PCs and domains | Not on Home; phones need WPD rules |
| Registry: Deny_All | Moderate | Medium | Free | Scripted rollouts | Microsoft documents the policy for Pro and above |
| Registry: USBSTOR Start = 4 | Moderate | Medium | Free | Home PCs | Storage only; restart needed; an administrator can change it back |
| Device Installation Restrictions | Hard | High | Free | Short allow-lists on Pro | Hardware IDs; blocks future installs only unless told otherwise |
| Device Manager: disable hub | Easy | Low | Free | PCs without a USB keyboard | Kills every USB device behind it; easy to undo |
| BIOS or UEFI switch | Moderate | Medium | Free | Physical lockdown | Not offered by every maker |
| Dedicated blocking software | Easy | Medium | Paid | Allow-lists, logs, Home PCs | Extra program to install and trust |
| Verdict | Pick Group Policy on Pro, USBSTOR on Home, and add software only when you need an allow-list or a log. | ||||
Method picker
The three-question rule
- Edition first. Home rules out the Group Policy Editor.
- Exceptions second. Any approved drive or phone rules out a plain deny-all.
- Evidence third. If you need a record of plugged devices, built-in tools cannot supply one.
USB device class cheat sheet
Choose a method to highlight what it affects.
| Device | Deny all access | USBSTOR Start = 4 | Hub disabled |
|---|---|---|---|
| Flash drive, external disk | Blocked | Blocked | Blocked |
| CD, DVD media | Blocked | Not affected | Blocked if USB |
| Phone as portable device | May need WPD rules | Not affected | Blocked |
| Keyboard, mouse | Works | Works | Stops working |
| Printer | Works | Works | Stops working |
How to Allow Approved Drives Only
To allow only approved drives on Windows 10 Pro, enable Prevent installation of devices not described by other policy settings, then allow each approved drive by hardware ID under Device Installation Restrictions. Copy the ID from Device Manager, Details, Hardware Ids. The rule blocks new installs, not drives Windows already knows.
One approved drive, step by step
Collect the hardware ID
Plug the approved drive in, open Device Manager, right-click the drive under Disk drives, choose Properties > Details > Hardware Ids and copy the first, most detailed line. The pnputil command
pnputil /enum-devices /idslists the same data.Open the restriction policies
In the Group Policy Editor go to Computer Configuration > Administrative Templates > System > Device Installation > Device Installation Restrictions.
Allow the ID, then prevent the rest
Enable Allow installation of devices that match any of these device IDs and add the ID. Then enable Prevent installation of devices not described by other policy settings.
Test with a second drive
The approved drive should open and a different drive should be refused.
Selecting the option to apply the rule to devices that are already installed can disable crucial hardware. Microsoft warns that blocking the Disk Drives class retroactively could affect the boot disk. Leave that option off unless you have tested it on a spare PC.
If the approved list changes often, copying hardware IDs gets tedious. Dedicated blocking software keeps an authorized-drive list in a window instead, which is the main reason people move away from Group Policy for this job.
Common Mistakes When You Block USB Ports in Windows 10
Most failed blocks come from five slips: testing with a drive Windows already mounted, skipping the restart, editing the wrong registry hive, disabling a root hub a keyboard needs, and forgetting a rollback. Each one is easy to prevent, and each shows up as a block that seems to work but does not.
Testing with the drive you used yesterday. Windows keeps the driver and the drive may stay usable until reconnected.
Editing HKCU instead of HKLM. Values under the current-user hive apply to that user, not the whole PC.
Skipping the restart. Microsoft says the change otherwise waits for the next restart.
Disabling root hubs on a USB-keyboard desktop. Everything behind the hub goes dark.
Disable every entry under Universal Serial Bus controllers to stop flash drives.
Block the storage class with policy or the USBSTOR value, and test with a spare drive after a restart.
Third-party Group Policy tweaks that add gpedit.msc to Home are not needed: the registry methods reach the same result without installing anything unsupported.
How to Verify It Worked After You Block USB Ports in Windows 10
To verify a USB block, restart, plug in a spare drive and look for the result your method should give: an access-denied message under Deny all access, or no drive letter under USBSTOR Start = 4. Then confirm the setting itself with reg query, and check that the keyboard and mouse still work.
# Shows the USBSTOR Start value (4 means blocked)
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR -Name Start
# Lists USB-attached disks (empty means nothing mounted)
Get-Disk | Where-Object BusType -eq "USB"The full set of tests, including what Event Viewer records and how to document the result, is in the verification walkthrough for Windows 10.
When blocked USB ports still respond
If a blocked drive still opens, the usual causes are a pending restart, a drive Windows mounted earlier, a phone in the portable-device class, a Home edition without the policy editor, or a conflicting policy. Work through them in that order; the table gives the quick fix for each one.
| Problem | Likely cause | Fix |
|---|---|---|
| Drive still opens | No restart yet | Restart, or set a forced reboot time |
| Only one old drive works | Already mounted | Unplug and reconnect it |
| Phone still opens | Portable device class | Add the WPD deny rules |
| gpedit.msc not found | Windows 10 Home | Use the registry values |
| Setting ignored | Wrong hive or domain rule wins | Check HKLM and the applied policy |
| Keyboard stopped | Root hub disabled | Restore point or Safe Mode, then re-enable |
Diagnostic checklist
The deeper diagnosis, with a decision tree and the less common causes, is in why blocked USB ports keep working and how to fix it.
Is This Enough? What Else to Do After You Block USB Ports in Windows 10
A USB block is one layer, not a full defence. Windows 10 reached end of support on October 14, 2025, so the same PC also needs Extended Security Updates or an upgrade, working antivirus, and encryption for any data that leaves on approved drives. Blocking storage does nothing against threats that arrive by email or download.
Patching and Extended Security Updates
Microsoft Support says Windows 10 keeps working after end of support but receives no security updates unless the PC is enrolled in Extended Security Updates. Consumer enrolment was extended in June 2026, according to Help Net Security and Tom's Guide. Check Settings > Update & Security for the enrolment prompt.
Encrypt the drives you still allow
Microsoft's removable-storage documentation notes a separate BitLocker policy, Deny write access to drives not protected by BitLocker, under Computer Configuration > Administrative Templates > Windows Components > BitLocker Drive Encryption > Removable Data Drives. It lets approved drives work only if they are encrypted.
Policy rollout checklist for multi-PC offices
Netsoftwares USB Block
The product behind the Netsoftwares USB Block search is USB Block, a Windows program from NewSoftwares.net that blocks USB storage, optical discs and network drives, keeps a password-protected list of approved devices, and logs what was plugged in. It supports Windows 10 and, unlike Group Policy, runs on Home.
Of the options covered, we recommend USB Block's allow-list and password gate for readers who need exceptions or a record, because the built-in tools need hardware IDs and offer no log. For a Pro PC where everything should be blocked, the free Group Policy setting is enough and we say so.
Best for
- Home PCs with no policy editor
- Approved drives that change
- Seeing who plugged what in
Not ideal for
- One Pro PC with nothing to allow
- Mac or Linux machines
- Replacing antivirus
The product page lists Windows 10, 8 and 7 in 32-bit and 64-bit builds and Windows Server 2008 to 2019. Installation needs administrator rights and then covers every user on the PC. It is a Windows tool, and it is not antivirus.

What it blocks
According to the official page, the blocks cover USB storage such as flash drives, external hard drives, SD cards and phones that appear as drives; CD, DVD and Blu-ray discs plus floppy and Zip drives; mapped network drives and shared folders; and, as an option, non-system hard drives and partitions. Each group has its own switch in the Control Center.


The Control Center has separate protection switches for USB devices, discs and floppy drives, network access and non-system drives. Each can be enabled on its own, so you can block flash drives while leaving a second internal partition alone.
You set a password during setup, and an unauthorized device opens only with that password. The options screen also shows a stealth mode with a hotkey, an option to protect the PC in Windows Safe Mode, and monitoring of wrong-password attempts.
The product page contrasts its approach with Group Policy: per-device allow-lists are handled in the app, it works on Windows Home, and it keeps a log of blocked attempts. Group Policy remains free and perfectly adequate when you need no exceptions.
USB Blocking Software
USB blocking software replaces several manual steps with one window: a block switch, an authorized list and a log. Against Group Policy it adds Home support and easier exceptions, and against Microsoft Intune it suits a single PC where managed device licensing makes little sense. This comparison uses each option's official documentation.
| Feature | USB Block | Group Policy | Intune profile |
|---|---|---|---|
| Works on Windows 10 Home | Yes | No editor on Home | Needs a managed device |
| Per-device allow-list | In the app | By hardware ID | By device settings |
| Password to open a blocked device | Yes | No | No |
| Log of attempts | Yes | Event logs only | Through reporting |
| Blocks discs and network drives | Yes | Per-class settings | Removable storage setting |
| Cost | Paid after trial | Included in Pro | Intune licensing |
| Verdict | Software wins on Home and on exceptions; Group Policy wins on cost for a plain deny-all. | ||
For a longer side-by-side, including what each option does when you need the block undone, read blocking software compared with Group Policy. The shorter question of what a drive-blocking tool does about malware comes next.
Software-Based USB Blocking Step-by-Step
Blocking with USB Block takes five steps: install as administrator, set a password, switch on the blocks, authorize the drives you trust and review the logs. The program protects every user account once installed. This tutorial follows the official feature list and the screens shown in its Control Center.
Install as an administrator
Download the installer from the official Windows installer and run it with administrator rights. The program then protects every user account on the PC.
Set your password
Choose a password during setup and record it somewhere safe. It is the only way to open an unauthorized device, and the product page offers a lost-registration link if you lose track of the licence.
Switch on the blocks
Open the Control Center tab and enable the groups you need: USB devices, discs and floppies, network access, non-system drives.

Each block group has its own protection switch. Authorize approved drives
Add each trusted drive on the Authorized Devices tab so it opens without a prompt. Remove it from the list later if it should lose access.

The Authorized Devices tab holds the allow-list. Review logs and stealth settings
The Reports and Logs tab records allowed devices and wrong-password attempts. Stealth mode hides the program from the Start menu and desktop.
Ready to try it on your own PC?
The installer is the official Windows download from NewSoftwares.net.
USB Malware Blocker
A USB malware blocker in this guide means software that stops Windows 10 opening removable drives, so malware on a drive never runs from it. It does not scan or clean files, which is why the USB Block page tells readers to keep antivirus running separately. Blocking and scanning cover different halves of the problem.
How malware gets onto a PC from a USB drive
Drive-borne malware usually waits for a person to open a disguised file, or exploits a driver or a missing patch. Blocking the drive removes the first route entirely. It cannot protect an unpatched PC from threats that arrive another way, which is why the patching point above matters on Windows 10.
Blocking is preventive and silent. If a drive must be read, scan it with antivirus on a separate PC first, then add it to the allow-list.
Honest limits
Someone with administrator rights and physical access can undo a registry change, and BIOS-level or hardware attacks sit outside what any software block covers. Treat the block as a strong deterrent for casual use, not a guarantee.
USB Block pricing: what you get
The official USB Block page lists Download for Windows and Buy Full Version buttons but shows no price, so this guide does not quote one. Current pricing sits in the NewSoftwares store. The page describes the full version as having no trial reminders and no limitations, and it does not state the trial length.
| Item | Trial download | Full version |
|---|---|---|
| Price | Not stated | Shown at checkout |
| Limits | Not stated | None described |
| Reminders | Implied | None described |
Is it worth it? If you have one Pro PC and nothing to allow, no: Group Policy costs nothing. If you need Home support, an allow-list that changes, or a log, the time saved is the argument.

How to Re-enable USB Ports Safely
To re-enable USB in Windows 10, sign in as an administrator and reverse the exact method you used: set the policy to Not Configured, set USBSTOR Start back to 3, remove the Deny_All value or enable the controller in Device Manager. Restart afterwards. Undo in the opposite order from how you blocked.
| Method used | Undo |
|---|---|
| Group Policy | Set Deny all access to Not Configured, restart |
| USBSTOR value | Set Start back to 3, restart |
| Deny_All value | Delete it or set it to 0, restart |
| Device Manager | Right-click each disabled hub and choose Enable device |
If a keyboard stopped working and you cannot type, or you need the recovery path through Safe Mode, follow the complete undo guide for blocked ports.
Who Should Use Which Option
Match the method to the person: a family PC on Home wants the USBSTOR value, a Pro PC with no exceptions wants Group Policy, and anyone managing approved drives or needing a log is better served by software. Each row names the honest alternative when blocking software is not the best fit.
| Situation | Method | USB Block fit | Alternative |
|---|---|---|---|
| Family PC on Home | USBSTOR Start = 4 | Good: has a password gate | Registry alone |
| One Pro PC, no exceptions | Group Policy | Not needed | Group Policy |
| PC with a few approved drives | Software allow-list | Strong fit | Device ID policy |
| Several office PCs | Domain policy or Intune | Per-PC install | Domain or Intune policy |
| Need to protect your own drive | Password-protect it | Wrong tool | Drive encryption |
Frequently asked questions
These sixteen questions cover what readers ask most about blocking USB ports in Windows 10, from edition limits and phones to restarts, verification and undoing the change. Filter by topic, or open any question for the direct answer.
On Windows 10 Pro, enable All Removable Storage classes: Deny all access in the Local Group Policy Editor under Computer Configuration, Administrative Templates, System, Removable Storage Access, then restart. On Home, set the USBSTOR Start value to 4 in the registry and restart. Both stop storage devices while keyboards and mice keep working.
Yes. Windows 10 includes four free methods: a Group Policy setting on Pro, a USBSTOR or Deny_All registry value on every edition, Device Manager and a BIOS switch. The free tools block a whole device class; a per-drive allow-list and a plug-in log are where paid software saves time.
The fastest route is one registry value. Set Start under HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR to 4 and restart. It takes under two minutes, works on every Windows 10 edition and leaves keyboards and mice alone. The undo is setting the value back to 3. Group Policy takes about the same time on Pro.
Testing with a drive that was already connected is the commonest mistake, followed by skipping the restart and disabling a USB root hub that a keyboard depends on. Check which registry hive you edited, since HKCU values affect only the current user. Create a restore point before you change anything.
Plug in a spare drive after restarting. Under Deny all access, Windows still detects the drive but shows an access-denied error; under Start = 4, no drive letter appears at all. Then confirm the setting with reg query or Group Policy results, and look for a missing entry under Disk drives in Device Manager.
Keyboards and mice keep working, because Group Policy deny-all and the registry methods act on storage classes rather than sockets. The exception is Device Manager or BIOS, which switch off a whole controller or port and can take a USB keyboard with them. If you rely on a USB keyboard, leave the root hubs alone.
Usually not. Charging is power delivered through the port, while these methods stop the storage or portable-device drivers from opening data. A phone may still charge but not appear as a drive. Behaviour varies by cable and device, so test your own phone. Disabling a controller in Device Manager may cut power too.
Windows 10 Home can do it through the registry. It has no Local Group Policy Editor, but the USBSTOR Start value works on every edition and Microsoft documents it in a support article. Several guides report the Deny_All value working on Home as well, though Microsoft lists that policy only for Pro, Enterprise and Education.
Reverse the method you used while signed in as an administrator: set the Group Policy to Not Configured, set USBSTOR Start back to 3, delete or zero the Deny_All value, or enable the controller again in Device Manager. Restart afterwards. Undo in the opposite order from how you blocked, and keep a second admin account.
Yes, on Pro. Enable Prevent installation of devices not described by other policy settings, then allow that drive's hardware ID under Device Installation Restrictions. Copy the ID from Device Manager, Details, Hardware Ids. Blocking software with an allow-list does the same without hardware IDs. Neither helps for a drive installed before the policy.
Not on its own. Microsoft ended Windows 10 support on October 14, 2025, and security updates now arrive only through Extended Security Updates, which Microsoft extended for consumers to October 12, 2027. A USB block removes one attack route but does not replace patching, so enrol in ESU or plan the move to Windows 11.
No. Blocking stops a PC from opening removable drives, so malware sitting on a drive cannot run from it, but a blocker does not scan files that arrive by download, email or network. The USB Block product page itself says to keep antivirus running separately. Treat blocking and antivirus as two layers.
Blocking a port switches off the controller behind a socket, which disables everything plugged into it, keyboards included. Blocking storage stops one device class and leaves other devices alone. Windows 10 offers port-level control only through Device Manager and BIOS; Group Policy and the registry block storage classes, which is what most people want.
Group Policy's Deny all access setting covers CD and DVD media as well as USB storage, according to Windows Central's walkthrough. The USB Block product page also lists CD, DVD and Blu-ray discs, floppy disks and Zip drives among what it blocks. Per-class Group Policy settings let you block discs separately.
Restart the PC. Microsoft's documentation says that without a forced reboot the access change takes effect only after the operating system restarts, and the USBSTOR Start value is read when the driver loads. You can set a time to force reboot in the policy. A drive connected before the change stays usable until it is reconnected.
It is safe when you work carefully: change only the named value, export the key first and create a restore point. Microsoft's own support article uses the Start value for this purpose. A wrong value or the wrong key can break other devices, which is why the undo value is listed beside every step in this guide.
More answers on blocking USB ports
These shorter answers cover the extra cases: shared and kiosk PCs, how the Start value works, which Group Policy deny settings exist, and what logging is available. Each gives the practical answer first and points to the section that holds the full steps.
USB blocking on shared, school and kiosk PCs
Shared machines benefit most from a class block with an administrator-only undo. Use a standard account for everyday users so they cannot edit HKLM, and keep the administrator password separate. Kiosk builds also need physical port covers, since software cannot stop someone unplugging the keyboard.
Registry USBSTOR method explained
The USBSTOR service has a Start value that tells Windows when to load the storage driver: 3 means on demand, and 4 means disabled. Setting 4 makes Windows decline to start the driver for new flash drives, which is why no drive letter appears. It does not touch the drivers for keyboards or mice.
Group Policy removable-storage deny settings
| Class | Deny read | Deny write | Deny execute |
|---|---|---|---|
| Removable Disks | Yes | Yes | Yes |
| CD and DVD | Yes | Yes | Yes |
| Floppy Drives | Yes | Yes | Yes |
| Tape Drives | Yes | Yes | Yes |
| WPD Devices | Yes | Yes | No |
Logging and auditing USB device activity
Windows can log USB connections in Event Viewer under Applications and Services Logs > Microsoft > Windows > DriverFrameworks-UserMode > Operational, but the log is off until you enable it. Software blockers keep their own log. The verification guide shows how to read both.
How autorun malware spreads from USB drives
Malware that spreads from drive to drive needs one infected PC to copy itself to each drive plugged in, then a second PC to run it. A storage block breaks the chain at the second PC. Independent research on drive-borne risk is summarised on a USB flash drive security best-practices page.
Block USB
For most Windows 10 readers the right answer is the free built-in block: Group Policy on Pro, the USBSTOR value on Home, tested with a spare drive after a restart. Add blocking software only when you need exceptions or a log. The block is a layer, and patching still matters.
The bottom line for Windows 10
Decide by edition first, exceptions second and evidence third. Create a restore point, block, restart, test, and write down how to undo it. If you outgrow the free tools, the software route described above shows what it looks like on a Home or Pro PC.
Choose your next step

Four focused guides
This guide is published by the NewSoftwares.net team, developer of USB Block. It covers free and built-in options alongside our own, and we mark where Group Policy is the better choice. Questions about the product go to the developer's support team.


