search
HomeSystem TutorialWindows Series4 Ways to Disable USB Ports on Windows

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.

4 Ways to Disable USB Ports on Windows

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.

4 Ways to Disable USB Ports on Windows

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.

4 Ways to Disable USB Ports on Windows

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.

4 Ways to Disable USB Ports on Windows

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.

4 Ways to Disable USB Ports on Windows

Step 4: Select the Enabled option and hit Apply, followed by OK.

4 Ways to Disable USB Ports on Windows

Step 5: Similarly, enable the Removable Disks: Deny execute access, Removable Disks: Deny read access​​​​​​, and Removable Disks: Deny write access policies.

4 Ways to Disable USB Ports on Windows

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.

4 Ways to Disable USB Ports on Windows

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

4 Ways to Disable USB Ports on Windows

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!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Got an AMD CPU and Aren't Using PBO? You're Missing OutGot an AMD CPU and Aren't Using PBO? You're Missing OutApr 12, 2025 pm 09:02 PM

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

Bought a New Gaming PC? Don't Make These Infuriating MistakesBought a New Gaming PC? Don't Make These Infuriating MistakesApr 12, 2025 am 06:10 AM

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 Next Windows API Change Will Break Some AppsMicrosoft's Next Windows API Change Will Break Some AppsApr 12, 2025 am 06:07 AM

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 Service Outage Locks Family Subscribers Out of Office AppsMicrosoft 365 Service Outage Locks Family Subscribers Out of Office AppsApr 12, 2025 am 06:06 AM

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

5 Windows Settings to Change to Improve Laptop Battery Life5 Windows Settings to Change to Improve Laptop Battery LifeApr 12, 2025 am 06:04 AM

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

6 Settings to Make Your Windows 11 Desktop More Minimalist6 Settings to Make Your Windows 11 Desktop More MinimalistApr 12, 2025 am 03:01 AM

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

6 Hidden Features of VLC Media Player That You Should Be Using6 Hidden Features of VLC Media Player That You Should Be UsingApr 11, 2025 am 06:08 AM

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 Laptop 12 Pre-orders Start Today, But Not in the USFramework's Laptop 12 Pre-orders Start Today, But Not in the USApr 11, 2025 am 06:02 AM

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

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

DVWA

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

Notepad++7.3.1

Easy-to-use and free code editor

MantisBT

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.