Windows 10 guide

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.

Editorial teamNovember 202614 min readLast verified: November 2026
Quick answer

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.

At a glance
Applies toWindows 10 22H2: Home, Pro, Enterprise, Education
Time needed5 to 10 minutes plus a restart
DifficultyEasy for Group Policy, moderate for registry
CostFree with built-in tools
NeedsAdministrator account, restart, restore point
Last verifiedNovember 2026
Laptop screen with a blocked USB plug symbolA monitor shows a USB plug inside a red prohibition sign, a toggle is switched on beside it, and a flash drive with a red cross approaches from the right.
Quick answer

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

What do you need help with?

Go to the step-by-step methods, or pick a method with the method picker.
4built-in ways to block USB in Windows 10
4registry Start value that disables the storage driver
22H2final Windows 10 version, the one in scope
Oct 14, 2025Windows 10 end of support date
Requirements

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

What each Windows 10 edition can use
EditionGroup Policy EditorUSBSTOR registry valueDevice Manager
HomeNot includedWorksWorks
ProIncludedWorksWorks
Enterprise and EducationIncludedWorksWorks

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.

Why this matters

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.

  1. Create the restore point

    Name it with the date and the word USB so you can find it later.

  2. Write down what must keep working

    Keyboard, mouse, printer, headset, webcam. These are the devices you will test after the restart.

  3. 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 it matters

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.

USB device classes at the portDiagram: the PC enumerates a device, then storage is blocked, input devices stay working, and phones or cameras may need a separate rule.Windows 10 PCUSB hostPort or hubenumeratesMass storage (flash drives)Blocked by every method hereKeyboard, mouse, headsetLeft working on purposePhones and camerasOften need their own rule
Myth

Blocking USB ports in Windows 10 switches the sockets off.

Fact

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.

Low exposure (0 of 6 apply).
Free methods

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.

Blocking software

Difficulty: easy. Best for: allow-lists, logs and Home PCs.

Covered further down.

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

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)

  1. Open the editor

    Press Win + R, type gpedit.msc and press Enter. Approve the administrator prompt.

  2. Go to the policy

    Open Computer Configuration > Administrative Templates > System > Removable Storage Access.

  3. 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.

  4. 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.

  5. 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)

  1. Open Registry Editor

    Press Win + R, type regedit and press Enter. Export the key you are about to edit with File > Export.

  2. Find the USBSTOR key

    Browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR.

  3. 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.

  4. Restart and test

    After the restart no drive letter appears for a new flash drive, because the storage driver no longer loads.

Command Prompt (run as administrator)
:: 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 /f

Method 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

What to block
Output format
How many PCs
Copy, review, then run as administrator
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.

Common mistake

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.

Compare

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.

Block USB in Windows 10: methods compared
MethodDifficultySecurityCostBest forLimitations
Group Policy: Deny all accessEasyMediumFreePro PCs and domainsNot on Home; phones need WPD rules
Registry: Deny_AllModerateMediumFreeScripted rolloutsMicrosoft documents the policy for Pro and above
Registry: USBSTOR Start = 4ModerateMediumFreeHome PCsStorage only; restart needed; an administrator can change it back
Device Installation RestrictionsHardHighFreeShort allow-lists on ProHardware IDs; blocks future installs only unless told otherwise
Device Manager: disable hubEasyLowFreePCs without a USB keyboardKills every USB device behind it; easy to undo
BIOS or UEFI switchModerateMediumFreePhysical lockdownNot offered by every maker
Dedicated blocking softwareEasyMediumPaidAllow-lists, logs, Home PCsExtra program to install and trust
VerdictPick Group Policy on Pro, USBSTOR on Home, and add software only when you need an allow-list or a log.

Method picker

Your Windows 10 edition
How many PCs
Exceptions
Need a log of plugged devices
Local Group Policy: "All Removable Storage classes: Deny all access."

The three-question rule

  1. Edition first. Home rules out the Group Policy Editor.
  2. Exceptions second. Any approved drive or phone rules out a plain deny-all.
  3. Evidence third. If you need a record of plugged devices, built-in tools cannot supply one.
Where each Windows 10 control stops a USB devicePipeline from plug-in to volume access with the control that acts at each stage: Device Manager or BIOS at the hub, device installation restrictions, the USBSTOR Start value, and the deny-all-access policy.Plug inA device arrivesHub enumeratesPort powers the deviceDriver installsWindows picks a driverDriver loadsStorage driverVolume opensDrive letter and accessDevice Manageror BIOS: whole hubInstall rules:new devices onlyStart = 4:storage driver offDeny all access:access refusedSoftware blocker:watches every stageEarlier cut-in points are broader; later ones are narrower and easier to reverse.

USB device class cheat sheet

Choose a method to highlight what it affects.

Device classes and the method that stops them
DeviceDeny all accessUSBSTOR Start = 4Hub disabled
Flash drive, external diskBlockedBlockedBlocked
CD, DVD mediaBlockedNot affectedBlocked if USB
Phone as portable deviceMay need WPD rulesNot affectedBlocked
Keyboard, mouseWorksWorksStops working
PrinterWorksWorksStops working
Allow-list

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

  1. 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 /ids lists the same data.

  2. Open the restriction policies

    In the Group Policy Editor go to Computer Configuration > Administrative Templates > System > Device Installation > Device Installation Restrictions.

  3. 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.

  4. Test with a second drive

    The approved drive should open and a different drive should be refused.

Common mistake

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.

Avoid these

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.

Common mistake

Testing with the drive you used yesterday. Windows keeps the driver and the drive may stay usable until reconnected.

Common mistake

Editing HKCU instead of HKLM. Values under the current-user hive apply to that user, not the whole PC.

Common mistake

Skipping the restart. Microsoft says the change otherwise waits for the next restart.

Common mistake

Disabling root hubs on a USB-keyboard desktop. Everything behind the hub goes dark.

Not that

Disable every entry under Universal Serial Bus controllers to stop flash drives.

Do this

Block the storage class with policy or the USBSTOR value, and test with a spare drive after a restart.

Safe to skip

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.

Verify

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.

1. Plug inUse a drive never connected to this PC.
2. ObserveAccess denied or no drive at all.
3. Read the settingRegistry or policy report.
4. Check inputKeyboard and mouse respond.
PowerShell
# 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.

Troubleshooting

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, cause and fix
ProblemLikely causeFix
Drive still opensNo restart yetRestart, or set a forced reboot time
Only one old drive worksAlready mountedUnplug and reconnect it
Phone still opensPortable device classAdd the WPD deny rules
gpedit.msc not foundWindows 10 HomeUse the registry values
Setting ignoredWrong hive or domain rule winsCheck HKLM and the applied policy
Keyboard stoppedRoot hub disabledRestore 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.

After the block

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.

Oct 14, 2025Windows 10 support ended.
June 2026Consumer ESU extended a year.
Oct 12, 2027Consumer ESU now runs to this date.

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

Editorial pick

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.

USB Block red product box showing a shield and the words Data Leak Prevention
USB Block for Windows.

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.

USB Block control center diagram showing USB devices, discs and network drives around a blocked symbolUSB Block options screen with stealth mode hotkey, safe mode protection and password settings
The panel changes as you open each topic.

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.

Compare software

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.

USB Block, Group Policy and Intune compared
FeatureUSB BlockGroup PolicyIntune profile
Works on Windows 10 HomeYesNo editor on HomeNeeds a managed device
Per-device allow-listIn the appBy hardware IDBy device settings
Password to open a blocked deviceYesNoNo
Log of attemptsYesEvent logs onlyThrough reporting
Blocks discs and network drivesYesPer-class settingsRemovable storage setting
CostPaid after trialIncluded in ProIntune licensing
VerdictSoftware 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.

Step by step

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.

  1. 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.

  2. 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.

  3. 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.

    USB Block control center with switches for USB devices, discs, network access and non-system drives
    Each block group has its own protection switch.
  4. 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.

    USB Block Authorized Devices tab with a list of approved drives and a remove button
    The Authorized Devices tab holds the allow-list.
  5. 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.

Malware

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.

Why this matters

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.

Cost

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.

Trial and full version as the product page describes them
ItemTrial downloadFull version
PriceNot statedShown at checkout
LimitsNot statedNone described
RemindersImpliedNone 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.

USB Block registration tab with licence details and an option to buy more licences
The registration tab inside the program.
Recovery

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.

Undo by method
Method usedUndo
Group PolicySet Deny all access to Not Configured, restart
USBSTOR valueSet Start back to 3, restart
Deny_All valueDelete it or set it to 0, restart
Device ManagerRight-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.

Decision guide

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.

Recommended option by situation
SituationMethodUSB Block fitAlternative
Family PC on HomeUSBSTOR Start = 4Good: has a password gateRegistry alone
One Pro PC, no exceptionsGroup PolicyNot neededGroup Policy
PC with a few approved drivesSoftware allow-listStrong fitDevice ID policy
Several office PCsDomain policy or IntunePer-PC installDomain or Intune policy
Need to protect your own drivePassword-protect itWrong toolDrive encryption
Common question

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

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

Per-class settings under Removable Storage Access
ClassDeny readDeny writeDeny execute
Removable DisksYesYesYes
CD and DVDYesYesYes
Floppy DrivesYesYesYes
Tape DrivesYesYesYes
WPD DevicesYesYesNo

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.

Our verdict

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

USB Block control center shown on a desktop monitor with a blocked USB symbol
Go deeper

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.