Summary of some simple ways to disable USB ports on Windows computers

Unlocking USB ports in BIOS is not difficult. However, how to lock computer USB ports ? Let's find out with WebTech360!

USB port is a component available on every computer. It is the place where you connect your PC to portable storage, allowing you to access data that is not on the current system. It is very useful, however, when used, it can potentially be infected with viruses. In this case, block the USB port.

In the article below, WebTech360 will guide you through some simple ways to disable USB ports in Windows operating system.

1. Disable USB port by disabling Autorun

Most malware spreads via USB devices due to the Autorun feature automatically executing a file mentioned in the autorun.inf file located at the root of the USB device directory tree.

Therefore, the best way is to disable Autorun to disable USB ports, preventing malware and viruses from attacking your computer.

To do this, follow the steps below:

1. First press the Windows + R key combination to open the Run command window, then type Gpedit.msc into it.

2. On the new window that appears on the screen, you navigate by key:

Computer Configuration => Administrative Templates => Windows Components

Next click Autoplay Policies .

If you are using Windows XP, navigate to the key:

Computer Configuration => Administrative Templates => System

4. In the Details panel , double-click Turn off Autoplay .

5. Click Enabled, then on the Turn off Autoplays dialog box, click All drivers to disable Autorun on all drives.

Summary of some simple ways to disable USB ports on Windows computers

2. Using BIOS

This is the simplest and easiest way to do it. When starting the computer, press Delete, F2, F8... to access BIOS. Here, find Advanced Settings or Onboard Devices (depending on the different types of mainboards, the shortcut keys to access and the order of the menus are also different):

Summary of some simple ways to disable USB ports on Windows computers

In the USB Configuration section , change Enable to Disable , then press F10 to save changes and restart the system.

3. Disable USB Ports via Registry

To disable USB ports on Windows computers via Registry, follow the steps below:

1. Press the Windows + R key combination to open the Run command window. Or alternatively, click Start, then click Run .

2. Next, on the Run window, go there to open Registry Editor.

Summary of some simple ways to disable USB ports on Windows computers

3. On the Registry Editor window, navigate to the key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\usbstor

Summary of some simple ways to disable USB ports on Windows computers

4. Next in the right pane, double-click Start .

5. In the Value Data box , set the value to 4 and then click OK .

Summary of some simple ways to disable USB ports on Windows computers

6. Finally close the Registry Editor window and refresh your computer.

7. If you want to re-enable the USB port, follow the same steps and set the value in the Value Data box to 3.

4. Disable USB ports via Device Manager

This is one of the simple ways to disable USB ports on Windows 7 and Windows 8.

1. Type device manage into the Search box on the Start Menu, then press Enter to open the Device manager window.

2. On the Device Manager window, find and click Universal Serial Bus Controllers (USB) .

Summary of some simple ways to disable USB ports on Windows computers

3. Double click on the specific USB port.

4. On the USB Root dialog window, click the Driver tab.

5. Click Disable .

Summary of some simple ways to disable USB ports on Windows computers

5. Disable USB ports using software

You can download or buy the best software and tools to protect your Windows 7 computer from data loss and theft when enabling or disabling USB ports. In addition, you can download USB Drive Disable Pro to enable or disable USB ports on Windows 7 computers / laptops.

Download USB Drive Disable Pro to your computer and install it here .

6. Disable USB Ports on Windows 7 Using USB Mass Storage

Whenever you plug in a USB drive on your Windows computer, Windows will check for driver installation or not. If Windows does not find a USB driver, then you will have to install the USB driver. Once the USB driver is installed, you can access the Pendrive or any other USB device on your Windows computer.

7. Disable USB ports using Group Policy Editor

Group Policy Editor is a built-in tool on Windows that allows you to personalize your computer or network settings. In this case, you can use it to block USB on your computer.

  1. Use Win + R to open the Run dialog box.
  2. Type gpedit.msc and press Enter . Windows will now open the Local Group Policy Editor .
  3. Using the left-hand menu, go to Computer Configuration > Administrative Templates > System > Removable Storage Access .
  4. On the right side of the window, locate and open Removable Disks: Deny execute access .
  5. Select Enabled and click Apply > OK .
  6. Open Removable Disks: Deny read access , select Enabled and save the new system settings.

If you need to re-enable the USB port, repeat the steps above and select Not Configured for both settings.

See more articles below:

Good luck!

Tags: #System

Leave a Comment

Fix Windows Error Code 0xc0000098: Backup ACPI.sys to Prevent Boot Failure

Fix Windows Error Code 0xc0000098: Backup ACPI.sys to Prevent Boot Failure

Error code 0xc0000098 in Windows causes a blue screen error on startup. The ACPI.sys driver is often to blame, especially on unsupported versions of Windows 11 like 23H2 or 22H2 or Windows 10.

Quickly fix Windows 10/8/7 computer error that freezes and cannot exit Safe Mode

Quickly fix Windows 10/8/7 computer error that freezes and cannot exit Safe Mode

In some cases, sometimes you start your computer in Safe Mode and the computer freezes. So how to fix the error in this case, please refer to the article below of WebTech360.

How to fix Snipping Tool keeps showing error

How to fix Snipping Tool keeps showing error

Snipping Tool is a powerful photo and video capture tool on Windows. However, this tool sometimes has some errors, such as constantly displaying on the screen.

How to get the fastest internet connection from your router

How to get the fastest internet connection from your router

Every network has a router to access the Internet, but not everyone knows how to make the router work better. In this article, we will introduce some router tips to help speed up the wireless connection in the network.

Common Mistakes When Performing Internet Speed ​​Tests

Common Mistakes When Performing Internet Speed ​​Tests

If the results seem slower than expected, don't be too quick to blame your ISP - mistakes when performing the test can skew your numbers.

What is QoS? How to use QoS for faster Internet speeds when you need it most

What is QoS? How to use QoS for faster Internet speeds when you need it most

In the article below, we will introduce and guide you to learn about the concept of QoS - Quality of Service on router devices.

Why cant this built-in Credential Manager feature in Windows replace a password manager?

Why cant this built-in Credential Manager feature in Windows replace a password manager?

Windows has a built-in Credential Manager, but it's not what you think it is—and certainly not a replacement for a password manager.

How to install free HEVC codecs on Windows 10 (for H.265 video)

How to install free HEVC codecs on Windows 10 (for H.265 video)

Microsoft charges for its official codecs and doesn't include them in Windows 10. However, you can get them for free without pulling out your credit card and spending $0.99.

Instructions to fix Access Denied error when accessing files or folders on Windows

Instructions to fix Access Denied error when accessing files or folders on Windows

While having trouble accessing files and folders can be frustrating, don't panic—with a few simple tweaks, you can regain access to your system.

How to check if USB Boot has been created successfully?

How to check if USB Boot has been created successfully?

After creating a USB boot to install Windows, users should check the USB boot's performance to see if it was created successfully or not.

4 Types of Windows Data That Are Growing in Size: How to Control Them?

4 Types of Windows Data That Are Growing in Size: How to Control Them?

Although Windows Storage Sense efficiently deletes temporary files, some types of data are permanent and continue to accumulate.

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

You can turn off Windows 11 background apps to optimize performance, save battery and reduce RAM consumption.

Instructions to fix the error “Network path was not found” in Windows

Instructions to fix the error “Network path was not found” in Windows

When a computer, mobile device, or printer tries to connect to a Microsoft Windows computer over a network, for example, the error message network path was not found — Error 0x80070035 may appear.

How to block Internet connection of Windows 10 software and applications

How to block Internet connection of Windows 10 software and applications

We can block Internet access for any application or software on the computer, while other programs can still access the network. The following article will guide readers on how to disable Internet access for software and applications on Windows.

How to Stay Safe on Windows 10 Until 2030

How to Stay Safe on Windows 10 Until 2030

Instead of paying $30 for a year of security updates, keep Windows 10 safe until 2030 with this simple solution.

How to Fix Windows 11 Ping Spikes Over Wi-Fi Fixes

How to Fix Windows 11 Ping Spikes Over Wi-Fi Fixes

Struggling with ping spikes on Windows 11 over Wi-Fi? Discover proven fixes to stabilize your connection, reduce lag, and enjoy smooth gaming or streaming. Step-by-step solutions for instant results.

How to Recover Deleted Photos in Windows 11

How to Recover Deleted Photos in Windows 11

Accidentally deleted precious photos? Discover proven methods to recover deleted photos in Windows 11 effortlessly. Step-by-step guides, tools, and tips to restore your images safely.

How to Use Windows 11 Terminal Instead of CMD

How to Use Windows 11 Terminal Instead of CMD

Discover how to use Windows 11 Terminal instead of CMD for a modern, efficient command-line interface. Learn installation, setup, and tips to boost your productivity with tabs, themes, and more.

How to Activate Windows 11 Pro Without a Product Key

How to Activate Windows 11 Pro Without a Product Key

Discover safe, legitimate ways to activate Windows 11 Pro without a product key. Learn step-by-step methods using built-in tools and official Microsoft options to get your OS up and running smoothly. No risks, no hassle – just pure productivity.

Fixing Battery Drain During Hibernate in Windows 11

Fixing Battery Drain During Hibernate in Windows 11

Struggling with battery drain during hibernate in Windows 11? Discover expert fixes to preserve your laptop

How to Fix Windows 11 Input Lag for Valorant and CS2

How to Fix Windows 11 Input Lag for Valorant and CS2

Struggling with input lag in Windows 11 while playing Valorant or CS2? Discover proven, step-by-step fixes to restore smooth gameplay and boost your performance. Say goodbye to delays and hello to precision shots.

How to Fix Out of Memory Error in Microsoft Edge

How to Fix Out of Memory Error in Microsoft Edge

Struggling with the frustrating "Out of Memory" error in Microsoft Edge? Discover proven, step-by-step fixes to reclaim your browsing speed and stability. Updated with the latest tips for optimal performance.

How to Fix Windows 11 Google Drive Not Launching Fix

How to Fix Windows 11 Google Drive Not Launching Fix

Struggling with Google Drive not launching on Windows 11? Discover proven fixes to resolve the issue fast, from restarts to advanced troubleshooting. Get your cloud storage working seamlessly today!

How to Disable Gamebar Presence Writer for Performance

How to Disable Gamebar Presence Writer for Performance

Discover how to disable Game Bar Presence Writer on Windows to optimize gaming performance. Step-by-step guide to reduce lag, boost FPS, and enhance your setup for smoother gameplay. Essential tips for gamers in 2026.

Solving Edge Browser Crashing After Windows Update

Solving Edge Browser Crashing After Windows Update

Struggling with Microsoft Edge crashing after a Windows update? Discover proven, step-by-step fixes to restore smooth browsing. Updated with the latest solutions for 2026. Get back online fast!

How to Fix Windows 11 Desktop Icons Moving

How to Fix Windows 11 Desktop Icons Moving

Frustrated with Windows 11 desktop icons moving unexpectedly? Discover proven fixes to lock them in place, optimize your setup, and regain control of your desktop effortlessly. Step-by-step solutions for a stable experience.

How to Fix Windows 11 DirectAccess Connectivity Error

How to Fix Windows 11 DirectAccess Connectivity Error

Struggling with Windows 11 DirectAccess connectivity error? Discover proven, step-by-step fixes to restore seamless network access. Get back online fast with our expert tips.

How to Setup Windows 11 Multiple Monitor Backgrounds

How to Setup Windows 11 Multiple Monitor Backgrounds

Discover how to set up Windows 11 multiple monitor backgrounds with step-by-step guidance. Personalize your dual or triple screen setup for a productive and visually appealing workspace.

How to Fix Windows 11 Command Prompt Not Admin Fix

How to Fix Windows 11 Command Prompt Not Admin Fix

Struggling with Command Prompt not opening as admin on Windows 11? Discover proven, step-by-step fixes to regain administrator access and boost your PC performance. Quick solutions for seamless troubleshooting.

How to Fix ERR_QUIC_PROTOCOL_ERROR in Microsoft Edge

How to Fix ERR_QUIC_PROTOCOL_ERROR in Microsoft Edge

Struggling with ERR_QUIC_PROTOCOL_ERROR in Microsoft Edge? Discover proven, step-by-step fixes to eliminate this frustrating issue and get back to seamless browsing. Updated with the latest tips for optimal performance.