How to disable the USB ports

Updated: 06/02/2020 by Computer Hope
USB ports

Sometimes, users may need to disable the USB (universal serial bus) ports on a computer to prevent device interaction. The action can be especially useful in work environments as it prevents the unauthorized copying of sensitive data. Disabling USB ports also keeps a network from becoming infected with viruses or other malware.


To enable USB ports on your computer, follow the steps below, but choose the enable option instead of disable option where applicable.

Disable the USB ports through BIOS setup

  1. Enter the BIOS setup.
  1. Once in the BIOS setup, check the menus for an option to enable or disable the onboard USB ports.
  2. Make sure all USB options and Legacy USB support options are disabled or off.
  3. Save and exit the BIOS after making the changes. Usually, the F10 key is used to save and exit.
  4. After the computer has rebooted, check the USB ports to make sure they are disabled.

Disabling USB in Windows

If your computer's BIOS setup only lets you disable some or none of the USB ports and you are running Windows XP or later, then complete the following.


The steps below edit the Windows registry. Be aware that changing any values improperly can cause errors or Windows to not boot.


The steps below only disable any USB storage device from automatically opening or running when connected to the computer (e.g., flash drive). USB devices like the keyboard and mouse still work.

  1. Access the Run box or the Search box in the Windows Start menu.
  2. Open the Windows registry by typing regedit in the Run or Search box.
  1. In the Registry Editor, open the following folder.
  1. In USBSTOR, locate the Start DWORD and double-click "Start" to edit the value. Change the Value data to "4" and click Ok.
  2. Once completed, close the Registry Editor. Windows will no longer start the USB device when detected.

If you need to enable the USB ports, follow the steps above. However, in step 4, change the value of the Start DWORD to a "3".


The steps above only work if the USB storage driver has already been installed. If the USB storage driver has not been installed, the value gets reset back to 3 when connecting a USB storage device and Windows installs the drivers.

Disconnect USB

You usually cannot disconnect the USB ports from a motherboard. However, USB ports on the front or top of the computer can be disconnected by unplugging from the USB header. Disconnecting these USB ports can be helpful in preventing users from easily attaching USB devices without having to go to the back of the computer.


Some motherboards may also have jumpers to disable USB.