Showing posts with label Registry. Show all posts

USB/Pen drive write protection manually by registry editing (regedit.exe)

“How you can Write protect your Pen Drive” or “How you can prevent your pen drive from getting infected”.

In the last post i had shown u the same @Make your USB/Pen drive write protected for PC. But this the trick how you can do so manually !!!  

Things to note before doing this:
    As the trick will write protect your pen drive, you will not be able to transfer anymore data until you disable it again (works best if you only wish to copy or read something from the drive).
    You need Admin rights to work upon the registry editor.
Steps to make your drive Write Protected:

1.    Open Registry Editor by typing regedit in Run dialog.
2.    Navigate to the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\
3.    Find a sub key inside it 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.

write_protect_1

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

write_protect_2

5.    Modify this key and give it a value 1.

write_protect_3

6.    Click OK, and remember to restart the PC.
Now no more data can be transferred to the drive but to start using the drive again just give the “WriteProtect” key a value of 0 instead of 1 and restart the PC.


Also Visit : 10 Helpful Commands To Use In Command Prompt (CMD)
Posted by Abhishek Vohera

Make your USB/Pen drive write protected for PC.

Why write protect your USB flash drive ?

When you put your USB flash drive in a pc infected with virus, the virus gets attached to your pen drive and then it infects all computers where it is used. But sometimes we are forced to use pen drive in such pc. So is there any way to prevent virus getting infected in a pen drive ? If your pen drive has a "make read only" switch, then you need to just make it read only before inserting it into a suspected pc. But nowadays most pendrives do not have such "make read only" switch, so the following solution may be handy.
usb-removable-disk-write-protected

Making a pen drive read only or write protect using Registry

The following method will work for Windows XP and Vista. You need to have admin privileges for this to work because it involves writing into common area in registry.
Download this zip : EnableOrDisableUSBWrite.rar (1kb)
There are two files inside this zip DisableUSBWrite.reg and EnableUSBWrite.reg . Extract this zip and double click DisableUSBWrite.reg before you insert the flash drive into the USB drive. You will be prompted with a confirmation before writing to registry. Once you get the confirmation message, now you can insert the pen drive into USB drive. Just to make sure this worked, try creating a New folder inside the flash drive, you have to get the "Media is write protected" message.
Once you remove the pen drive you should change back the USB drive into write mode. For this double click the EnableUSBWrite.reg. After confirmation the registry is changed to make the USB drive into write mode.

Also Visit : Change Windows 7 Logon Screen With Ease. 

Coming us next : USB/Pen drive write protection manually by registry editing (regedit.exe) 

Posted by Abhishek Vohera

- Copyright © Abhi Software Tips -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -