Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Disable USB Ports: Step-by-Step Guide

Learn how to Disable USB Ports with clear steps, useful examples, and practical tips. Complete the task correctly and avoid common mistakes.

Table of Contents

This updated guide explains how to Disable USB Ports through clear steps, practical examples, and important checks that help prevent common errors.

Method 1 of 2:

Using Device Manager

  1. Disable USB Ports — Using Device Manager screenshot 1
    Open Start
    Disable USB Ports — Using Device Manager screenshot 2
    . Click the Windows logo in the bottom-left corner of the screen.
    • You can also just right-click Start if you may need to select Device Manager from the advanced menu.
  2. Disable USB Ports — Using Device Manager screenshot 3
    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.
  3. Disable USB Ports — Using Device Manager screenshot 4
    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.
  4. Disable USB Ports — Using Device Manager screenshot 5
    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.
  5. Disable USB Ports — Using Device Manager screenshot 6
    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.
  6. Disable USB Ports — Using Device Manager screenshot 7
    Click Action. It's a tab at the top of the Device Manager window. A drop-down menu will appear.
  7. Disable USB Ports — Using Device Manager screenshot 8
    Click Disable Device. This option is in the drop-down menu. Doing so disables the built-in USB adapter.
  8. Disable USB Ports — Using Device Manager screenshot 9
    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.
  9. Disable USB Ports — Using Device Manager screenshot 10
    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

  1. Disable USB Ports — Using the Registry screenshot 11
    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
      Disable USB Ports — Using the Registry screenshot 12
      .
    • Type in notepad.
    • Click Notepad in the search results.
  2. Disable USB Ports — Using the Registry screenshot 13
    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 
  3. Disable USB Ports — Using the Registry screenshot 14
    Click File. It's in the top-left corner of the Notepad window. A drop-down menu will appear.
  4. Disable USB Ports — Using the Registry screenshot 15
    Click Save As.... This is in the drop-down menu. Clicking it prompts a Save As window to open.
  5. Disable USB Ports — Using the Registry screenshot 16
    Enter a file name followed by the ". reg" extension. In the "File name" text field, type in whatever name you may need 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.
  6. Disable USB Ports — Using the Registry screenshot 17
    Click the "Save as type" drop-down box. It's near the bottom of the window. A drop-down menu will appear.
  7. Disable USB Ports — Using the Registry screenshot 18
    Click All Files. This is in the drop-down menu.
  8. Disable USB Ports — Using the Registry screenshot 19
    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.
  9. Disable USB Ports — Using the Registry screenshot 20
    Click Save. It's in the bottom-right corner of the Save As window. Doing so saves your file on the Desktop.
  10. Disable USB Ports — Using the Registry screenshot 21
    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 may need to disallow) plugged into your computer, unplug it before continuing.
  11. Disable USB Ports — Using the Registry screenshot 22
    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.
  12. Disable USB Ports — Using the Registry screenshot 23
    Change the file's script to enable USB ports. If you may need 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 

FAQ

What is the easiest way to Disable USB Ports?

Start with the requirements in this guide, then follow each step in order. Check the result after every major change so problems are easier to identify.

Can beginners follow these instructions?

Yes. The process is organized into practical steps, and you can repeat any step before moving forward.

What should I check if the method does not work?

Confirm your software or device version, permissions, settings, file format, and internet connection when the task depends on online services.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.