Table of Contents
Method 1: Disable USB Ports Using Device Manager
Method 2: Disable USB Ports With Registry Editor
Method 3: Disable USB Ports With Group Policy Editor
Method 4: Disable USB Ports via the Command Prompt
Home System Tutorial Windows Series 4 Ways to Disable USB Ports on Windows

4 Ways to Disable USB Ports on Windows

Sep 19, 2024 am 03:07 AM

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
Copy after login

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
Copy after login

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
Copy after login

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
Copy after login

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 of this Website
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

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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1655
14
PHP Tutorial
1254
29
C# Tutorial
1228
24
Windows kb5054979 update information Update content list Windows kb5054979 update information Update content list Apr 15, 2025 pm 05:36 PM

KB5054979 is a cumulative security update released on March 27, 2025, for Windows 11 version 24H2. It targets .NET Framework versions 3.5 and 4.8.1, enhancing security and overall stability. Notably, the update addresses an issue with file and directory operations on UNC shares using System.IO APIs. Two installation methods are provided: one through Windows Settings by checking for updates under Windows Update, and the other via a manual download from the Microsoft Update Catalog.

Nanoleaf Wants to Change How You Charge Your Tech Nanoleaf Wants to Change How You Charge Your Tech Apr 17, 2025 am 01:03 AM

Nanoleaf's Pegboard Desk Dock: A Stylish and Functional Desk Organizer Tired of the same old charging setup? Nanoleaf's new Pegboard Desk Dock offers a stylish and functional alternative. This multifunctional desk accessory boasts 32 full-color RGB

Dell UltraSharp 4K Thunderbolt Hub Monitor (U2725QE) Review: The Best Looking LCD Monitor I've Tested Dell UltraSharp 4K Thunderbolt Hub Monitor (U2725QE) Review: The Best Looking LCD Monitor I've Tested Apr 06, 2025 am 02:05 AM

Dell's UltraSharp 4K Thunderbolt Hub Monitor (U2725QE): An LCD That Rivals OLED For years, I've coveted OLED monitors. However, Dell's new UltraSharp 4K Thunderbolt Hub Monitor (U2725QE) has changed my mind, exceeding expectations with its impressiv

How to Use Windows 11 as a Bluetooth Audio Receiver How to Use Windows 11 as a Bluetooth Audio Receiver Apr 15, 2025 am 03:01 AM

Turn your Windows 11 PC into a Bluetooth speaker and enjoy your favorite music from your phone! This guide shows you how to easily connect your iPhone or Android device to your computer for audio playback. Step 1: Pair Your Bluetooth Device First, pa

5 Hidden Windows Features You Should Be Using 5 Hidden Windows Features You Should Be Using Apr 16, 2025 am 12:57 AM

Unlock Hidden Windows Features for a Smoother Experience! Discover surprisingly useful Windows functionalities that can significantly enhance your computing experience. Even seasoned Windows users might find some new tricks here. Dynamic Lock: Auto

ASUS' ROG Zephyrus G14 OLED Gaming Laptop Is $300 Off ASUS' ROG Zephyrus G14 OLED Gaming Laptop Is $300 Off Apr 16, 2025 am 03:01 AM

ASUS ROG Zephyrus G14 Esports Laptop Special Offer! Buy ASUS ROG Zephyrus G14 Esports Laptop now and enjoy a $300 offer! Original price is $1999, current price is only $1699! Enjoy immersive gaming experience anytime, anywhere, or use it as a reliable portable workstation. Best Buy currently offers offers on this 2024 14-inch ASUS ROG Zephyrus G14 e-sports laptop. Its powerful configuration and performance are impressive. This ASUS ROG Zephyrus G14 e-sports laptop costs 16 on Best Buy

Alienware 27 4K QD-OLED (AW2725Q) Review: A New Standard for Pixel Density Alienware 27 4K QD-OLED (AW2725Q) Review: A New Standard for Pixel Density Apr 08, 2025 am 06:04 AM

The Alienware 27 4K QD-OLED (AW2725Q): A Stunning, High-Density Display The $899.99 price tag for a 27-inch monitor might seem steep, but the Alienware AW2725Q's exceptional pixel density delivers a transformative experience for both gaming and every

You Can Get The Razer Basilisk V3 Pro Mouse for 39% off You Can Get The Razer Basilisk V3 Pro Mouse for 39% off Apr 09, 2025 am 03:01 AM

##### Razer Basilisk V3 Pro: High-performance wireless gaming mouse The Razer Basilisk V3 Pro is a high-performance wireless gaming mouse with high customization (11 programmable buttons, Chroma RGB) and versatile connectivity. It has excellent sensors, durable switches and extra long battery life. If you are a gamer looking for a high-quality wireless mouse and need excellent customization options, now is a great time to buy the Razer Basilisk V3 Pro. The promotion cuts prices by 39% and has limited promotion periods. This mouse is larger, 5.11 inches long and 2 inches wide

See all articles