How to disable the 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
- Enter the BIOS setup.
- Once in the BIOS setup, check the menus for an option to enable or disable the onboard USB ports.
- Make sure all USB options and Legacy USB support options are disabled or off.
- Save and exit the BIOS after making the changes. Usually, the F10 key is used to save and exit.
- 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.
- Access the Run box or the Search box in the Windows Start menu.
- Open the Windows registry by typing regedit in the Run or Search box.
- In the Registry Editor, open the following folder.
- In USBSTOR, locate the Start DWORD and double-click "Start" to edit the value. Change the Value data to "4" and click Ok.
- 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.
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.