Method one, BIOS setup method
Restart the computer. During the boot process, click the “Delete” button on the keyboard to enter the BIOS setup interface, select the “Integrated Peripherals” option, and expand the properties of the “USB 1.1 Controller” and “USB connector 2.0 Contr01ler” options to “ Disabled, you can disable the USB interface. Finally, don't forget to set a password for the BIOS, so that others can't modify the registry to "lock" the device.
Method two, the registry method (for Windows XP/2003)
This method can be used to lock the USB interface on the computer, so as to prohibit others from using removable storage devices such as flash drives or mobile hard disks.
Enter "regedit" in the "Run" dialog box, press Enter, open the Registry Editor, expand the following branch [HKEY_LOCAL_MACHINE\SYSTEM\CurrentCntrolSet\Services\USBSTOR], and find the name "Start" in the right pane. The DWORD value, double-click, in the edit dialog box that pops up, modify its numeric data to a hexadecimal value of "4". Click the "OK" button and close the Registry Editor, restart your computer for the settings to take effect. After rebooting, when someone connects the USB storage device to the computer, although the indicator light on the USB device is blinking normally, the drive letter cannot be found in the resource manager, so the USB device cannot be used.
Tip: The “Start” button is the working switch of the USB device. The default setting is “3” for manual, “2” for automatic, and “4” for disabled.