How to Block USB Ports in Windows 7: Step-by-Step Guide 2026
Blocking USB ports in Windows 7 means stopping flash drives, external disks and similar storage from mounting while the keyboard, mouse and printer stay usable. Windows 7 gives you three built-in ways to do it, and each one leaves a different gap. This guide covers all three, shows what each misses and explains how to prove the block holds.
To block USB storage in Windows 7 without extra software, open Registry Editor as an administrator, go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR, set Start to 4 and restart. Drives stop loading, and keyboards and mice keep working. Set Start back to 3 to undo it.
| Applies to | Windows 7 SP1: Home Basic, Home Premium, Professional, Ultimate, Enterprise |
|---|---|
| Time needed | 2 minutes for the registry change, 10 to 15 minutes with testing |
| Difficulty | Moderate: one registry edit, no scripting |
| Cost | Free with built-in tools; dedicated software is paid |
| Needs | Administrator account and one restart; no internet connection |
| Last verified | November 2026 |
How to Block USB Ports in Windows 7 — Quick Answer
The quickest block on a Windows 7 PC is the USBSTOR registry value: set Start to 4, restart, and test with a drive. Professional, Ultimate and Enterprise editions can also use Group Policy, and dedicated software adds an approved-device list. Each route stops storage and leaves keyboards and mice alone.
If you want the quickest block on one PC
Use the registry value in the step-by-step section. It works on every edition, takes one restart and is reversible by typing a 3 instead of a 4. It cannot make exceptions, so a trusted backup drive is blocked as well as an unknown one.
If you share a PC and want a record of who plugged in what
Built-in methods keep no log of attempts. A dedicated blocker records allowed devices, access times and wrong passwords, which matters when a family PC or a small shop machine is shared. The recommendation section explains what that costs and what it cannot do.
If your PC runs a Home edition
Home Basic and Home Premium have no Group Policy editor, so the registry value or software are your options. The Home versus Professional page sorts every method by edition so that you can skip the ones that cannot run.
What do you need help with?
Pick one and jump straight to the right section.
Why Block USB Ports at All
USB storage is the easiest way to copy files out of a PC and the easiest way to carry malware in. A stick can hold thousands of documents and fits in a pocket, so a locked-down Windows 7 machine that still accepts any drive is only half protected against walk-up copying.
Windows 7 changed AutoRun so that it no longer runs programs from non-optical removable media, which closed the classic infected-stick trick. Microsoft notes one exception: a stick whose firmware presents itself as a CD drive is still treated as a CD. Data theft is the bigger everyday risk, because nothing technical stops a user from dragging a folder onto a drive.
An unpatched PC cannot rely on Windows to stop everything that arrives on a stick. Reading about how USB data leaks are detected and prevented helps you decide whether a block is enough or you also need monitoring.
Is your PC exposed through USB?
Tick every statement that is true. Each one scores 2 points.
Built-in Windows Methods Compared
Windows 7 offers four built-in routes: the USBSTOR registry value, Group Policy removable-storage settings, disabling hubs in Device Manager, and turning ports off in the BIOS. They differ in edition support, in what they leave working and in how hard they are to undo.
| Method | Difficulty | Security | Cost | Best for | Limitations |
|---|---|---|---|---|---|
| USBSTOR registry value | Easy | Medium | Free | One PC, any edition | No exceptions, no log; phones may still connect as portable devices |
| Group Policy removable-storage settings | Moderate | Medium to high | Free | Professional, Ultimate, Enterprise | Not in Home editions; settings are per class, not per drive |
| Device Manager: disable USB hubs | Easy but risky | High | Free | Short-term lockdown | Can disable the keyboard and mouse; easy for any admin to undo |
| BIOS or firmware USB switch | Moderate | High | Free | Kiosk-style PCs with a PS/2 keyboard | Kills every USB device; the menu differs per maker |
| USB Block (dedicated software) | Easy | Medium to high | Paid | Shared PCs that need an allow-list and a log | Not antivirus; needs install rights; price not published on the product page |
| Verdict | Registry for one PC | Software when you need exceptions | Skip hub-disabling unless you have another input route |
Method picker: which route fits your PC?
Step-by-Step: Block USB Ports in Windows 7
Sign in with an administrator account, back up the registry key, then pick the registry value or Group Policy. The registry route takes four actions; the policy route takes five and needs Professional or higher. Both leave keyboards and mice working and both reverse in under a minute.
Before you start
- Requirements
- An administrator account, a spare flash drive for testing and a note of the current Start value (normally 3).
- Rollback plan
- Export the key to a .reg file and keep a second administrator account, so a mistake never locks you out.
Method 1: The USBSTOR registry value (all editions)
Open Registry Editor
Click Start, choose Run, type regedit and press Enter. Accept the User Account Control prompt.
Back up the key
Browse to the path below, right-click USBSTOR and choose Export. Save the file somewhere you can reach from another account.
Change Start from 3 to 4
Double-click Start in the right pane, select Hexadecimal, type 4 and click OK. Microsoft documents this value for stopping USB storage devices from working.
Restart and test
Restart so the setting applies cleanly, then run the test in the verification section.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR
Start (REG_DWORD) 3 = storage allowed (default) 4 = storage blockedMethod 2: Group Policy removable-storage settings (Professional, Ultimate, Enterprise)
Click Start, type gpedit.msc and press Enter. Open Computer Configuration, Administrative Templates, System, Removable Storage Access. Double-click Removable Disks: Deny read access, choose Enabled and click OK. Repeat for Deny write access and Deny execute access. Run gpupdate /force or restart.
The setting All Removable Storage classes: Deny all access overrides the others and also covers portable devices such as phones and media players, plus CD and DVD drives. Use it only when you mean to block all of those.
Computer Configuration
> Administrative Templates
> System
> Removable Storage Access
Removable Disks: Deny read access = Enabled
Removable Disks: Deny write access = Enabled
Removable Disks: Deny execute access = EnabledMethod 3: Device Manager and BIOS (last resort)
Device Manager lets you disable entries under Universal Serial Bus controllers, but disabling the wrong hub switches off the keyboard and mouse along with the drives. The BIOS or firmware menu can switch ports off entirely, which suits a locked-down kiosk with a PS/2 keyboard and almost nothing else.
Never disable a USB root hub on a PC where the keyboard and mouse plug into USB. You may need another input device, or a second administrator route, to get back in.
Generate a registry file for the settings you choose
Tick the settings you want, then copy the result into a text file and save it as usb-block.reg. Double-click it as an administrator to apply it.
Open the output in a text editor and review it before you import. Keep the file with your backup so that you can reverse each line.
What Counts as Storage, and What Does Not
Windows treats USB flash drives, external hard disks and card readers as mass storage, but keyboards, mice and printers use different drivers. Phones often appear as portable devices rather than storage, which is why the registry value alone may not stop a phone from sharing files.
Device-class cheat sheet
| Device | USBSTOR Start = 4 | Group Policy removable-disk deny | Note |
|---|---|---|---|
| Flash drive | Blocked | Blocked | The main target of both methods |
| External hard disk | Blocked | Blocked | Appears as mass storage |
| SD card reader | Blocked | Blocked | USB readers use the storage driver |
| Phone as media device (MTP) | Often not covered | Needs WPD setting | Policy has separate WPD read and write settings |
| Keyboard and mouse | Not affected | Not affected | Use class-based methods so they stay working |
| Printer | Not affected | Not affected | Separate printer driver |
| Phone charging only | Not affected | Not affected | Power is not blocked by these methods |
A phone plugged in only to charge draws power through the port and shares no files, so a storage block does not interrupt it.
Best Free Methods to Block USB Ports in Windows 7
The best free method is the USBSTOR registry value for most readers and Group Policy for Professional users who want settings they can read back later. Both cost nothing, both survive restarts and neither needs software installed on an old machine.
- Works on every edition
- Reverts by typing 3
- No extra software
- No exceptions or log
- Anyone with admin rights can reverse it
Free third-party utilities exist too. A roundup of free tools that disable USB ports lists several, though check each one against Windows 7 and a trusted download source before running it on a PC you care about.
Registry cleaners and one-click USB lockers from unknown sites. The change involved is one value, so a tool adds more risk than it removes.
The Tool We Recommend for Most Readers
Of the options covered, we recommend USB Block when a Windows 7 PC needs an approved-device list, a password and a record of attempts. The built-in methods block everything equally. Dedicated software lets your own drive work while a stranger's asks for the password.
USB Block is published by NewSoftwares.net, which is also our team. Its documented features and Windows support list include Windows 7, 8 and 10 in 32-bit and 64-bit form. It blocks USB storage, discs, network access and non-system drives, and it logs allowed devices, access times and wrong password attempts.
- Shared PCs that need an allow-list
- Owners who want a log of device use
- Home editions with no Group Policy
- Not antivirus software
- Needs administrator rights to install
- Does not patch Windows 7

USB Blocking Software
USB blocking software sits on top of Windows and adds what the registry and Group Policy lack: an approved-device list, a password prompt and a log. It is worth paying for only when you need those three things; a single-user PC rarely does.
| Feature | USB Block | Registry value | Group Policy | BIOS switch |
|---|---|---|---|---|
| Allow approved drives | Yes, through an authorized list | No | No (per class) | No |
| Password to open a new device | Yes | No | No | No |
| Log of attempts | Yes | No | No | No |
| Works on Windows Home | Windows 7 listed; edition list not stated | Yes | No | Yes |
| Cost | Paid | Free | Free | Free |
| Verdict | Best for shared PCs | Best for one PC | Best on Professional | Best for kiosks |
Independent write-ups such as a comparison of free USB blocking software are useful for sanity checks. We name no other vendor here, because their features change faster than a guide can follow.
Netsoftwares USB Block
People searching for Netsoftwares USB Block are looking for USB Block from NewSoftwares.net, a Windows program that blocks USB storage, discs and network drives. The company name is spelled NewSoftwares, and the product page lists Windows 7, 8 and 10 as supported versions.
USB Malware Blocker
No USB blocker is antivirus software, and the vendor says so on its product page. Blocking storage prevents a malicious stick from mounting, which removes one delivery route. It does not scan files already on the PC, so keep an antivirus tool that still receives definition updates.
A related search is how malware spreads from a stick at all. Our end-of-support checklist covers the remaining routes on an unpatched system.
When the Block Does Not Work: Problem, Cause, Fix
Most failed blocks come from one of five causes: the PC never restarted, the Start value sits under a different control set, a Group Policy entry is set to the wrong class, the edition lacks gpedit.msc, or the device is a phone that is not mass storage.
| Problem | Likely cause | Fix |
|---|---|---|
| Drive still opens | No restart, or phone-type device | Restart; for phones, enable the WPD deny settings in Group Policy |
| gpedit.msc not found | Windows Home edition | Use the registry value or software; the editor is not part of Home |
| Keyboard stopped working | A USB root hub was disabled | Use a PS/2 or on-screen keyboard, or boot to Safe Mode and re-enable the hub |
| Value resets to 3 | Another policy or software rewrites it | Check for a startup script, management software or a policy that overrides it |
| Access denied on every drive | Deny keys left from an earlier setup | Remove entries under the RemovableStorageDevices key |
The full recovery walkthrough, including leftover policy keys, lives on the re-enable page.
Troubleshooting checklist
0 of 6 completed
What USB Block Does on Windows 7
USB Block provides four switches in its Control Center: block USB devices, block discs and floppy drives, block network access and block non-system drives. Each switch shows its protection status, so you can see at a glance which classes are blocked right now.

- Best for
- Shared PCs, small offices and family computers that need an allow-list.
- Not ideal for
- A single-user PC where the free registry value already does the job.
- Logging
- Allowed devices, access times and incorrect password attempts are recorded.
- Password
- An unauthorized device needs the password before it opens.
Software-Based USB Blocking Step-by-Step
Installing a dedicated blocker on Windows 7 takes about ten minutes: install with administrator rights, switch on the USB device block, authorize your own drives, set a password and read the log. Treat it as a tutorial for one product, not the only way.
Install with administrator rights
Download the installer from the official download page and run it from an administrator account. The vendor states that installation needs administrator rights.
Switch on the USB block
Open Control Center and switch on Block USB Devices. Add the disc, network or non-system drive blocks if you need them.
Authorize your own drives
Add trusted drives to the authorized list so they open without a prompt. Anything not on the list stays locked until the password is entered.
Set a password
Choose a password in Program Options and store it with your admin notes. The settings screen also offers protection in Safe Mode.
Check the reports
Open Reports and Logs to see attempts. An empty log after a test insertion means the device was never seen, which is worth investigating.

How to Allow Approved Drives Only
Allowing only approved drives needs software that identifies each device, because the registry value and Group Policy block entire classes. With a blocker, you authorize a short list of drives, and every other drive is refused or asked for a password.
Keep the list small: one backup drive per person is easier to audit than a shared pile. Label each approved drive physically, record who owns it and review the authorized list monthly. When someone leaves, remove their drive from the list rather than trusting them to return it.
Without software, the manual workaround is to set USBSTOR back to 3 for a minute, copy what you need and set it to 4 again. That leaves the port open to anyone in that window, so use it only on a PC you are watching.
Common Mistakes When You Block USB Ports in Windows 7
The most expensive mistakes are disabling USB hubs without a spare input device, editing the wrong control set, and trusting a block that was never tested. Each takes seconds to avoid and minutes to repair, so check them before you restart.
- Export the USBSTOR key first
- Test with a real flash drive
- Keep a second administrator account
- Record the original Start value
- Disable root hubs on a USB-keyboard PC
- Assume phones are covered
- Block and forget the restart
- Leave the change undocumented
Blocking USB ports makes a Windows 7 PC safe.
It removes one route. The system still lacks security updates, so network, browser and email attacks remain.
How to Verify It Worked After You Block USB Ports in Windows 7
To verify a Windows 7 USB block, plug in a known-good flash drive and check three things: no new drive letter in Computer, an error entry for the device in Device Manager, and a working keyboard and mouse. Repeat after a restart.
Insert a flash drive that works elsewhere
Use a drive you have already opened on another PC, so a failure cannot be a faulty stick.
Look in Computer
A blocked drive gets no drive letter. With Group Policy deny settings you may instead see an access denied message when you open it.
Open Device Manager
Click Start, type devmgmt.msc and look for a storage device with a warning icon.
Confirm everything else works
Move the mouse, type a sentence and print a test page. A block that hits these has gone too far.
The Block, Allow, Prove rule: block by device class, allow only named exceptions, and prove the result with a real drive before you walk away.
Is This Enough? What Else to Do After You Block USB Ports in Windows 7
A USB block is not enough on its own for Windows 7, because the operating system lost regular security updates on January 14, 2020. Pair the block with offline backups, a working antivirus tool, a standard user account for daily use and a plan to move off the system.
Microsoft states that PCs on Windows 7 no longer receive security updates and recommends moving to a newer Windows. Paid Extended Security Updates ended on January 10, 2023. Physical attacks through USB are broader than drives, as a discussion of physical USB and DMA attacks shows, so keep the PC out of reach of strangers too.
Policy rollout checklist for several PCs
- Apply the same registry file to each machine and keep a list of which ones received it.
- Test one PC first, then roll out.
- Give each administrator a documented way to undo the change.
The full checklist for an unsupported machine is on the after end of support page.
How to Re-enable USB Ports Safely
To re-enable USB storage on Windows 7, sign in as an administrator, set the USBSTOR Start value back to 3, set Group Policy removable-storage entries to Not Configured, and restart. Test with a drive, since leftover policy keys can still return an access denied message.
The detailed walkthrough, including the leftover-key check, is on the re-enable USB storage page.
USB Block Pricing: What You Get
USB Block is a paid program, and its product page shows a Buy Full Version option without listing a price. We therefore quote none here. Check the store page for the figure at the time you buy, and keep the built-in methods as your free baseline.
| Item | Built-in registry or policy | USB Block |
|---|---|---|
| Cost | Free | Paid; price shown at checkout |
| Approved-device list | Not available | Included |
| Log of attempts | Not available | Included |
| Trial terms | Not applicable | Not stated on the product page |
Is it worth it? For one personal PC, probably not: the registry value does the job. For a shared machine that needs a log and exceptions, the software removes manual work.
Who Should Use Which Option
Match the method to the machine: a Home PC with one user needs only the registry value, a Professional PC with settings to audit suits Group Policy, and a shared PC that needs exceptions and logs suits dedicated software. Everyone should also test with a drive.
Single user, Home edition
Registry value. Easy, free and reversible.
Professional or Ultimate owner
Group Policy for readable settings, registry as backup.
Shared family or shop PC
Software with an authorized list and a log.
Kiosk with a PS/2 keyboard
BIOS switch. Everything on USB stops, so plan input first.
Frequently Asked Questions About Blocking USB Ports in Windows 7
These twelve questions cover the registry, Group Policy and software routes for Windows 7. Each answer starts with the short version and then gives the conditions. Filter by topic if you only need one kind of answer.
Filter questions
How to block usb ports in windows 7?
Open Registry Editor as an administrator, go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR, change the Start value from 3 to 4 and restart. Flash drives and external disks then fail to load, while keyboards and mice keep working. Professional, Ultimate and Enterprise can use Group Policy instead.
Can I block usb ports in windows 7 without paid software?
Yes. The registry value, the Group Policy editor and Device Manager are all built in and free. The registry route works on every edition, while Group Policy needs Professional, Ultimate or Enterprise. Paid software mainly adds an approved-device list, a password and a log of connection attempts.
What is the fastest way to block usb ports in windows 7?
Changing the USBSTOR Start value to 4 takes about two minutes and one restart. Back up the key first through File, Export, so that you can restore it. The fastest route is also the bluntest, because it blocks every USB storage device with no exceptions.
What mistakes should I avoid when I block usb ports in windows 7?
Do not disable USB root hubs in Device Manager, because that cuts off your keyboard and mouse. Do not skip the registry backup, and do not assume phones are covered, since many connect as portable devices rather than storage. Always test with a real drive afterwards.
How do I check that it worked after I block usb ports in windows 7?
Plug in a known-good flash drive. No new drive letter should appear in Computer, and Device Manager usually shows an error entry for the storage device. Then confirm that the keyboard and mouse still respond. Test again after a restart, because some changes only apply at boot.
Can I block USB storage but keep my keyboard and mouse working?
Yes. The USBSTOR value and the Group Policy removable-disk settings target storage only, so keyboards, mice and most printers keep running. Only blocking at the BIOS or disabling USB hubs in Device Manager takes out every device, including the ones you type with.
Does blocking USB ports stop phone charging?
Usually not. The registry and policy methods stop data access, not power, so a phone on a USB port keeps charging. A phone that shows up as a portable device may need the separate WPD policy to stop file access. A BIOS-level block can cut charging as well.
Will USB blocking work on Windows Home?
The registry method works on Home Basic and Home Premium. The Group Policy editor does not exist on those editions, so the policy route is not available through the normal tools. Software-based blocking is the other option; check the vendor's edition list before you buy.
How do I re-enable USB ports as the administrator?
Sign in as an administrator, set the USBSTOR Start value back to 3, and set any Group Policy removable-storage entries to Not Configured. Restart, then test with a drive. If you still see an access denied message, look for leftover policy keys under the RemovableStorageDevices path.
Can I allow only one approved USB drive?
Not with the built-in methods, which treat all storage the same. An allow-list needs dedicated software that recognises a device and lets approved ones open. Some people unblock briefly for one trusted drive, but that leaves the port open for anyone during that window.
Is blocking USB ports enough to protect a Windows 7 PC?
No. Blocking removes one entry route for malware and data theft, but Windows 7 stopped receiving security updates on January 14, 2020. Network, email and browser attacks stay open. Treat the block as one layer next to isolation, backups and an upgrade plan.
Does the registry method stop autorun malware?
It stops the storage driver from loading, so files on the drive are not reachable. Windows 7 already ignores AutoRun entries for non-optical media. A device that presents itself as a CD drive is the exception Microsoft documents, so combine the block with antivirus and an up-to-date patch level.
In-Depth Answers to Common Search Questions
The questions below come up repeatedly when people try to block USB ports on Windows 7. Each gets a direct answer first, then the reasoning, so you can read only the ones that match your situation.
Can you block USB ports in Windows 7 without admin rights?
No. Changing the USBSTOR value, using gpedit.msc and installing a blocker all require administrator rights. If you cannot approve the User Account Control prompt, ask whoever owns the PC to make the change.
That requirement is also a protection: a standard user who plugs in a drive cannot reverse an administrator's block.
Is it possible to block USB ports in Windows 7 for free?
Yes. The registry value is free, so is Group Policy on Professional and above, and so is Device Manager. The only paid piece in this guide is optional software for exceptions and logs.
What is the easiest way to block USB ports in Windows 7?
The registry value. One edit and one restart handle every edition, and the table in the methods section shows how it compares with the alternatives. The easiest route is also the least flexible.
How can I block USB ports in Windows 7 for 2026 conditions?
The steps have not changed, but the context has: Windows 7 gets no updates, so the block belongs in a wider plan. Back up offline and consider moving to a supported system.
What are the steps to block USB ports in Windows 7 quickly?
Open regedit, browse to USBSTOR, set Start to 4, restart and test. The numbered list in the step-by-step section shows each action.
Our Verdict
For most Windows 7 users the USBSTOR registry value is the best first move: it is free, works on every edition and reverses in seconds. Choose Group Policy on Professional and above for readable settings, and choose software only when you need approved drives and a log.
Whatever you pick, test it with a real drive and remember that Windows 7 no longer receives security updates. A block lowers risk; it does not replace a supported system.
Go Deeper
Three companion pages narrow the guide to one situation each: undoing a block, choosing a method for your Windows 7 edition, and protecting a PC that no longer receives security updates. Pick the one that matches your next step.
About this guide. It is published by the NewSoftwares.net team, developer of USB Block. Free and built-in options are covered alongside our own, and we say where each falls short. Product questions go to the developer through the contact link in the footer.