How to Disable USB Ports in Windows 10

Disable Usb Ports Windows 10 Hero

If your PC gets used by many different people – such as a shared computer at your workplace – then it can be a security risk if people can easily plug USB devices into it all the time. Whether the owner of a USB stick knows it or not, their device may contain unsafe files, and the more people that can casually use your USB ports, the less secure you are.

Disabling your computer’s USB drives can help keep your files safe, and the process is easier than you think. There are multiple methods you can choose from, so if one doesn’t work for you, you can always try another.

How to Disable/Enable a USB Drive Using the Registry

If you want to try to disable a USB drive using the registry, type “run” in the search box (though maybe first take a look at our guide on creating a backup of your registry). When it appears, type regedit, and the registry editor should appear. Navigate to the following directory in Registry Editor:

Disable Usb Ports Windows 10 Usbstor

In the pane on the right, double-click “Start” to open the “Edit DWORD (32-bit)” box.

The value data, by default, will be set to “3.” To disable USB storage, change the “Value data” to “4” and click OK.

Disable Usb Ports Windows 10 Edit Dword

To (re)enable the USB storage, change the value data back to “3,” and the USB storage will be enabled again.

Use the Device Manager to Disable USB Ports

Disabling the USB ports through the Device Manager is also pretty straightforward. Right-click on the Start menu and click on “Device Manager.” When the window appears, click on the Universal Serial Bus controller. (It’s the last option on the list.) You can also choose the uninstall option for the USB drive, and when someone inserts a USB, Windows won’t be able to find the drivers.

usb-controller

Disable USB Storage by Using the Group Policy Editor

To disable the USB storage by using the Group Policy Editor, open “Run.” Once it’s open, type gpedit.msc. On the left pane click on “Computer Configuration -> Administrative Templates -> System -> Removable Storage Access.”

usb-removable

When you click on “Removable Storage Access,” new options will appear in the right pane. Look for and click on the options that say “Removable Disks: Deny execute access,” “Removable Disks: Deny read access,” and “Removable Disks: Deny write access.”

usb-deny

Click on each one of them to configure them. After clicking on one, a window with the name of the option should appear. To the left, there will be three options: Not Configured, Enabled, and Disabled.

Click on “Enabled” to disable it. If you ever change your mind and want to enable them again, choose the “Not Configured” or “Disabled” option.

usb-options

Now that your operating system is safe from unwanted USB devices, what’s next? You could learn our trick to schedule startup and shutdown in Windows 10. Also, learn how to overcome the bugbear of copy-paste not working on your PC.

Related:

Robert Zak Robert Zak

Content Manager at Make Tech Easier. Enjoys Android, Windows, and tinkering with retro console emulation to breaking point.

3 comments

  1. “If your PC gets used by many different people – such as a shared computer at your workplace ”
    Disabling just the USB ports will not accomplish much for security. You must disable ALL methods of input.

  2. I’m am working in the library and I’d like to disable the USB port to avoid viruses. Thanks for sharing! This is very useful.

  3. Disable USB Write Protection.reg :

    Windows Registry Editor Version 5.00

    ; MajorGeeks.Com
    ; How to Enable or Disable USB Write Protection
    ; https://www.majorgeeks.com/content/page/how_to_enable_or_disable_usb_write_protection.html

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies]
    “WriteProtect”=dword:00000001

Leave a Comment

Yeah! You've decided to leave a comment. That's fantastic! Check out our comment policy here. Let's have a personal and meaningful conversation.