How to Disable USB port in Windows
Sometimes, users may need to disable the USB 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 Disable USB port in Windows
If you want to prevent users from connecting to a USB storage device that is connected to a computer that is running Windows XP, Vista, 7, or 8, then complete the following.
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 will still work.
- Access the Run box or the Search box in the Windows Start Menu by Windows button + R
- Typing regedit in the Run or Search box.
- Once in the Registry editor and go to location below
- In the USBSTOR, and click on “Start” DWORD and double-click “Start” to edit the value. Change the Value data to “4” and then click Ok.
- Now Windows will no longer start the USB device when detected.
For Re-enable:- If you need to re-enable the USB after following the above steps follow the above steps again and change the value from “4” to “3”.
Disable the USB ports through BIOS setup
- Enter BIOS setup by clicking F1 or Del at startup.
- Go to USB Controller to check option to enable or disable the onboard USB ports.
- Make sure all USB and Legacy USB Support is disabled or off.
- Save, and exit. You can use F10 key to save.
- After the computer has rebooted, check the USB ports to make sure disabled.
Caution: The above steps 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.