Disable USB Storage How-To
Windows USB ports with the storage class blockedUSB ports on a Windows PCFlash drive: mountsStorage class: blockedKeyboard port: still worksPolicy: Deny allUSBSTOR Start = 4Restart, then test a real driveDisable USB storage in Windows

Home › Disable USB storage

How to Disable USB Storage Devices in Windows: Step-by-Step Guide 2026

Disabling USB storage in Windows means stopping the system from mounting flash drives and external disks. On Windows 10 and Windows 11, set the USBSTOR Start value to 4 or deny removable storage in Group Policy, restart, then test with a real drive. Home and Pro, phones, SSDs and rollback are covered below.

Published: November 2026Last verified: November 2026NewSoftwares.net editorial teamReading time: 12 min

How to Disable USB Storage Devices in Windows: Quick Answer

Disabling USB storage in Windows takes one registry value or one Group Policy setting. Set USBSTOR Start to 4, or enable Deny all access under Removable Storage Access, restart the PC and test with two different drives. Keyboards and mice keep working because they use another driver.

  1. Open an administrator Command Prompt and export the USBSTOR key as a backup.
  2. Set Start to 4, or turn on All Removable Storage classes: Deny all access in Group Policy.
  3. Restart the PC so the driver state resets.
  4. Plug in a flash drive and an external SSD. Neither should receive a drive letter.
  5. Test a phone in file-transfer mode, because phones follow a separate policy.
Applies to
Windows 10 and Windows 11, Home through the registry and Pro through Group Policy
Time needed
About 5 minutes per PC
Difficulty
Easy: one value or one policy setting
Cost
Free with built-in Windows tools
Needs
An administrator account and a restart
Last verified
November 2026

What are you trying to do?

Pick a goal and the right section opens. Everything is also linked: steps, troubleshooting, comparison, recovery.

Why Block USB Ports at All

A 2016 University of Illinois study dropped about 300 flash drives around a campus and found that between 45% and 98% were picked up and plugged in, with the first connection inside six minutes. Open ports invite that curiosity, which is the case for blocking storage on shared and office PCs.

1

Data leaving the office

A flash drive copies a customer list in seconds and leaves no trace on the network. Blocking storage closes the cheapest exit, which is the core of insider-risk basics.

2

Files arriving from outside

A found or borrowed drive can carry a malicious document. AutoRun no longer launches from USB media since Windows 7, so the danger is a person opening the file.

3

Shared hardware

School labs, reception desks and kiosks have many users and no single owner. One policy applied to the machine beats asking each user to behave.

Practical advice on lost-drive habits and handling is collected in an independent USB flash drive security guide. A block works best beside those habits, not instead of them.

Is your PC exposed through USB?

Tick what applies to see a score.

What You Need Before You Start

Three things are required: an administrator account, a Windows 10 or Windows 11 PC, and a saved copy of the USBSTOR registry key. Windows 10 left standard support on October 14, 2025, so confirm update status first. The whole job takes about five minutes per machine.

  • An account in the local Administrators group, or domain rights to edit the policy.
  • A second way to sign in, such as a remote tool, in case a change locks out an input device.
  • One USB flash drive and one external SSD for testing.

Windows edition note: Home versus Pro

The console is the only real difference. Everything Group Policy writes ends up in the registry, which is why Home users can still apply the same values by hand.

Windows edition note: what each edition can use
CapabilityWindows HomePro, Enterprise, Education
Group Policy Editor (gpedit.msc)Not includedIncluded
USBSTOR Start registry valueWorksWorks
Deny_All policy value written by handWorks, per how-to sourcesWorks
Device Installation Restrictions in the consoleNo consoleIncluded

Admin rights and a rollback plan

Which method fits your PC?

Step-by-Step: Disable USB Storage Devices in Windows

Three native routes disable USB storage: Group Policy for Pro and Enterprise PCs, the USBSTOR registry value for any edition, and Device Manager for a single port controller. Group Policy is the cleanest to audit, while the registry value is the quickest to script across many machines.

Method 1: Group Policy removable-storage deny settings

  1. Press Win+R, type gpedit.msc and press Enter.
  2. Go to Computer Configuration, Administrative Templates, System, Removable Storage Access.
  3. Enable All Removable Storage classes: Deny all access, or enable the narrower Removable Disks and WPD Devices settings.
  4. Optionally enable Set time (in seconds) to force reboot. Microsoft notes that without a restart the access right does not take effect until the next boot.
  5. Run gpupdate /force, then restart.
Group Policy folder path leading to Removable Storage Access and its three deny settings
The Removable Storage Access node holds the per-class deny settings.

Method 2: Registry USBSTOR method

The service key defaults to Start 3. Setting 4 stops the storage driver from loading, as documented in Microsoft knowledge base article 823732. Microsoft’s older note separates drives that are already installed from first-time devices, so test with a drive this PC has never seen.

Registry USBSTOR method
reg export "HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR" "%USERPROFILE%\Desktop\usbstor-backup.reg" /y
reg add "HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR" /v Start /t REG_DWORD /d 4 /f
shutdown /r /t 30 /c "Applying USB storage block"
PowerShell (administrator)
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR" -Name "Start" -Value 4

NinjaOne documents the same Start values for managed fleets.

Registry panels comparing USBSTOR Start value 3 as default with value 4 as disabled
Start 3 loads the driver, Start 4 disables it.

Method 3: Device Manager for one controller

Open Device Manager, expand Universal Serial Bus controllers and disable a host controller or root hub. This blocks every device on those ports, keyboard and mouse included, so reserve it for a PC with another input path or remote access.

Policy values for Home and scripts

Group Policy writes plain values under the Policies key. Writing them yourself gives Home the same effect, and the generator below builds the commands for your choices.

Deny_All policy value (works without the console)
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices" /v Deny_All /t REG_DWORD /d 1 /f
gpupdate /force

Office USB policy generator

Generated commands (copy and run as administrator)
Choose options above to build the commands.

Read-only instead of blocked

Some offices need people to read from a drive but not copy data onto it. The WriteProtect value makes USB storage read-only after the drive is reconnected.

Read-only alternative
reg add "HKLM\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies" /v WriteProtect /t REG_DWORD /d 1 /f

Built-in Windows Methods Compared

Group Policy, the USBSTOR value and Device Manager differ on three points: edition support, how much they block and how easily they undo. Group Policy covers per-class rules on Pro, the registry value works everywhere but blocks only storage, and Device Manager is the bluntest tool.

Built-in methods side by side
MethodEditionsWhat it blocksGranularityUndo
Group Policy deny settingsPro, Enterprise, EducationPer class: disks, phones, opticalHighSet to Not Configured
USBSTOR Start = 4AllStorage driver onlyLowStart = 3
Deny_All policy valueAll, per how-to sourcesAll removable storage classesMediumDelete the value
Device ManagerAllEvery device on a controllerNoneRe-enable the device

USB block method picker

Pick it when you manage Pro PCs and want per-class rules, central control and a clean audit trail.

Watch for Intune settings that conflict, and the restart requirement.

Best Free Methods to Disable USB Storage Devices in Windows

Ranked for a small office, the free options are Group Policy deny settings first, the Deny_All registry value second and the USBSTOR Start value third. All of them cost nothing, and none keeps a log, a password prompt or an approved-drive list without extra work.

Free methods ranked for a small office
RankMethodStrongest pointMain gap
1Group Policy deny settingsPer-class rules and central rolloutNeeds Pro or higher
2Deny_All policy valueOne command on any editionNo per-class choice
3USBSTOR Start = 4Fastest to scriptMay miss UASP drives and phones
4WriteProtect = 1Keeps reading, stops copying inDoes not stop copying out

The ranking changes with the PC. A single Home laptop gains nothing from a console it does not have, so rank two is rank one there.

USB Device Classes at a Glance

USB defines base classes by code: Mass Storage is 08h, HID is 03h, Printer is 07h and Hub is 09h. A storage block works on the 08h family only, so phones, keyboards and printers need their own decisions. The cheat sheet below shows which setting reaches which device.

USB device-class cheat sheet
DeviceClassStart = 4Removable disks denyWPD deny
Flash driveMass storageYesYesNo
External SSD (UASP)Mass storage, UASTest itYesNo
Phone, file transferMTP or PTPNoNoYes
Keyboard or mouseHIDNoNoNo
PrinterPrinterNoNoNo

The full explanation, including why a device can report the wrong class, is on the device classes page.

How to Verify It Worked After You Disable USB Storage Devices in Windows

Verification needs four checks: a flash drive, an external SSD, the service state and the policy result. Run sc qc USBSTOR to see START_TYPE 4 DISABLED, run gpresult for the applied policy, and confirm that no new drive letter appears in File Explorer after plugging in each device.

Verification commands
sc qc USBSTOR
gpresult /r /scope computer
Get-Disk | Where-Object BusType -eq "USB"
Get-PnpDevice -PresentOnly | Where-Object InstanceId -like "USBSTOR*"
  • Flash drive: no drive letter, and a notice or silence from Windows.
  • External SSD: same result. If it mounts, see the troubleshooting table.
  • Phone in file-transfer mode: blocked only when the WPD setting is on.
  • Keyboard and mouse: still working.

Common Mistakes When You Disable USB Storage Devices in Windows

Five slips account for most failed blocks: no restart, one test drive, an unsaved backup, a disabled USB hub and a missing phone setting. Each is cheap to avoid when you know it exists, and expensive when a keyboard stops working during the fix.

Myth

Setting Start to 4 blocks every USB device.

Fact

It targets the storage driver. Keyboards, printers and phones in transfer mode follow other drivers.

Myth

The block applies the moment you save the value.

Fact

Drives already installed and policy timing mean a restart is the safe assumption.

  • Editing ControlSet001 instead of CurrentControlSet, which can leave the live setting unchanged.
  • Testing only a flash drive and never an external SSD.
  • Applying policy to every PC before one pilot machine passes.

Troubleshooting Table: Why USB Storage Still Mounts

Six problems explain nearly every report that a USB block did not work: an old driver entry, a UASP drive, a phone path, a policy clash, a missing console and a disabled hub. Match your symptom in the table, then use the checklist to confirm the cause.

Troubleshooting table: problem, cause, fix
ProblemLikely causeFix
Drive still mountsDrive installed before the changeRestart, unplug, re-plug, then retest
External SSD mountsUASP driver pathAdd the Removable Disks deny policy and retest
Phone still copies filesWPD path is separateEnable the WPD Devices deny settings
Policy not applyingIntune and Group Policy overlapUse one manager, or expect Group Policy to win
No gpedit.mscWindows HomeWrite the Deny_All value with reg add
Keyboard stoppedA USB hub or controller was disabledUse another input device and re-enable the hub

Troubleshooting checklist

Tick what matches your case to see the likely cause.

Short answer for each cause is above. The full walkthrough with a five-rung ladder is on the storage still works page.

How to Allow Approved Drives Only

Windows can allow approved drives through Device Installation Restrictions, found under Computer Configuration, Administrative Templates, System, Device Installation. Microsoft evaluates device instance IDs first, then device IDs, then setup classes, then removable devices, so a narrow allow rule can beat a broad block.

  1. Plug in the approved drive and copy its hardware or instance ID from Device Manager details.
  2. Enable Allow installation of devices that match any of these device IDs and add the ID.
  3. Enable Prevent installation of devices not described by other policy settings.
  4. Enable Apply layered order of evaluation so the allow rule wins, then restart.

How to Re-enable USB Ports Safely

Re-enabling means reversing exactly what you changed: Start back to 3, the Deny_All value deleted, and each Removable Storage Access setting returned to Not Configured. Do it as the machine’s administrator, run gpupdate, restart, then test one drive before you tell users it is available.

  1. OpenAdministrator Command Prompt
  2. RestoreSet Start to 3 or clear the policy
  3. RefreshRun gpupdate /force
  4. RestartThen plug in a test drive
Re-enable commands
reg add "HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR" /v Start /t REG_DWORD /d 3 /f
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices" /v Deny_All /f
gpupdate /force

Only an administrator who owns or manages the PC should reverse the block. If a device was blocked on a computer you do not administer, ask its owner.

Shared, School and Kiosk PCs

Computer labs, reception desks and kiosks need the strictest default, because dozens of people touch one machine. Apply the deny policy at the computer level so it covers every sign-in, pilot it on one lab PC, and keep a signed exception list for staff who truly need a drive.

A seven-step version with a printable tracker is on the rollout checklist page.

Schools

Deny removable disks for student accounts and the machine, then allow a teacher drive by ID if needed.

Kiosks

Use the Deny_All value and an input-only hardware profile, with no reason for any storage to attach.

Logging and Auditing USB Activity

Windows records a new external device as event 6416 once Audit PNP Activity is enabled, and it is off by default. Without that setting a block leaves no evidence of attempts, so turn auditing on before the policy goes live and review the Security log on a schedule.

Turn on device auditing
auditpol /set /subcategory:"Plug and Play Events" /success:enable

Event 6416 reads A new external device was recognized by the System. For a wider view of device-event monitoring, an independent write-up on detecting and preventing USB data leaks lays out the logging side in more detail.

Is This Enough? What Else to Do After You Disable USB Storage Devices in Windows

A storage block closes one gate of four. Phones, keystroke-injecting devices and cloud uploads still sit outside it, and so does any data already on the PC. Encrypt portable drives you do allow, keep antivirus current, and log device events to cover what the block cannot.

The Four-Gate USB Exposure Check

Score a PC by the gates that are closed: the storage driver, the removable-storage policy, the device classes and the audit trail. Three closed gates is a sound baseline. Four is the target for shared and regulated PCs.

Four stacked gates showing storage driver, policy, device classes and audit checks for USB
Four gates between a drive and your data.

For the drives you do allow, encryption protects data if one is lost. A step-by-step on encrypting an external hard drive shows the built-in route.

Netsoftwares USB Block

Netsoftwares USB Block is a Windows program that blocks USB drives, external drives, SD cards and phones, with an allow list, a password prompt and an access log. The store lists it at 49.95 USD as a one-time price. It suits PCs where Group Policy is unavailable or an audit trail is needed.

  • Blocks USB drives, external drives, SD cards and phones, plus CD, DVD, Blu-ray, floppy and Zip drives.
  • Can block network drives and shares, and non-system drives and partitions.
  • Lets you whitelist your own devices, with a password prompt and an access log.

The vendor describes the full feature set on its USB Block product page. It needs administrator rights to install.

USB Block Control Center window showing the four blocking switches and current status
The Control Center groups the blocks on one screen.

Software-Based USB Blocking Step-by-Step

Software blocking takes six steps and about ten minutes: install as administrator, switch on the USB block, add approved devices, set a password, test with a real drive and read the log. The screens below come from the vendor’s own interface and show where each setting lives.

  1. Download the installer from the official page and run it as an administrator.
  2. Open the program and find the four switches in the Control Center: USB devices, discs and floppy drives, network access and non-system drives.
  3. Turn on the USB devices switch.
USB Block device protection switches for USB devices, discs, network access and non-system drives
Each switch controls one kind of access.
  1. Open the Authorized Devices tab and add any drive that must keep working.
USB Block Authorized Devices tab where approved drives are added to the allow list
  1. Open Program Options and set the password, so only you can switch the blocks off.
USB Block Program Options window with password and safe mode settings for the blocker
  1. Plug in a test drive, then open the reports to confirm the attempt was recorded.
USB Block reports and log buttons for reviewing blocked device activity

The installer and the downloads hub are on the NewSoftwares download page.

USB Malware Blocker

A USB malware blocker in the plain sense is a storage block: a program that stops unknown drives from mounting is one less door for malicious files. The product page describes blocking and allow-listing, not malware scanning, so keep antivirus running and treat the blocker as access control.

Remember that AutoRun stopped launching from USB media in Windows 7, so the realistic attack is a person opening a file from a dropped drive. The Illinois drop study found people plugged drives in quickly, which is why prevention beats awareness training alone.

USB Blocking Software

Choose blocking software when you need a feature Windows leaves out: a password prompt, a visible allow list or an access log you can hand to an auditor. Independent roundups from IT Pro Community and AIMultiple both list several tools, including USB Block, so compare more than one before paying.

Read the port-locking tools list and the free USB blocking software review for the wider field.

USB Block window open on a desktop monitor beside the Windows desktop
The program runs as a normal Windows application.

Block USB

The phrase block USB covers three different jobs: stopping storage, stopping phones and stopping every device on a port. Windows policy handles the first two by class, while the third needs hub controls or physical locks. Name the job before you pick a tool, because the tools do not overlap fully.

This guide targets the first job only, which is disabling storage. Port-level control and keyboard defence are separate problems with separate answers.

USB Block Cost and Who Should Use Which Method

Four situations cover most readers: one Home PC, a Pro office on a domain, a team that needs logs and a password, and a site that must block phones. Built-in tools handle the first two at no cost, and the store lists USB Block at 49.95 USD one-time for the third.

Who should use which
SituationPickCost
One Home PCRegistry Start = 4 or Deny_AllFree
Pro office, domainGroup Policy with a pilot OUFree
Need allow list, password or logSoftware blocker49.95 USD one-time per the store listing
Phones must be blockedWPD deny setting or a blocker that lists phonesFree or paid

Questions About Disabling USB Storage

Fourteen questions follow, filtered by intent: how-to, troubleshooting, comparison and recovery. Each answer is short enough to act on and points to the matching section when a longer explanation helps. Use the chips to narrow the list to the goal you picked.

How to disable usb storage devices in windows?

Set the USBSTOR service Start value to 4 under HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR, or enable Deny all access under Removable Storage Access on Pro editions, then restart. Group Policy suits managed PCs and the registry value suits Home. Keyboards and mice keep working because they use a different driver. Verify with a real flash drive before trusting the change.

Can I disable usb storage devices in windows without paid software?

Yes. Group Policy, the USBSTOR registry value and the Deny_All policy key are built into Windows and cost nothing. Device Manager can also disable a controller, though that cuts off keyboards on the same ports. Paid software only becomes useful when you need a password prompt, an approved-drive list or an access log.

What is the fastest way to disable usb storage devices in windows?

Fastest is one administrator command: reg add HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR /v Start /t REG_DWORD /d 4 /f, followed by a restart. It takes under a minute and works on every edition. Drives installed before the change may need to be unplugged and reconnected, or the PC restarted, before the block shows.

What mistakes should I avoid when I disable usb storage devices in windows?

Four mistakes cause most failures: skipping the restart, testing with a single drive type, forgetting a rollback copy of the key, and disabling USB hubs or controllers in Device Manager. That last one can lock out the keyboard you need to undo the change. Export the key first and pilot on one PC.

How do I check that it worked after I disable usb storage devices in windows?

Plug in a known-good flash drive and an external SSD. Neither should get a drive letter in File Explorer. Then run sc qc USBSTOR and confirm START_TYPE shows DISABLED, and run gpresult /r /scope computer to confirm the policy applied. Test a phone separately, because it takes a different path.

Can I block USB storage but keep my keyboard and mouse working?

Yes. Keyboards and mice use the HID class driver, while flash drives use USBSTOR, so setting Start to 4 or denying removable disks leaves input devices alone. The risk to avoid is disabling USB root hubs or host controllers, which cuts off every device on those ports, including the keyboard.

Does blocking USB ports stop phone charging?

Storage policies leave power delivery alone, so charging continues. Phones in MTP or PTP mode use the Windows Portable Devices class instead of USBSTOR, so file transfer needs the WPD deny settings. Stopping charging as well requires disabling the port in firmware or covering it physically, which software policies do not do.

Will USB blocking work on Windows Home?

The registry methods work on Home. Group Policy Editor ships only with Pro, Enterprise and Education, so on Home use the USBSTOR Start value or write the Deny_All policy value with reg add. Windows how-to sources report that the policy key takes effect on Home, but Home lacks the console for central management.

How do I re-enable USB ports as the administrator?

Open an administrator Command Prompt and set the value back with reg add HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR /v Start /t REG_DWORD /d 3 /f. If you used policy, set the Removable Storage Access settings to Not Configured, or delete Deny_All, then run gpupdate /force and restart the PC.

Can I allow only one approved USB drive?

Windows can do it with Device Installation Restrictions: block devices not described by other policy settings, then allow the approved drive’s device ID. Instance IDs target one physical unit, while hardware IDs match a whole model. Third-party blockers keep an authorized-device list through their own interface instead.

Does the registry block also stop external SSDs?

It may not. Windows 8 and later load Uaspstor.sys for UASP drives instead of Usbstor.sys, so a USBSTOR-only change might miss a fast external SSD. Microsoft does not document this case plainly, so test with a real SSD and add the Removable Disks deny policy if the drive still mounts.

Does disabling USB storage stop BadUSB attacks?

No. A malicious device can present itself as a keyboard, which uses the HID class, and a storage block never inspects that class. Storage blocking removes the data-copy and file-delivery routes only. Defending against keystroke-injecting devices needs device allow-listing by ID or physical port control.

How do I make USB drives read-only instead of blocked?

Create the StorageDevicePolicies key under HKLM\SYSTEM\CurrentControlSet\Control and set a DWORD named WriteProtect to 1. Reconnect the drive for it to apply. Users can still read files, so copying data in is stopped while copying data out is not. Group Policy offers a Deny write setting for the same goal.

Does disabling USB storage stop autorun malware?

AutoRun stopped working for non-optical media such as USB drives from Windows 7 onward, so a plugged-in stick no longer launches itself. The remaining risk is a person opening a file from a found drive. Blocking storage removes that path, which is why it still helps on shared PCs.

Our Verdict on Disabling USB Storage

For one Home PC, set USBSTOR Start to 4 and restart. For a Pro office, use Group Policy with a pilot OU and a rollback key. Choose software only when you need an allow list, a password or logs, and test it on your Windows build first, since the vendor does not list Windows 11.

Need an allow list, password and log?

Try the vendor installer on a test PC, or check the one-time store price first.

Go Deeper on USB Storage Blocking

Three supporting guides continue from here: one for blocks that do not hold, one for the device classes a storage block leaves alone, and one for rolling the policy out across an office. Pick the one that matches your next problem, then come back to the steps if you need them.

Block set but drive works

A five-rung triage ladder for drives that still mount.

→

What a storage block misses

Device classes, phones and keyboard-posing devices.

→

Many PCs

A pilot, deploy and audit checklist you can print.

→

About This Guide and Its Publisher

NewSoftwares.net publishes this guide as the developer of USB Block, and it covers the free Windows methods alongside our own product. Settings were checked against Microsoft knowledge base article 823732, the Policy CSP reference and the usb.org class list, and the drop study is Tischer et al., 2016.

Where Microsoft is silent, as with UASP drives and storage blocks, the text says test it instead of guessing. Product questions can go to the developer through the NewSoftwares.net contact page.