Helping millions of people navigate the world of technology.

4 Ways to Disable USB Ports on Windows

Quick Tips
  • Disabling USB ports on a Windows computer is an important security measure that restricts the use of personal devices at work or school.
  • Disabling USB ports serves as a vital defense against malware infections and various USB-based attacks.
  • On Windows, you can disable USB ports using the Device Manager, Registry Editor, Group Policy Editor, or Command Prompt.

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.

Open Device Manager 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.

Disable Specific USB Port on Windows 10 or 11

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.

Open Registry Editor as Admin

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.

Disable USB Ports via Registry Editor

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.

Disable USB Ports via Group Policy Editor

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

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.

Disable USB Ports via Group Policy 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.

Open Terminal (Admin) on Windows 11

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
Disable USB Ports via Command Prompt

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

Was this helpful?

Thanks for your feedback!

Last updated on 13 August, 2024

Leave a Reply

Your email address will not be published. Required fields are marked *

The article above may contain affiliate links which help support Guiding Tech. The content remains unbiased and authentic and will never affect our editorial integrity.