How to Disable USB Ports Using Registry Editor: Step-by-Step Guide 2026

Disabling USB ports through the registry means switching off the Windows USB mass storage driver, USBSTOR, so drives stop mounting while other USB devices keep working. This guide covers Windows 10 and Windows 11, Home and Pro, with a verification checklist, a rollback plan and the limits you should know about before you rely on it.

Editorial TeamNovember 20269 min readLast verified: November 2026
Quick answer

To disable USB ports using Registry Editor, open regedit as an administrator, go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR, set the Start value to 4 and restart. USB storage stops working; keyboards and mice do not. Set the value back to 3 to undo it.

At a glance
Applies toWindows 10 and Windows 11, Home and Pro
Time needed5 minutes plus one restart
DifficultyEasy, one value edit
CostFree (built into Windows)
NeedsAdministrator account, no internet
Last verifiedNovember 2026
Registry Editor showing the USBSTOR Start value set to 4 next to a blocked USB portRegistry EditorHKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesUSBSTORNameTypeDataStartREG_DWORD0x00000004 (4)USB-A portFlash driveStart = 3 storage driver loads on demandStart = 4 storage driver disabled, keyboards and mice keep working

Pick your path

How to Disable USB Ports Using Registry Editor — Quick Answer

To disable USB ports using Registry Editor, set the Start value under HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR to 4 and restart Windows. That switches off the USB storage driver, so flash drives and external disks stop mounting, while keyboards, mice and printers keep working. Setting the value back to 3 restores normal behavior.

The wording matters. Windows has no registry switch that powers down a physical USB port. What the Start value controls is the driver that turns a USB mass storage device into a drive letter. With that driver set to 4 (disabled), the port still supplies power and still carries a keyboard, but a flash drive has nothing to mount it. Microsoft's support article 823732 documents this exact edit, and it applies to a PC where a USB storage device has already been installed.

Most readers want the short path, so here it is: export the key, change one value, restart, and test with a drive and a keyboard. The steps below walk through it, and the sections after them cover what the change does not do.

What you need
  • An administrator account
  • Registry Editor (regedit), present in every edition
  • A spare flash drive and a USB keyboard for testing
  • One restart
Windows edition note

Home has no Local Group Policy Editor; Pro, Enterprise and Education do. The registry edit works on all of them, which is why this guide starts there.

Rollback plan

Export the USBSTOR key to a .reg file first. To undo, set Start back to 3 or import the saved file, then restart.

Back up before you editMicrosoft's article on this change points to its registry backup guidance first. An exported .reg file takes ten seconds and removes most of the risk.

How USB port blocking differs from disabling a single device

Disabling one device in Device Manager affects that one hardware instance, such as a single flash drive. Blocking the USBSTOR driver affects every storage device that uses it. Policy-based blocking, covered later, works at the device-class level. Pick the layer that matches the question: one problem device, every drive, or a managed rule for many PCs.

Why Block USB Ports at All

Removable media is a documented route for data to leave a PC or for malware to arrive on one, which is why CISA lists blocking or restricting it as a countermeasure. A single USB drive can copy gigabytes in minutes, and the PC keeps no record of it by default.

1 valueis all the registry method changes
3 to 4Start value change that disables the driver
0 logskept by the registry method itself

CISA's countermeasure entry for blocking or restricting removable media says it can be done through Group Policy or the registry, and it names the Deny_All value under the RemovableStorageDevices policy key. Those are the same mechanisms this guide uses. For background on how data leaks through drives and how to spot them, see this write-up on detecting and preventing USB data leaks.

Typical reasons readers block USB storage

  • A shared family or office PC that holds tax and client files
  • A kiosk or reception PC that visitors can reach
  • A policy requirement to stop copying files to personal drives
  • Stopping unknown drives from being plugged into a work PC

What blocking does not solve

  • Files leaving by email, cloud upload or a network share
  • A person with administrator rights who can reverse the change
  • Devices that are not mass storage, such as a phone in file-transfer mode

Step-by-Step: Disable USB Ports Using Registry Editor

Disabling USB storage in Registry Editor takes six actions: open regedit as administrator, export the USBSTOR key, change the Start DWORD from 3 to 4, close the editor, restart Windows, then test with a known drive. The whole edit changes one number under HKLM\SYSTEM\CurrentControlSet\Services.

  1. Open Registry Editor as administrator

    Press Win + R, type regedit, and confirm the User Account Control prompt. If the prompt does not appear, you are not running as administrator and the value will refuse to save.
  2. Go to the USBSTOR key

    Browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR. You can paste the path into the address bar at the top of the window.
  3. Export the key as your backup

    Right-click USBSTOR, choose Export, and save the .reg file somewhere other than the desktop of a shared PC.
  4. Change Start from 3 to 4

    Double-click Start, choose Hexadecimal or Decimal (both read 4), enter 4, and select OK. The default is 3, which means the driver loads on demand.
  5. Restart Windows

    Restart so the driver state is re-read. Drives that were plugged in before the change can stay usable until you unplug them.
  6. Test it

    Plug in a flash drive that works on another PC. It should not appear in File Explorer. Then connect a keyboard or mouse to confirm those still respond.
Registry path from HKLM to USBSTOR with the Start valueHKLMSYSTEMCurrentControlSetServicesUSBSTORValueTypeDefaultDisabledStartDWORD34

The registry path and the two values that matter: 3 is the default, 4 disables the driver.

Save as block-usb-storage.reg
; Save as block-usb-storage.reg, then double-click and restart
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
"Start"=dword:00000004

; Rollback: set the same value to 3
; "Start"=dword:00000003
The same change in PowerShell (administrator)
# Run in PowerShell as administrator, then restart
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR" -Name "Start" -Value 4
# Rollback
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR" -Name "Start" -Value 3
The driver must already be installedMicrosoft's article applies the Start edit when a USB storage device has been installed on the PC before. On a PC that has never seen a USB drive, Microsoft instead describes denying permissions on the Usbstor.pnf and Usbstor.inf files, and one troubleshooting source reports the value resetting to 3 when a first drive triggers the driver install.

Allow keyboard/mouse while blocking storage

The Start edit already leaves human interface devices alone, because keyboards and mice load the HID driver rather than USBSTOR. A Microsoft Q&A answer to this exact question states that the registry edit does not affect a USB mouse, keyboard or printer. The diagram shows which driver each device uses.

Driver stack showing the storage driver disabled while keyboard and printer drivers stay activeUSB hubUSBSTOR (storage)HID (keyboard, mouse)Printer classStart = 4UnchangedUnchanged
Only the storage driver in the stack is switched off by Start = 4.

Best Free Methods to Disable USB Ports Using Registry Editor

Four free registry methods exist: the USBSTOR Start value, the Deny_All policy value, per-class Deny_Read and Deny_Write values, and a PowerShell one-liner for the same Start edit. They differ in scope, in whether a restart is needed, and in how easily another administrator can spot them.

Free registry methods side by side
MethodRegistry locationValueWhat it blocks
USBSTOR StartHKLM\SYSTEM\CurrentControlSet\Services\USBSTORStart = 4USB mass storage devices
Deny_All policyHKLM\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevicesDeny_All = 1All removable storage classes
Removable Disks classSame key, subkey {53f5630d-b6bf-11d0-94f2-00a0c91efb8b}Deny_Read, Deny_WriteRead or write on removable disks
PowerShellSame as USBSTOR StartSet-ItemProperty ... -Value 4Same as USBSTOR Start, scriptable

The Deny_All and per-class values are the registry form of the Removable Storage Access policies. Microsoft's policy documentation maps each setting to a key under Software\Policies\Microsoft\Windows\RemovableStorageDevices, with the class GUID as the subkey name. The GUID for Removable Disks is {53f5630d-b6bf-11d0-94f2-00a0c91efb8b}, and CD and DVD uses {53f56308-b6bf-11d0-94f2-00a0c91efb8b}. The full class list lives on the USB registry keys cheat sheet.

Office USB policy generator

Tick what you want to change and copy the .reg text. Choose Roll back to generate the undo file.

Generated .reg file
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
"Start"=dword:00000004

Common Mistakes When You Disable USB Ports Using Registry Editor

Five mistakes cause most failed attempts: editing a key other than USBSTOR, skipping the restart, testing with a drive that was already connected, forgetting phones in file-transfer mode, and leaving no rollback copy. Each one is quick to avoid with the Export-Change-Test rule below.

Not that

  • Disabling a USB host controller or hub service to "turn off the port"
  • Testing with the drive you left plugged in all day
  • Deleting USBSTOR keys instead of changing Start
  • Assuming a phone counts as a flash drive

Do this

  • Change only Start under USBSTOR
  • Unplug, restart, then plug the drive in again
  • Keep the exported .reg file with the PC's documentation
  • Test the phone, printer and keyboard separately
The Export-Change-Test rule
StageWhat to doYou pass when
ExportSave the USBSTOR key as a .reg fileThe file opens in Notepad and shows "Start"=dword:00000003
ChangeSet Start to 4 and restartReopening the key shows 4
TestPlug a known drive, then a keyboardDrive absent, keyboard working
DocumentRecord the date, the PC and the rollback value (3)
Common mistake: blaming the portsWhen a keyboard stops working after an edit, the usual cause is a change to the wrong service, not to USBSTOR. Restore the exported file; if the PC will not accept input, import it from the Windows Recovery Environment or another admin session.

How to Verify It Worked After You Disable USB Ports Using Registry Editor

Verification takes four checks after the restart: a known-good flash drive does not appear in File Explorer, a keyboard or mouse still responds, the USBSTOR Start value still reads 4, and a second test with a different drive gives the same result. Do all four before you call the change done.

Four-step verification flow1Restart2Plug a known drive3Check File Explorer4Plug a keyboardDrive absent and keyboard working means the change took effect
The four-step verification flow, from restart to keyboard check.

Verification checklist

0 of 6 completed

One more source of truth exists for policy-based blocking. Microsoft's device installation documentation says that you can open C:\Windows\INF\setupapi.dev.log and look for a Device Installation Restrictions Policy Check entry to confirm a restriction was evaluated. That log is useful when a drive behaves oddly and you need to know whether a policy touched it.

Is This Enough? What Else to Do After You Disable USB Ports Using Registry Editor

The registry change is a first layer, not a finished control. It stops standard USB storage on one PC, but an administrator can reverse it, phones and optical drives follow other rules, and a keyboard-style device is untouched. Add a second and third layer to close those gaps.

The Three-Layer USB Rule

The Three-Layer USB Rule
LayerWhat it coversExample
1. Block the classStops the device type you worry aboutUSBSTOR Start = 4 or a Removable Storage policy
2. Limit who can undo itStops a standard user or a curious colleague reversing layer 1Standard accounts for daily use; admin rights kept to one person
3. Keep a recordShows what was plugged in and whenA device log from a USB control tool, or periodic review of setupapi.dev.log

Phones and portable devices

A phone in file-transfer mode appears as a Windows Portable Device. Microsoft's policy list has separate WPD settings for it, and a Microsoft Q&A thread reports the Removable Disks policies did nothing for a phone until the WPD policy was enabled.

Devices that imitate a keyboard

Because keyboards must keep working, a device that presents itself as one is not stopped by a storage block. Discussion of physical-access USB attacks, such as attacks via physical access to USB ports, shows why physical security still matters.

Safe to skip: BIOS changesTurning ports off in firmware blocks everything, including your keyboard, so most PC owners should not start there. Use it only for a locked-down kiosk with a PS/2 or Bluetooth input device.

For a view of the wider data-leak picture around removable drives, how data leaks happen through removable drives is a useful second read, and the USB flash drive security best practices page lists everyday habits.

When you want to protect the contents of a drive rather than block it, USB Secure's drive password protection is the sibling tool built for that job.

Built-in Windows Methods Compared

Windows offers four built-in routes to block USB storage: a registry value, the Local Group Policy Editor on Pro and above, device installation restrictions, and Device Manager for a single device. Registry and Group Policy cover most single-PC needs; installation restrictions suit allow-lists.

Built-in methods by edition, scope and effort
MethodEditionsScopeWhere to find it
Registry valueHome, Pro, Enterprise, EducationUSB storage on this PCRegistry Editor, USBSTOR key
Local Group Policy EditorPro, Enterprise, EducationRemovable storage classesComputer Configuration > Administrative Templates > System > Removable Storage Access
Device installation restrictionsPro, Enterprise, EducationRemovable devices or specific IDsSystem > Device Installation > Device Installation Restrictions
Device ManagerAllOne device instanceRight-click the device, Disable device

The policy that matters most for a single switch is named All Removable Storage classes: Deny all access, and Microsoft's documentation places it under Computer Configuration, Administrative Templates, System, Removable Storage Access. Enabling it writes the same Deny_All value shown earlier. Deeper comparison of cost, audit trail and effort is on the registry versus Group Policy versus software comparison.

Group Policy vs registry vs software-based control

A registry edit is fastest on one PC. Group Policy gives a labelled setting that many PCs can share. Software adds what neither offers: a password, an approved-drive list and a log. The method picker below turns that into a recommendation for your setup.

USB block method picker

How many PCs?
Windows edition?
Do you need a password, an approved-drive list or a log?
Start with the registry value. For one or a few PCs with simple needs, a single USBSTOR edit with an exported backup is enough. Answer the three questions above to see a tailored result.

USB device-class cheat sheet

What the USBSTOR change touches, by device
DeviceDriver or classBlocked by Start = 4?
Flash drive, external diskUSBSTORYes
Keyboard, mouseHIDNo
PrinterPrinter classNo
Phone in file-transfer modeWindows Portable DevicesSeparate policy
CD or DVD driveCD and DVD classSeparate policy

The extended version, with the policy GUIDs and value names, is the full registry keys reference.

Which Method Fits: Registry, Policy or Software

For one Windows PC, the USBSTOR registry edit wins on cost and speed. For a managed office, Group Policy wins on consistency. For shared PCs that need a password, an approved-drive list and a log, dedicated software is the only option here that provides all three.

Methods compared
MethodDifficultySecurityCostBest forLimitations
USBSTOR Start = 4EasyLow to medium; any admin can reverse itFreeOne PC, Home or ProStorage only; no log; phones are separate
Deny_All policy valueEasyMediumFreeBlocking every removable classNeeds a restart; a domain policy can overwrite it
Local Group Policy EditorEasyMediumFree, Pro and abovePro PCs that want a labelled settingNot on Windows Home
Device installation policyHardMedium to highFree, Pro and aboveAllowing one named drivePolicy order is easy to get wrong
USB Block (software)EasyHigher: password, authorized devices, logPaid; 49.95 USD one-time on the store pageShared PCs and small officesWindows 11 not named on the product page; Windows only
VerdictStart with the registry value on a single PC. Move to policy for many PCs, and to software when you need a password, an allow-list or a record.

The tool we recommend when the registry is not enough

We recommend USB Block when a registry edit leaves gaps you cannot accept: no password, no approved-drive list and no log. It is a Windows program from our own team that blocks USB storage, discs, network locations and non-system drives, with a password and an activity log.

The registry method is where we would start for one PC. The trouble starts when a second person has administrator rights, or when you need to allow one drive and refuse the rest. USB Block's documented features cover those cases: according to the USB Block product page, it blocks USB storage devices, discs, network locations and non-system drives, requires a password before an unauthorized device can be opened, and keeps a list of authorized devices.

Best for

Shared home PCs, reception and kiosk machines, small offices without a domain.

Not ideal for

Large domains that already deploy Group Policy, Mac computers, and PCs where Windows 11 support must be confirmed first.

Honest limitsThe product page lists Windows 10, 8 and 7 and Windows Server 2008 to 2019. Windows 11 is not named there as of November 2026, so ask the developer before buying for Windows 11 PCs. Like any software control, it deters casual copying and does not stop a determined attacker with physical access.
USB Block red software box labelled Data Leak Prevention

USB Block

A USB blocker for Windows PCs, from NewSoftwares.net.

USB Block Control Center tab with switches for USB devices, discs, network access and non-system drives
The Control Center tab with separate switches for each device type.

Software-Based USB Blocking Step-by-Step

Blocking USB with software takes six steps: download the installer, install with administrator rights, choose device types in Control Center, set a password, add authorized devices, and review the log. The tab names below come from the USB Block interface and its product page.

  1. Download the installer

    Get the Windows installer from the NewSoftwares download hub or the product page.
  2. Install with administrator rights

    The product page says installation requires administrator rights, so use an administrator account.
  3. Choose what to block in Control Center

    Open the Control Center tab and switch on USB devices, discs and floppy drives, network access or non-system drives as needed.
  4. Set a password

    A password is required before an unauthorized device can be opened, so set one only you know.
  5. Add your own drives under Authorized Devices

    Plug in each trusted drive and add it so it works without a prompt.
  6. Review Reports and Logs

    The log records which devices were allowed, when, and incorrect password attempts.
USB Block control summary window shown on a desktop monitor with a USB device diagram
The summary view after installation.

Deep-dive accordion: how the pieces fit

What can be blocked

The product page lists USB storage such as flash drives, external hard drives, SD cards and cameras, plus discs, network locations and non-system hard drives and partitions.

How the password works

Per the product page, a password is required before an unauthorized device can be opened. The Program Options tab holds the password settings.

USB Block Program Options tab showing password and general settings
Program Options with password and general settings.
What the log records

The log records which devices were allowed and when, plus incorrect password attempts, according to the product page.

How to Allow Approved Drives Only

Allowing only approved drives needs more than the Start value, which blocks every USB storage device equally. Windows device installation policies can allow one authorized drive by hardware ID, and a USB control tool does it through an authorized-devices list. Collect the drive's hardware ID first.

USB whitelisting for approved drives

Microsoft's device installation guide includes a scenario titled Prevent installation of all USB devices while allowing an installation of only an authorized USB thumb drive. It combines policies that allow a specific device ID with one that blocks everything else, and the order of evaluation matters: instance IDs outrank device IDs, which outrank device setup classes, which outrank the removable devices rule.

Windows policy route

Free on Pro and above. Needs the drive's hardware ID and careful policy ordering. No log.

Software route

Add trusted drives to an authorized list from a settings tab. Also logs usage.

USB Block Authorized Devices tab with an empty list and a Remove from List button
The Authorized Devices tab, where trusted drives are listed.

How to Re-enable USB Ports Safely

To re-enable USB storage, sign in as an administrator, set the USBSTOR Start value back to 3, delete any Deny_All, Deny_Read or Deny_Write values you added, and restart. Policy values left behind are the usual reason drives still show Access denied after the Start value is fixed.

Re-enabling USB ports safely as the administrator

Use the exported .reg file if you made one, because importing it restores the exact original state. Otherwise edit the value by hand. After restarting, test with a drive and check that Start still reads 3. If it flips back to 4, something else is writing it, and the page on why the Start value keeps resetting to 3 explains how to find the source.

Only for a PC you administerThese steps assume you own the PC or administer it with permission. If a work or school policy blocks USB, ask the administrator who set it rather than working around it.

When Drives Still Work or Keyboards Stop

Six problems account for most registry-block failures: a drive that still mounts, a Start value that returns to 3, Access denied after re-enabling, a dead keyboard, a phone that still transfers files, and a value that will not save. Each has a cause you can check in under a minute.

Problem, cause and fix
ProblemLikely causeFix
Drive still mountsDrive was connected before the change, or no restartUnplug, restart, reconnect, then recheck Start = 4
Start returns to 3A policy, a driver install or a management tool rewrote itSee the full fix for a resetting Start value
Access denied after re-enablingDeny_ policy values still setDelete the values under RemovableStorageDevices, restart
Keyboard stopped workingA different service was editedImport the exported .reg file; use the recovery environment if input is dead
Phone still transfers filesPortable devices are a separate classAdd the portable devices deny values, then test
Value will not saveRegistry Editor not run as administratorReopen regedit and accept the administrator prompt

Troubleshooting checklist

0 of 5 completed

USB Block pricing: what you get

The NewSoftwares store lists USB Block at 49.95 USD as a one-time purchase, while the registry method costs nothing. The product page offers a Windows download and states that the full version has no trial reminders or limitations; no free-trial terms are stated, so confirm before you rely on one.

Registry method versus USB Block
What you getRegistry editUSB Block
PriceFree49.95 USD, one-time, as listed on the NewSoftwares store
Password protectionNoYes, per the product page
Authorized devices listNoYes
Activity logNoYes
Windows support namedWindows 10 and 11Windows 10, 8, 7 and Server 2008 to 2019
Is it worth it?If one PC needs only a storage block, the registry edit is enough and costs nothing. Pay only when a password, an allow-list or a log solves a problem you actually have.

Who should use which option

A single Home PC owner should use the registry value, a Pro user with one machine can pick registry or Local Group Policy, an office with many PCs should use central Group Policy, and anyone who needs a password or an allow-list should choose software.

Recommended option by reader
ReaderRecommended methodWhyHonest alternative
Family PC on Windows HomeUSBSTOR registry editNo Group Policy Editor on HomeUSB control software for a password
Single Pro PCLocal Group PolicyA labelled setting is harder to forgetRegistry edit
Office with a domainGroup Policy or endpoint managerOne setting, many PCsSoftware for exceptions and logs
Reception or kiosk PCSoftware with a passwordStaff need to allow a drive occasionallyRegistry edit plus a standard account

Risk score card: is your PC exposed through USB?

Tick every statement that is true.

Rolling out a USB policy across an office

A multi-PC rollout works best in five stages: inventory which PCs need blocking, pilot on one machine, deploy the setting centrally, tell staff what changes, and record who approves exceptions. Roll back one PC first if the pilot reveals a dependency, such as a label printer.

Office rollout checklist

0 of 7 completed

Use your browser's print command to save this checklist as a PDF.

More answers about disabling USB ports through the registry

These short answers cover the phrasing readers use most: whether it can be done, the easiest way, the free route, and whether it still applies in 2026. Each links back to the step or comparison that owns the full detail.

Can you disable USB ports using Registry Editor?

Yes, with one caveat about wording. Registry Editor can switch off the USB storage driver by setting USBSTOR Start to 4, which stops flash drives and external disks. It cannot power down a physical port, and keyboards and mice continue to work because they use other drivers.

What is the easiest way to disable USB ports using Registry Editor?

The easiest way is a saved .reg file: copy the snippet from the steps section into Notepad, save it with a .reg extension, double-click it as an administrator and restart. The file also documents the change and doubles as a rollback template when you set the value to 3.

Is it possible to disable USB ports using Registry Editor for free?

Yes, it costs nothing because Registry Editor is part of Windows. Free also applies to the PowerShell one-liner and to the Group Policy route on Pro. The price you pay is in missing features: no password, no allow-list and no log.

Does disabling USB ports using Registry Editor still work in 2026?

Yes, the USBSTOR Start value is still the documented way to disable the storage driver, and published guides continue to apply it to Windows 11. We found no Microsoft notice changing it as of November 2026, but test after major feature updates and keep your verification checklist handy.

Why keep a separate cheat sheet of keys?

Registry values for USB control are spread across Services, Policies and Device Installation keys, and a single wrong GUID quietly does nothing. The USB registry keys cheat sheet collects the verified paths, GUIDs and value names in one table.

USB Blocking Software

USB blocking software replaces registry edits with a program that controls devices from a settings window, usually adding a password, an approved-device list and a log. Judge any such product on those three features, on which Windows versions its page names, and on how it behaves in Safe Mode.

  • Password: can a standard user open or remove the control?
  • Approved devices: can you list your own drives by device, not just by type?
  • Log: does it record allowed devices and failed attempts?
  • Versions: does the vendor page name your Windows version?

Block USB

To block USB can mean four different things: stopping storage drives, stopping all devices, stopping one specific drive, or stopping copying while allowing reading. Each maps to a different tool, so write down which of the four you mean before choosing a method.

What "block USB" can mean
GoalSimplest built-in route
Stop storage drivesUSBSTOR Start = 4
Stop all removable classesDeny_All policy value
Stop one specific driveDevice installation restrictions by hardware ID
Allow reading, deny writingPer-class Deny_Write value

Block USB Software

Block USB software is worth buying when two or more people share a PC and at least one of them has administrator rights, because then a registry edit can be reversed without anyone noticing. A password and a log turn the same block into something you can audit.

Choose it for shared PCs, small offices without a domain and machines where you want to allow a drive now and then. Skip it when one person administers one PC, or when a domain already pushes Group Policy. The device controls on the USB Block product page are one example of what such software lists; read any vendor page for the Windows versions it names before you buy.

Frequently asked questions

These twelve questions come from the way people search for registry-based USB blocking: how to do it, how to check it, what it leaves open and how to undo it. Use the chips to narrow the list to method, device, platform or troubleshooting questions.

How to disable usb ports using registry editor?

Open Registry Editor as an administrator, browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR, change the Start DWORD from 3 to 4, and restart. Windows then stops loading the USB storage driver, so flash drives and external disks stop appearing. Keyboards, mice and printers use other drivers and keep working. Export the key first so the original value is easy to restore.

Can I disable usb ports using registry editor without paid software?

Yes. Registry Editor ships with every Windows edition, and the change is a single value edit, so one PC needs no paid tool. What you give up is a password, an approved-drive list and activity logs, none of which the registry can provide. Home users can take this route because it does not depend on the Local Group Policy Editor.

What is the fastest way to disable usb ports using registry editor?

Run one PowerShell line as administrator: Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR" -Name "Start" -Value 4, then restart. It performs the same edit as the Registry Editor window in a few seconds. Use Value 3 to undo it, and test with a spare drive and a keyboard before relying on the change.

What mistakes should I avoid when I disable usb ports using registry editor?

Avoid three things: editing a different key than USBSTOR, skipping the restart, and testing with a drive that was already connected. A flash drive plugged in before the change can keep working until you reconnect it. Export the key first, change one value only, and write the rollback value (3) down before you begin.

How do I check that it worked after I disable usb ports using registry editor?

Restart, plug in a flash drive you know works on another PC, and confirm it does not appear in File Explorer. Then plug in a keyboard or mouse to confirm those still respond. Finally reopen the USBSTOR key and check that Start still reads 4, because a policy or driver install can change it back.

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

Yes. Setting USBSTOR Start to 4 affects only the storage driver, and a Microsoft Q&A answer on this exact scenario says mice, keyboards and printers are unaffected. A phone in file-transfer mode is a separate case because Windows treats it as a portable device, so test the phone and add the portable devices policy if you need it blocked too.

Does blocking USB ports stop phone charging?

Not through the USBSTOR change. Charging draws power from the port and should not depend on the storage driver, so a phone plugged in for power keeps charging. File transfer is what changes, and a phone in file-transfer mode falls under the portable devices class, which has its own policy values. Test your own phone after any change.

Will USB blocking work on Windows Home?

The registry method works on Windows Home because Registry Editor is included in every edition. What Home lacks is the Local Group Policy Editor, which ships with Pro, Enterprise and Education. Home users therefore apply the setting through the registry or a PowerShell script and keep the .reg file as their rollback copy.

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

Sign in as an administrator, open Registry Editor, set the USBSTOR Start value back to 3, and restart. If you also added policy values such as Deny_All, delete them or set them to 0. The full recovery path, including what to check when drives still refuse to mount, is on the page about the Start value resetting.

Can I allow only one approved USB drive?

Not with the Start value alone, because it blocks every USB storage device. Microsoft documents a device installation policy scenario that blocks all USB devices while allowing one authorized thumb drive, and a USB control tool can do the same with an authorized-devices list. Collect the drive's hardware ID before you start.

Do I need to restart after changing the USBSTOR value?

Plan for a restart. Guidance for the USBSTOR edit tells readers to restart afterwards, and Microsoft's removable storage policy guidance says an access setting does not take effect until the operating system restarts. A drive that was already connected when you changed the value can remain usable until you unplug and reconnect it.

Is editing the registry to block USB safe?

It is safe when you export the key first and change a single value. Microsoft's support article for this change points readers to its registry backup guidance before the edit. The real risk is touching the wrong key or switching off a driver your hardware needs, so change only USBSTOR Start and keep 3 written down as the rollback value.

Our verdict

For most readers, setting USBSTOR Start to 4 is the right first move: it is free, it takes five minutes, and it leaves keyboards and mice alone. Add a policy or software only when you need central control, a password, an approved-drive list or a record of use.

What the registry edit cannot do matters as much as what it does. It does not log anything, it can be undone by any administrator, and it does not cover phones in file-transfer mode. If those gaps matter to you, USB Block's device controls close them for Windows PCs, and the next section lists where to read further.

Choose the layer that fits the risk

Registry for one PC, policy for many, software when you need a password and a log.

Go deeper

About this guideThis guide is written by the NewSoftwares.net team, the developer of USB Block. We cover free and built-in options alongside our own, so you can choose what fits. Questions about the product can go to the developer through the contact page for support questions.