USB contains a lot of viruses that are harmful to computers, you do not want others to plug the USB into your computer to avoid your virus. You can lock the USB port on your computer to prevent the USB from being plugged into the computer with the very simple steps below.
Step 1: Open the Windows Run dialog box .
- Go to Start, type in the search box for the word Run and press Enter .
- Or you can press Windows + R combination .
Step 2: Type Regedit in the Run dialog box , press OK (or Enter ).
Step 3: Find the keyword USBSTOR . Find the link: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesUSBSTOR.
Step 4: Double-click on Start , in Value data you enter number 4 and then click OK .
Exit Registry Editor , you can plug in USB to see the results.
From now on, your computer will not accept any USB, if you want to unblock the USB port, fix Value data to 3. Wish you success!