4 Ways to Disable USB Ports on Windows

尊渡假赌尊渡假赌尊渡假赌
Release: 2024-09-19 03:07:33
Original
634 people have browsed it

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!

source:guidingtech.com
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!