USB devices are one of the most essential part of your PC, Laptop or any device that can benefit by connecting external drives. USB is the most popular interface that is used to connect external drives. However, USB is also a major threat for spreading virus. The simplicity to use USB has made it a potential force that can be used to spread viruses and malware.
There are multiple methods to disable USB on your computer. You can disable USB from inside BIOS, lock it using a software made for this purpose or use the options available inside Operating system. In this article, here is a simple method to lock and unlock USB using Windows Registry.
Open Registry Editor
Registry is one of the most sensitive area in Windows Operating system. Making the wrong changes can make your computer crash and end up in a no boot situation. So before making any changes to registry, it is advised to take a backup before making any changes.
To open registry
- Press Windows Key + R to open Run window
- Type regedit and click OK
- Click Yes to pop up window to allow registry to make changes on your computer
This will open the Registry Editor window.
Make changes inside registry related to USB
The next step is to find the registry entry related to registry. Then make the changes to the registry entry which is related to lock and unlock USB.
- Go to HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ USBSTOR
- Click on USBSTOR on the left panel. On the right side, you can see all entries related to USBSTOR
- Double click on Start. Under Value data, change the hexadecimal value to 4
- Now close the registry. Restart your computer.
Unlock USB ports
In case, if you want to turn the USB ports on, reverse the steps mentioned above. Go to registry editor and change the Start value back to 3 as it used to be before.
Hope you find the article useful. Use the comment section to share your experience.