Write protect your USB Mass Storage Device
So I came to know of this trick of write protecting the drive so that I can safely copy things I want without the worry of virus being copied on my USB drive. Although you wonât be able to write any thing on your pen drive, its still very useful in case you want something to copy from your pen drive and donât want to get infected. Before proceeding I must tell you that playing with the registry can be harmful for your Operating System (OS) and I advise you to take a backup of your registry in case anything goes wrong.
This trick works only on XP SP2 and you need to have administrator privileges.
- Open Registry Editor by Start - Run.
- Type in regedit.
- Browse to HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \
- Locate the sub-key StorageDevicePolicies. If it doesnât exist then create it first. Create a new key under Control by right clicking on it so that you donât create it elsewhere by mistake (as shown in the above screenshot).
- Right click in the blank area of the sub key you just created and create a new DWORD value by the name WriteProtect.
- Double-click it and set the value data as 1 (and 0 for disabling it).
- Click OK, close the Registry Editor and restart the PC.