Method 1: Disable USB Ports Using Device Manager
Device Manager is a handy utility that lets you manage all the hardware devices connected to your system. Here’s how you can use it to disable specific USB ports on your Windows 10 or 11 computer:
Step 1: Right-click on the Start icon and select Device Manager from the list.
Step 2: Double-click Universal Serial Bus controllers to expand it. Right-click the USB port you want to turn off and select Disable device.
You can repeat the above steps to disable other USB ports on your PC. Later, if you want to re-enable a USB port, right-click on it and select Enable device.
Method 2: Disable USB Ports With Registry Editor
Another way to disable USB ports on Windows is through the Registry Editor. However, since registry files contain crucial configurations for Windows and its apps, it’s important to exercise caution while making changes.
Step 1: Click the search icon on the taskbar, type in registry editor, and select Run as administrator.
Step 2: Paste the following path in the address bar at the top and press Enter.
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\USBSTOR
Step 3: Double-click the Start DWORD, type 4 in the Value data field, and click OK.
Restart your PC after this, and your USB ports will be disabled. If you wish to re-enable the USB ports later, repeat the steps outlined above and set the value data of the Start DWORD to 3.
Method 3: Disable USB Ports With Group Policy Editor
Those using the Professional, Education, or Enterprise editions of Windows can disable a PC’s USB ports via the Local Group Policy Editor, too. Here are the steps for the same.
Step 1: Press the Windows R keyboard shortcut to open the Run dialog box. Type gpedit.msc in the text box and press OK.
Step 2: Use the left pane to navigate to the following folder:
Computer Configuration\Administrative Templates\System\Removable Storage Access
Step 3: Double-click the All Removable Storage classes: Deny all access policy on your right.
Step 4: Select the Enabled option and hit Apply, followed by OK.
Step 5: Similarly, enable the Removable Disks: Deny execute access, Removable Disks: Deny read access, and Removable Disks: Deny write access policies.
Once you complete the above steps, the USB ports on your computer will stop working. You can get them working again by setting the above-mentioned policies to Not Configured or Disabled.
Method 4: Disable USB Ports via the Command Prompt
You can also run a command to quickly disable USB ports on a PC. Here’s how:
Step 1: Right-click on the Start icon and select Terminal (Admin) from the list.
Step 2: Type the following command in the console and press Enter.
reg add HKLM\System\CurrentControlSet\Services\cdrom /t REG_DWORD /v "Start" /d 4 /f
To re-enable the USB ports later, you can use the following command:
reg add HKLM\System\CurrentControlSet\Services\cdrom /t REG_DWORD /v "Start" /d 1 /f
The above is the detailed content of 4 Ways to Disable USB Ports on Windows. For more information, please follow other related articles on the PHP Chinese website!

Unlocking Ryzen's Potential: A Simple Guide to Precision Boost Overdrive (PBO) Overclocking your new PC can seem daunting. While performance gains might feel elusive, leaving potential untapped is even less appealing. Fortunately, AMD Ryzen processo

Setting up a new gaming PC is thrilling, but even tech experts can make costly mistakes. Here are some common pitfalls to avoid for a smooth gaming experience. 1. Using the Motherboard's Display Output Instead of Your GPU A frequent tech support que

Microsoft's upcoming alteration to the Windows API will render certain applications non-functional. A GitHub search indicates that a limited number of smaller projects utilize the affected maps API, including an openHAB client and an unofficial Poké

Microsoft 365 Family service disruption impacts Office suite access. A widespread outage affecting Microsoft 365 Family subscribers has left many unable to access Office applications. Microsoft acknowledges the problem, but a resolution may take se

Is your Windows laptop battery draining faster than you'd like? Don't worry, you can significantly extend its life with a few simple tweaks to Windows' built-in power management features. Here's how to maximize your laptop's battery life on a singl

Streamline Your Windows Desktop: A Guide to Minimalism A cluttered desktop, overflowing with shortcuts and pinned apps, can hinder productivity and visual appeal. Fortunately, Windows offers extensive customization options to achieve a minimalist wo

Unlock the Hidden Power of VLC Media Player: Beyond Basic Playback VLC Media Player, a free and open-source media player, offers more than just basic audio and video playback. This article highlights some of its lesser-known, yet incredibly useful f

Framework's highly anticipated Framework Laptop 12 is now available for pre-order (except in the US). This compact, repairable laptop aims to redefine the entry-level market. However, US customers face a delay due to tariff adjustments, resulting in


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 Linux new version
SublimeText3 Linux latest version

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Notepad++7.3.1
Easy-to-use and free code editor

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.