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.
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.
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.
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
以上是4 Ways to Disable USB Ports on Windows的详细内容。更多信息请关注PHP中文网其他相关文章!