This is a registry hack this disable USB drive access completely. User cannot copy data to the USB disk storage, nor able to read any files and documents from the USB drive.
You can also choose to disable write access to the external removable USB mass storage disk drive only.
Just follow this simple steps to get things done:
- Run Registry Editor (regedit).
- Navigate to the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
- Create a New Key named as StorageDevicePolicies.
- Highlight StorageDevicePolicies, and then create a New DWORD (32-bit) Value named as WriteProtect.
- Double click on WriteProtect, and set its value data to 1.
Once the modification has been applied, the computeris now blocked and prevented from copying, transferring or writing any files, documents and data to the USB disk drives, without the need to restart or reboot computer. Any attempt to download or copy files to USB drive will return the following error message:
The disk is write protected.
The media is write-protected.
Remove the write protection or use another disk.
To revert and remove the blocked write access to USB drivers, just delete the StorageDevicePolicies registry key, or delete the WriteProtect registry entry, or change the value data for WriteProtect to 0.
If you’re having difficulty following the instructions, I can send the ready-made registry script upon request.