How to Disable USB Ports
This wikiHow teaches you how to turn off your PC's USB ports. USB ports, while useful, can also pose a security risk when left available on a shared computer. You can disable your USB ports using both Device Manager and the Registry Editor...
Method 1 of 2:
Using Device Manager
-
Picture 1 of How to Disable USB Ports Open StartPicture 2 of How to Disable USB Ports - You can also just right-click Start if you want to select Device Manager from the advanced menu.
-
Picture 3 of How to Disable USB Ports Open Device Manager. Type device manager into Start, then click Device Manager at the top of the Start results.- If you right-clicked Start, click Device Manager in the menu that appears.
-
Picture 4 of How to Disable USB Ports Scroll down to the "Universal Serial Bus controllers" heading. You'll find this in the "U" section near the bottom of the Device Manager window. -
Picture 5 of How to Disable USB Ports Expand the "Universal Serial Bus controllers" heading. Double-click the heading to do so. You should see several indented options appear below the "Universal Serial Bus controllers" heading.- Skip this step if this heading is already expanded.
-
Picture 6 of How to Disable USB Ports Select the "Root Hub" or otherwise built-in USB option. The name of this option may vary depending on your computer, but it will usually have "USB 3.0" written next to it. -
Picture 7 of How to Disable USB Ports Click Action. It's a tab at the top of the Device Manager window. A drop-down menu will appear. -
Picture 8 of How to Disable USB Ports Click Disable Device. This option is in the drop-down menu. Doing so disables the built-in USB adapter. -
Picture 9 of How to Disable USB Ports Disable any remaining USB options under the heading. While disabling the built-in USB adapter will remove most of the other USB items from below the "Universal Serial Bus controllers" heading, there may be one or more remaining USB options. Disable these by clicking an option, clicking Action, clicking Disable Device, and repeating until each USB option is disabled. -
Picture 10 of How to Disable USB Ports Close Device Manager. Your computer's USB ports should no longer work.- If you need to re-enable the USB ports, go back to Device Manager, select a USB option, click Action, click Enable Device, and repeat until your USB options have been restored.
Method 2 of 2:
Using the Registry
-
Picture 11 of How to Disable USB Ports Open Notepad. You'll use the built-in Notepad app to create the Registry script that disables USB ports. To open Notepad, do the following:- Click Start
Picture 12 of How to Disable USB Ports - Type in notepad.
- Click Notepad in the search results.
- Click Start
-
Picture 13 of How to Disable USB Ports Add the "disable" script to Notepad. Paste the following script into Notepad:[1]Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesUSBSTOR] "Start"=dword:00000004 [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesUSBSTOREnum] "Count"=dword:00000000 "NextInstance"=dword:00000000
-
Picture 14 of How to Disable USB Ports Click File. It's in the top-left corner of the Notepad window. A drop-down menu will appear. -
Picture 15 of How to Disable USB Ports Click Save As…. This is in the drop-down menu. Clicking it prompts a Save As window to open. -
Picture 16 of How to Disable USB Ports Enter a file name followed by the ".reg" extension. In the "File name" text field, type in whatever name you want to use for your file, then type .reg at the end of the name to indicate that the file should be opened with the Registry Editor.- For example, to name your file "USB-off", you would type USB-off.reg into the "File name" text field.
-
Picture 17 of How to Disable USB Ports Click the "Save as type" drop-down box. It's near the bottom of the window. A drop-down menu will appear. -
Picture 18 of How to Disable USB Ports Click All Files. This is in the drop-down menu. -
Picture 19 of How to Disable USB Ports Select the Desktop folder. You'll find this in the left-hand pane of the Save As window.- You may have to scroll up or down in the left-hand pane of the Save As window to find the Desktop folder.
-
Picture 20 of How to Disable USB Ports Click Save. It's in the bottom-right corner of the Save As window. Doing so saves your file on the Desktop. -
Picture 21 of How to Disable USB Ports Prompt your file to run. Double-click the file to begin running it.- If you have a USB flash drive (or another USB item you want to disallow) plugged into your computer, unplug it before continuing.
-
Picture 22 of How to Disable USB Ports Confirm the command. Click Yes when prompted twice, then click OK when alerted that the command executed successfully. At this point, your computer's USB ports should be disabled. -
Picture 23 of How to Disable USB Ports Change the file's script to enable USB ports. If you want to re-enable USB ports, right-click the Notepad document and click Edit, then replace the third line with the following and press Ctrl+S:"Start"=dword:00000003
Update 24 March 2020
You should read it
- How to Zip a PowerPoint File
- How to Download a File
- What is Media File Jacking?
- How to Open Device Manager in Windows
- Fix 'The device is not ready' error when running the .exe file on Windows 10
- How to Hide a File or Folder from Search Results in Microsoft Windows
- How to Edit a Dat File
- How to Delete Read Only Files
- How to Convert a File Into PDF
- Open the file, open the folder with a mouse click
- How to Enlarge Thumbnails and Icons in File Explorer
- How to Import Videos Into iTunes
Maybe you are interested
The best 5 free stock market monitoring apps for Android and iOS How to reduce PDF file size by software Tips for handling columns in Microsoft Word Instructions for sending secret messages on Zalo Top 10 free apps worthwhile for Windows 8.1 Make rice cakes with heart-shaped sweet rice for Vietnamese Women's Day October 20