首页  >  文章  >  系统教程  >  4 Ways to Disable USB Ports on Windows

4 Ways to Disable USB Ports on Windows

尊渡假赌尊渡假赌尊渡假赌
尊渡假赌尊渡假赌尊渡假赌原创
2024-09-19 03:07:33642浏览

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

以上是4 Ways to Disable USB Ports on Windows的详细内容。更多信息请关注PHP中文网其他相关文章!

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn