Friday, March 18, 2011

How to write protect your USB drive

There are reasons that you want to write protect your USB drive. The main cause of viruses is USB flash drive. These viruses tend to copy themselves to the flash drive whenever system detected new device plug in. You can protect your USB flash drive if you enable the write protects through your PC.
To enable usb write protect on your PC follow these steps:-

1. From Start menu, point to Run, type in: regedit
If you are using Vista or Windows 7, just type in regedit in the search box when you click on the Start menu.

2. Navigate to the key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\
3. Find a sub key inside that is named "StorageDevicePolicies". If it does not exist there then we need to make it. Right click on "Control" key -> New -> Key. Name it "StorageDevicePolicies" without quotes.

4. Now right click on this newly created key and then click New -> DWORD value and name it as "WriteProtect".

5. Double click this key to modify and give it a value 1. The value 1 in here means to enable it, while the value 0 is the opposite to disable it.
6. Click Ok button to save and exit Registry Editor.

Now usb is write protected is on your PC.
---------------------------------------------------------
Alternatively you can do this by creating a reg file for this just open a notepad and copy and paste this line for enable usb write protect,


Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies]
"WriteProtect"=dword:00000001

Save this file with .reg ext like (usb write protect enable.reg)

And for usb write protect disable use this line,


Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies]
"WriteProtect"=dword:00000000


save this file with .reg ext like(disableusb write protect.reg)…………

Now whenever you want to enable or disable usb write protect you can do that by using these files......................
Task completed...................


1 comment: