How to Block USB Ports in BIOS: Step-by-Step Guide 2026
To block USB ports in BIOS, restart the PC, open firmware setup with the key your manufacturer uses (Del, F2, F10 or F1), set the USB ports you do not need to Disabled, add a supervisor password and save with F10. BIOS here means the UEFI or legacy firmware that starts before Windows 10 or 11. The switch works per port, so it cannot tell a flash drive from your own keyboard.
Open firmware setup, find USB Configuration (Dell, ASUS), the port list (HP) or I/O Port Access (Lenovo), disable the ports, set a supervisor password and save. Test with a spare drive. BIOS blocks by port, so pair it with a Windows or software rule when keyboards and approved drives must keep working.
| Applies to | Desktop and laptop PCs with UEFI or legacy BIOS, Windows 10 and 11 for the OS layers |
|---|---|
| Time needed | 10 to 15 minutes per PC, plus a test |
| Difficulty | Moderate: one wrong toggle can disable your keyboard |
| Cost | Free in BIOS; software layers are optional |
| Needs | Physical access, the setup key, a spare keyboard path |
| Last verified | November 2026 |
How to Block USB Ports in BIOS: Quick Answer
Blocking USB ports in BIOS takes five moves: restart into firmware setup, open the USB or I/O port menu, set the chosen ports to Disabled, protect setup with a supervisor password, and save with F10. The setting applies to every operating system on the PC, but it acts on ports, never on individual devices.
Pick your path
- I want the exact BIOS steps for my brand
- I only want to stop USB drives, not my keyboard
- I am worried about locking myself out
- I need my ports back
The three-locks rule
- Lock 1, the port switch. Disable the ports no one needs in firmware setup.
- Lock 2, the setup password. Without a supervisor or administrator password, anyone at the keyboard can switch the ports back on.
- Lock 3, the OS or software layer. Group Policy, a registry value or blocking software decides which device types work on the ports you keep.
What You Need Before You Start
Before changing any USB setting, gather four things: physical access to the PC, the setup key for your brand, a note of the current settings, and a second way to type if the keyboard stops responding. Firmware changes take effect at the next boot, so a mistake is only visible after a restart.
Requirement card
- Setup key: Del, F2, F10, F12 or F1 depending on the maker
- Supervisor password chosen in advance and stored somewhere safe
- A spare drive and a spare keyboard for testing
- Local administrator rights for any Windows layer
Limit card
- Port switches are per port or per controller, never per device
- Laptops often have fewer USB options than desktops
- Some boards expose no USB menu at all
- The rollback plan below only works with physical access
Photograph every BIOS screen you touch before you change it. A photo of the original values is the cheapest rollback plan, and it takes under a minute.
Step-by-Step: Block USB Ports in BIOS
To block USB ports in BIOS, record the current settings, enter setup with your brand key, open the USB or port menu, disable the ports you do not need while keeping one keyboard path, set a supervisor password, then save with F10 and test. The whole job takes about 15 minutes.
Record the current state
Open setup once without changing anything, photograph the USB and security screens and note the BIOS version on the main page. Dell, HP, Lenovo and ASUS all show it on the first or second screen.
Enter firmware setup
Restart and tap the key as the logo appears. Dell uses F2, HP uses F10 on workstations, ASUS boards use Del and Lenovo uses F1.
Open the USB menu
Look under Advanced, System Configuration, Security or Devices. The table below lists the paths found in the vendors' own documentation.
Disable the ports, but keep one input path
Switch the front ports off first, since they are the easiest for a visitor to reach. Leave at least one rear port on for your keyboard unless the board documents that keyboards always work in setup.
Set the supervisor password
Under Security, set the setup or administrator password. Dell describes it as allowing the BIOS to be viewed but not modified, and it does not stop the PC from booting normally.
Save, restart and test
Press F10, confirm, and cold-boot. Plug a spare drive into every port you disabled and one you kept. Windows should show nothing for the disabled ones.
Menu paths by brand
| Brand and model family | Setup key | Menu path | Notes |
|---|---|---|---|
| Dell OptiPlex, XPS desktops | F2 at the logo | System Configuration, USB Configuration | Options include Enable Front USB Ports, Enable Rear USB Ports and Enable Boot Support. Dell notes a USB keyboard and mouse always work inside setup on some models. |
| HP workstations and desktops | F10 | Port list in Computer Setup, then Enabled or Disabled per port | Some HP business models add a USB Security group and a Restrict USB Device list. |
| Lenovo ThinkPad | F1 | Security, I/O Port Access, USB Port | Newer ThinkPads move some items to Config. Menu names change by generation. |
| Lenovo ThinkCentre, ThinkStation | F1 | Devices, then the USB device you want | Some ThinkStation models add Smart USB Protection with Disabled, Read Only and No Access modes. |
| ASUS desktop boards | Del, then F7 | Advanced, USB Configuration, USB Single Port Control | Select Exit, then Save Changes and Reset to apply. |
| Intel NUC | F2 | Advanced, Devices, USB | Lists Portable Device Charging Mode, which affects power rather than data. |
| Verdict | Menu names differ, but every brand above exposes at least a front and rear split | Always read the on-screen help text for the exact option. |
Why Block USB Ports at All
USB ports let a stranger copy files out, plug a malware-carrying drive in, or attach a keyboard-emulating gadget in seconds. Closing unused ports shrinks that physical attack surface for shared desks, reception PCs, lab machines and home computers that guests can reach.
Security vendors describe keystroke-injection devices as a separate class of problem from storage. Netwrix wrote in 2025 that blocking storage does not block a device that presents itself as a keyboard, which is why port-level and device-level controls complement each other. Insider copying is the quieter risk: a 64 GB drive fits in a pocket and leaves no email trail. A readable overview of drive risks sits in this guide to USB flash drive security risks and best practices.
Disabling USB in BIOS also stops a laptop from powering or charging things on its ports.
Dell states that its Thunderbolt USB-C power delivery has no BIOS off switch, and HP forum answers note that USB Legacy Port Charging covers USB-A ports only.
Best Free Methods to Block USB Ports in BIOS
Three free options exist inside BIOS and around it: the per-port Disabled switch, the supervisor password that protects it, and a physical measure such as disconnecting a front-panel header on a desktop you own. Each costs nothing, and together they cover the casual walk-up case.
Port switch plus supervisor password
Use the steps above. Best for a single PC with no exceptions. The honest limit is that the password protects the menu, not the hardware, and a CMOS reset on a board you can open restores defaults.
- No software to install
- Works before Windows loads
- Applies to any OS
- Per port only
- No log of attempts
- Keyboard lockout risk
Physical disconnect or port cover
On a desktop you own, unplugging the front-panel USB header leaves only the rear ports live, and a Dell community answer suggests taping the loose ends. A lockable case or a port cover handles the rest. Do not do this on leased or warranty-sensitive hardware.
Free roundups of third-party tools also exist; one independent list is this overview of free USB blocking software.
Use the port switch for ports no one needs and keep the setup password in a password manager. That pairing is the strongest free combination.
Built-in Windows Methods Compared
Windows offers two built-in ways to stop USB storage without touching BIOS: a Group Policy rule named All Removable Storage classes: Deny all access, and the USBSTOR registry value set to 4. Group Policy needs Pro, Enterprise or Education; the registry works on Home too.
| Method | Where to set it | Editions | Affects keyboards? | Rollback |
|---|---|---|---|---|
| Group Policy deny rule | Computer Configuration, Administrative Templates, System, Removable Storage Access | Pro, Enterprise, Education | No, storage classes only | Set to Not Configured, then restart |
| USBSTOR registry value | HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR, Start | All editions | No, storage driver only | Set Start back to 3 |
| BIOS port switch | Firmware setup | Any, even without an OS | Yes, if the port is shared | Set to Enabled in setup |
| Verdict | Registry on Home, Group Policy on Pro, BIOS for ports no one needs | Use more than one |
Microsoft describes the registry route as applying when a USB storage device is already installed, with 3 as the working value and 4 as disabled. Microsoft's own Group Policy documentation also notes the setting does not apply until the system restarts unless a forced reboot is configured. The Local Group Policy Editor is absent from Windows Home, according to Microsoft Q&A answers, which is why Home users rely on the registry value.
Windows Home or Pro: storage-class switch in the registry (run as administrator)
; Save as block-usb-storage.reg and double-click. Default is 3.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
"Start"=dword:00000004PowerShell: set the value, then restore it later
# Block USB storage (Start = 4)
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR" -Name "Start" -Value 4
# Restore USB storage (Start = 3)
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR" -Name "Start" -Value 3Editing the registry or policy on a PC you cannot reboot into a working state is risky. Export the key first, and test on a spare machine. For a deeper treatment of storage-only control, read the guide to blocking USB storage while keeping the keyboard and mouse working.
USB Malware Blocker
A USB malware blocker is any control that stops a hostile device from running on your PC: closed ports, a storage deny rule or blocking software. Storage blocking stops infected drives, but keyboard-emulating devices such as Rubber Ducky and BadUSB gadgets present as input hardware and need device-level allow-lists.
Netwrix and Ivanti both describe keystroke-injection devices as bypassing antivirus because the PC trusts keyboards by default. That is why this guide treats BIOS blocking as the first of three locks, not the whole answer. Autorun worms spread through drives, and a WithSecure advisory on the Downadup outbreak recommended disabling USB storage entirely during an outbreak. For a plain-language look at detecting infected drives, see this guide to USB malware detection and data leak prevention.
- Infected flash drives and external disks
- Casual copying to a personal drive
- Autorun-style payloads from storage
- Devices that pose as keyboards
- Network shares and cloud uploads
- Anyone holding the setup password
Common Mistakes When You Block USB Ports in BIOS
Six errors cause most failed USB lockdowns: disabling every controller, skipping the supervisor password, forgetting power-only behavior on USB-C, not recording the original settings, testing one port only, and assuming a BIOS password protects individual ports. Each one has a quick check that prevents it.
Disabling every USB controller or legacy support at once. On some boards the keyboard then stops working in setup. Intel documents restoring BIOS defaults as the fix.
No supervisor password. Without it the toggle can be reversed by anyone in about a minute.
Expecting charging to stop. Dell states its Thunderbolt USB-C power delivery has no BIOS off switch.
No photo of the original screens. A rollback without a record is guesswork.
Testing only one port. Front, rear and hub ports can sit on separate controllers.
Thinking a password guards the ports. It guards the setup menu. The question appears often on Microsoft Q&A.
If you have already made one of these mistakes, the walkthrough in what to do when your keyboard stops working after a USB change in BIOS covers the order of recovery options.
How to Verify It Worked After You Block USB Ports in BIOS
Verification takes five minutes: cold-boot the PC, plug a known drive into every port, check Device Manager for new entries, confirm your keyboard still types, and re-enter setup to see the saved values and the password prompt. Anything that responds is not blocked.
Is This Enough? What Else to Do After You Block USB Ports in BIOS
A BIOS port switch is rarely enough alone. Keyboard-class devices, USB-C power, Thunderbolt direct memory access, a known setup password and physical CMOS resets all sit outside what the switch controls. Add a Windows or software layer, store the password safely, and secure the case.
| Gap | Why it exists | Practical fix |
|---|---|---|
| Keyboard-emulating devices | The port is on, or the device is a trusted class | Device allow-list by vendor and product ID |
| USB-C power delivery | Dell documents no BIOS control for Thunderbolt Type-C power | Unplug AC, or use manufacturer restricted modes where offered |
| Thunderbolt and DMA access | Physical ports can expose memory on some designs, as discussed on Security Stack Exchange | Kernel DMA protection where the platform provides it |
| Setup password known or reset | CMOS reset restores defaults on boards you can open | Lock the case, store the password in a manager |
| Cloud and email exits | Files can leave over the network instead | Network and cloud controls, outside this guide |
BIOS, Group Policy, Registry or Software: Which Fits Your PC
Choose by the exception you need. One PC with no exceptions suits the BIOS switch plus a password. Keyboards must keep working: use a Group Policy or registry storage rule. Approved drives, logs or several PCs point to blocking software with an allow-list.
| Method | Difficulty | Security | Cost | Best for | Limitations |
|---|---|---|---|---|---|
| BIOS switch | Moderate | Strong against casual use | Free | Ports nobody needs | Per port, lockout risk |
| Group Policy | Moderate | Good for storage | Free with Pro or higher | Office PCs with a keyboard rule | No Home edition, no allow-list prompt |
| Registry value | Moderate | Good for storage | Free | Windows Home | Manual edit, easy to undo by an admin |
| Blocking software | Easy | Good, with logs | One-time payment | Allow-lists and several PCs | Windows only |
| Verdict | Layer them: BIOS for unused ports, storage rule or software for the rest | For the full side-by-side, see the BIOS versus Group Policy versus blocking software comparison |
Netsoftwares USB Block
After the free options, we recommend USB Block from NewSoftwares.net for readers who need an allow-list, a password prompt and a log. The official page describes it as USB blocker software for Windows that stops unauthorized storage, discs, network drives and non-system drives. It is not a BIOS tool.
The product page says USB Block blocks flash drives, external hard drives, memory cards, CDs, DVDs, network drives and non-system partitions, lets you whitelist your own devices, requires a password to open an unauthorized one, and logs allowed devices and wrong password attempts. Our reading is simple: it adds the access control that the BIOS switch lacks. Details are on USB Block's official product page.
- Allow-listed personal or company drives
- Password prompt before opening an unknown device
- Access log for review
- Windows only; Windows 11 is not named on the product page
- Does not replace the BIOS password
- Page does not describe keyboard-class filtering



- Platform
- Windows. The product page lists Windows 10, 8 and 7, plus Windows Server 2008, 2012, 2016 and 2019.
- Install
- Requires administrator rights.
- Trial
- The page mentions a full version that removes trial limits but does not describe the trial itself.
USB Blocking Software
USB blocking software sits between the BIOS switch and enterprise device control. It runs inside Windows, applies a deny rule to storage categories, and adds what policy alone lacks: an allow-list, a password prompt and activity logs. Three families exist, compared below by what each gives you.
| Option | What it controls | Allow-list | Log | Fit |
|---|---|---|---|---|
| USB Block | Storage, discs, network drives, non-system drives | Whitelist of your devices | Allowed devices and wrong passwords | Single PCs and small offices on Windows |
| Windows Group Policy | Removable storage classes | Via device ID rules | Event logs only | Pro and above, free |
| Defender for Endpoint device control | Removable media, printers, portable devices by policy | Yes, XML policy rules | Yes, in the console | Managed fleets with Defender licensing |
| Netwrix Endpoint Protector | Device control, including keyboard vendor ID checks | Yes | Yes | Larger organizations |
| Verdict | Software earns its cost when you need allow-lists and logs without a managed fleet | Match the tool to the fleet size |
For a broader look at alternatives, one independent roundup is this list of USB port locking tools. A full cost and effort comparison between software, policy and firmware lives in our three-way comparison of USB control methods.
How to Allow Approved Drives Only
Allowing only approved drives needs a device identity, not a port switch. Windows can allow a hardware ID through device installation rules, some HP business BIOS menus carry a Restrict USB Device list, and blocking software keeps an authorized-devices list. Pick one and test with an unlisted drive.
A vendor and product ID pair may match every drive of one model, so a cheap bulk-bought drive can share an ID. Check how your tool treats the serial number. USB Block shows an Authorized Devices tab where permitted devices are listed.

Software-Based USB Blocking Step-by-Step
To block USB storage with blocking software, install it as an administrator, set the password, switch on the categories you want in the control screen, authorize any devices that must work, and read the log. Using USB Block as the example, the job takes about ten minutes.
Install with administrator rights
Run the Windows installer from the official downloads page as an administrator. The product page states that installation needs administrator rights.
Set your password
Open Program Options and set the password. The same tab holds stealth mode and Safe Mode protection settings.

Switch on the blocks you need
In Control Center, enable the categories to block: USB devices, discs and floppy drives, network access and non-system drives.

Authorize your devices
Add the drives that must keep working to the authorized list, then test with one from the list and one that is not.
Review the log
The Reports and Logs tab records devices and usage so you can spot unexpected attempts.

Ready to add the third lock?
USB Block works alongside your BIOS setup password and storage rules.
What USB Block Costs
The NewSoftwares store lists USB Block at 49.95 USD as a one-time payment, while the product page shows no price and does not describe trial length. Treat the store listing as the current figure and confirm it at checkout, since prices can change after this guide was verified.
| Item | What the official pages show |
|---|---|
| Store listing | 49.95 USD, shown as one-time |
| Product page | Promotes a full version that removes trial reminders and limitations |
| Trial terms | Not described on the product page |
| Licence tiers | Not shown on the store listing |
Is it worth it? If you protect one PC and keep no exceptions, the BIOS switch and a registry value cost nothing and may be enough. The payment makes sense when you need an allow-list, a password prompt and a log, or when you would otherwise repeat manual edits on several PCs. See the NewSoftwares store listing for the current offer.
How to Re-enable USB Ports Safely
To re-enable USB ports as the administrator, reverse each layer you changed: set the ports to Enabled in BIOS and save, restore the USBSTOR value to 3, set the Group Policy rule to Not Configured, or unblock in the software with your password. Restart after each change and test with a known drive.
Firmware
Enter setup with the supervisor password, set the ports to Enabled and save with F10.
Windows policy
Set the removable-storage rule to Not Configured and restart, because the change applies after a restart.
Registry
Set the USBSTOR Start value back to 3 and restart.
If the keyboard no longer works, do not guess. The full recovery order, including PS/2 and CMOS options, is in our recovery guide for USB input that died after a BIOS change.
Only re-enable ports on hardware you own or administer. If a setup password is forgotten, contact the manufacturer; HP documents that on some systems a forgotten password can require a system board replacement.
Rolling Out a USB Policy to Several PCs
Roll a USB policy out to a pilot PC first, test with a known drive and a keyboard, then repeat in batches. The same three locks apply on every PC, so write the steps once and reuse them. The generator below builds a short checklist from your answers.
In-Depth Answers to Common Questions
These four answers cover the questions that come up most after the main steps: whether every PC can do this, how other brands name the setting, what changes on Windows 11, and what to do on laptops. Each stands alone, so read only the one you need.
Is it possible to block USB ports in BIOS on every PC?
Not on every PC. Many desktops and business laptops expose per-port switches, but some consumer boards offer only a single controller toggle or no USB menu at all. Check your manual or the firmware help text before you plan around it.
When the BIOS offers nothing, fall back to the Windows storage rule, a software layer or a physical measure. A missing menu is a firmware design choice, not a fault.
What is the easiest way to block USB ports in BIOS?
The easiest way is to disable the front ports in the USB Configuration or port menu and set the supervisor password in the same session. Two toggles and one password remove the most reachable ports and stop the change being reversed casually.
Keep the rear ports for your own devices, then test as described in the verification checklist.
How do laptops differ when you block USB ports in BIOS?
Laptops usually expose fewer USB options than desktops. Many hide per-port switches and show a single USB or external port setting, while Lenovo ThinkPads add I/O Port Access and USB-C Restricted Mode on some models. Always keep a charging path and a way to type.
Check the vendor documentation for your exact model number, since menu layouts change between generations.
Do BIOS USB settings still work on Windows 11 in 2026?
Yes, because firmware settings sit below Windows. A disabled port stays disabled on Windows 10, Windows 11 and Linux alike. Only the Windows layers, Group Policy and registry, depend on the OS version, so retest them after major feature updates.
That independence is why BIOS blocking remains the right first lock even as Windows builds change.
Frequently Asked Questions
These fourteen answers cover how to block USB ports in BIOS, what it does and does not stop, and how to undo it. Filter by topic with the chips, or read them in order. Each answer opens with the direct reply and then adds the condition that matters.
How to block usb ports in bios?
Restart the PC, press your setup key, open the USB or port menu, set each unneeded port to Disabled, add a supervisor password and press F10 to save. The exact menu name varies by brand, so check the table in the step-by-step section. Test every port with a spare drive afterwards.
Can I block usb ports in bios without paid software?
Yes. The BIOS port switch and a supervisor password cost nothing, and Windows Pro adds a free Group Policy rule for storage. Windows Home can use a registry value. Paid software only becomes necessary when you need an allow-list, a password prompt for unknown drives or an access log.
What is the fastest way to block usb ports in bios?
Disable the front USB ports first. That is a single toggle on most Dell, HP and ASUS firmware, takes about two minutes, and removes the ports a visitor can reach most easily. Add the supervisor password in the same visit, otherwise the change can be reversed in seconds.
What mistakes should I avoid when I block usb ports in bios?
Avoid disabling every controller at once, skipping the supervisor password, forgetting that USB-C may still supply power, and failing to note the original settings. The biggest practical risk is a dead keyboard that blocks your own way back into setup.
How do I check that it worked after I block usb ports in bios?
Cold-boot, then plug a known drive into each disabled port and watch for any response in File Explorer or Device Manager. Repeat with a keyboard on the ports you kept. A disabled port stays silent: no drive letter, no new device entry and no charging indicator on a phone.
Can I block USB storage but keep my keyboard and mouse working?
Yes, but not with the BIOS switch alone, because that acts per port. Use a Group Policy rule for removable storage, the USBSTOR registry value or blocking software, all of which target storage classes. The dedicated guide on this site walks through the details and the limits.
Does blocking USB ports stop phone charging?
Not always. Dell documents that its Thunderbolt USB-C power delivery has no BIOS off switch, and HP owners report that the legacy charging option covers USB-A only. A disabled data port can still deliver power. Lenovo offers USB-C Restricted Mode on some ThinkPads to cut data while charging continues.
Will USB blocking work on Windows Home?
The BIOS switch works on any edition because it runs before Windows starts. The Local Group Policy Editor is missing from Windows Home, so use the USBSTOR registry value there, or a software tool. Registry edits need administrator rights and a restart to take effect.
How do I re-enable USB ports as the administrator?
Reverse whichever layer you changed. In BIOS, set the ports to Enabled and save. For the registry, set USBSTOR Start back to 3 and restart. For Group Policy, set the rule to Not Configured. In blocking software, unblock from the control window using your password.
Can I allow only one approved USB drive?
Yes, with the right layer. Windows device installation rules can allow a hardware ID, some HP business BIOS menus have a restriction list, and blocking software can keep an authorized-devices list. A BIOS port switch alone cannot make that distinction, because it is all or nothing per port.
Does the BIOS USB setting affect Linux or a dual-boot PC?
Yes. Firmware settings act before any operating system loads, so a disabled port stays disabled in Linux, Windows or a live USB environment. That is the main advantage of BIOS blocking over Windows policy, which only governs the installed Windows system.
Can I password protect USB ports in BIOS?
Not the ports themselves. A supervisor or administrator password locks the setup menu so the port settings cannot be changed. Dell describes its admin password as allowing viewing but blocking changes. Per-device password prompts require blocking software rather than firmware.
What happens to a USB keyboard if I disable USB in BIOS?
It may stop working in setup and in Windows. Intel documents that a keyboard and mouse can fail when all ports are disabled, and the fix is restoring BIOS defaults. Some Dell models keep keyboards live in setup regardless. Keep one port enabled or a PS/2 path ready.
Does Windows 11 change how I block USB ports?
The BIOS layer does not depend on the Windows version. Microsoft documents the same removable-storage policy path and the same USBSTOR value for current Windows releases, but retest after a major feature update, because policy behavior can shift between builds.
Our Verdict: Three Locks for One USB Lockdown
For most readers the best result is layered: disable unused ports in BIOS, set a supervisor password, and add a Windows storage rule or USB Block for what firmware cannot judge. The BIOS switch alone is quick but blunt, and software alone ignores boot-time access.
If you protect one PC and need no exceptions, the free route is enough. If drives must be approved, keyboards must keep working, or several PCs are involved, add a software layer. Whatever you choose, record the original settings and keep the password somewhere safe.
Go Deeper: Three Guides for Specific Problems
Three supporting guides handle the questions this page only summarises: recovering a PC whose keyboard died after a USB change, comparing BIOS, Group Policy and software side by side, and blocking storage while input devices keep working. Each is written to stand alone.
Keyboard dead after a BIOS USB change
Owner recovery in the right order, from PS/2 to the clear CMOS jumper.
BIOS vs Group Policy vs software
Cost, effort, logging and bypass risk compared in one table.
Block storage, keep input working
Device classes, the USBSTOR switch and a quick lockout test.
This guide is published by the NewSoftwares.net team, the developer of USB Block. It covers free and built-in options alongside our own, so you can pick the lightest layer that does the job. For product questions, you can contact the developer.



