How to lock and unlock USB Pendrive access in Windows

In this article, learn how to enable and disable USB mass storage access such as Pendrive in Windows operating system.


How to Lock/Unlock USB Storage access?

You can lock and unlock USB mass storage access by making a simple registry tweak. You can do this within Administrator account privileges.

Disable Pendrive Access:

To disable the USB Pendrive access, modify the registry as below.


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
“Start”=dword:00000004

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR\Enum]
“Count”=dword:00000000
“NextInstance”=dword:00000000

Enable Pendrive Access:

To enable the USB Pendrive access, modify the registry as below.


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
“Start”=dword:00000003

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR\Enum]
“Count”=dword:00000000
“NextInstance”=dword:00000000



Further, you can also have two registry files created separately to enable and disable the USB mass storage access.
For example, you can create EnableUSB.reg and DisableUSB.reg files. You can double-click on the file to install the registry settings.




– Article ends here –

If you have any questions, please feel free to share your questions or comments on the comment box below.

Recommended:   PNGOUT - The PNG Optimizer
Share this:
We will be happy to hear your thoughts

Leave a reply

Troubleshootyourself
Logo