How To Lock The USB Port On Your Computer

For some reason, you need to lock the USB ports, such as preventing copying data from the computer to the outside, or you are afraid of the computer infected with a virus from the USB.

This article will help you to disable the USB port in the simplest and most concise ways.

#1. Lock the USB port by changing the Registry

This way is quite simple (applies to Windows 7/8), and I have not tried other windows. First, open the Run dialog box ( Windows + R) => enter with keywords regedit=> press Enter.

To enter the USB port lock, follow the following path:


Then you notice to the right, double click Start then change the value to 4and click OKto finish.


Now, please Log Offor Restart the computer to take effect. So your USB port is already locked. If you want it to work again, change it back to 3okay.

#2. Use the Device Manager function to lock the USB port

Open the RUN dialog box (Windows + R), then enter with the command  devmgmt.msc. Or right-click My Computer=> Manage=> and select Device Manager.

In the next window you  Disable all the USB devices.

Finish. All USB ports have been locked. To restore, you change to Enable, and you’re done. The disadvantage of this way is that it is easier to recover the unlock status.

#3. Using BuduLock software

You can download BuduLock software to lock the USB port for free here.

After downloading, open the software and switch to Tab Flash Drive Lockto lock the USB port.

First, you click Change Passwordto set a password:

  • New Password: Enter your new password.
  • Re-enter: Re-enter the password.
  • In the Current Password box, please leave it blank. Then press OK.

Next, you tick the box Disable Flash Drive, then press the button Executeto disable the USB port.

To reopen the USB port, check the box Enable Flash Drive and enter your password in the box Password=>  OKto complete.

In addition to the USB port lock feature, this software also allows you to lock the folder, but in this article, I am guiding you to lock the USB port, so I will not talk about this function. It is also quite easy to use. It’s just a joke ^^.

#4. Lock USB port using BIOS

This way for those who know a little about computers is straightforward, but it is difficult for those who rarely use computers, so I do not recommend it.

First, you access the BIOS by pressing the DEL, F2, F8 … depending on the model you are using. (If you notice when booting into Windows, you will see a line displayed below the key to enter the BIOS interface).

You find the item USB Controller in the section Advanced Settings and change Enabledit Disableto. To reopen, you need to do the opposite. Press F10 to save and restart the computer.


OK, above are the 4 simplest and most popular ways to lock USB ports safely and effectively. There are many other ways, but in general, they are similar, so you need to know this one way is more than enough.

Leave a Comment