Steps to Write Protect your USB Pen Drive
It was yesterday when I got some data transferred in my pen drive at my College that made me think that I need to Write Protect my pen drive. I just put the drive in a system for about 10 seconds and there were about 7 different types of viruses in my Pen Drive (really college systems sucks). It is so irritating to always scan the drive to remove the viruses that also consumes our important time. So I got something to share with you guys “How you can Write Protect your Pen Drive” or “How you can prevent your pen drive from getting infected”.
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).
• If you are not good at editing registry then backup yours (read this).
• 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.
4. Now right click on this newly created key and then click New -> DWORD value and name it as “WriteProtect”.
5. Modify this key and give it a value 1.
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.
So any thoughts how you are going to use this trick?
You May Also Like to Read






October 22nd, 2008 at 12:15 pm
Dude the trick is nice but this isnt very handy. USB drives are used for transferring data from here or dere. So if its restricted then whts the use. Editing registry again n again isnt a good solution, and moreover if u dont have admin rights then how will u protect??? Try to find some more better solution.
October 22nd, 2008 at 6:19 pm
The trick is good if you have to just read the data from the drive and not write into it
November 2nd, 2008 at 10:48 pm
its actually helpful …. if your system is infected with newfolder.exe and pen drive is locked with write protect and you want to reverse the settings thanks for the info!
January 24th, 2009 at 1:58 am
Actually this is dumb becuase you would have to enable this option on every single computer where the flash drive is used.
Better to optain the same result would be to change the specific file or files attributes. Just mark it as “read only”
January 24th, 2009 at 12:05 pm
but then u can’t stop the virus to enter into the drive.
January 31st, 2009 at 6:52 am
thanks bro..cheers
February 3rd, 2009 at 1:01 pm
Not useful for USB users as its not possible everytime to edit registry & reboot it for enable/disable.
February 9th, 2009 at 9:33 pm
Download usb protect, the better to protect your pendrive.
http://www.laesoft.com.ar/descargas/usbprotect.php
April 1st, 2009 at 11:03 am
That Works on own PC but not to others PC. Do something for all but own PC.
April 11th, 2009 at 4:28 am
Not a good solution.
Just fill the pendrive with data, so virus (and anything) can copy into it.
No more space left to copying virus!
April 11th, 2009 at 11:40 am
@Daniel
How much can you fill the drive with data? There must be some space left in it in KBs and this is what the virus all requires, lol
April 11th, 2009 at 5:03 pm
Hi, I have a serious problem, my zebronics pen drive has an error when tried copying or tried formatting it. It says the “pen drive has been write protected please remove it” like this. Please help me i have an important files to copy. Please any body help me i tried many softwares & i even tried the above example’s reversing it but even then it is not possible.
-Ram
May 2nd, 2009 at 8:48 am
thanks do you know of any software that i can put on my usb to protect it from infection? maybe lock it of writeprotect it? and it can be moved form pc ot pc??? and run off of the usb???
May 30th, 2009 at 4:28 am
to deal with pendrive virus you must have an antivirus which is ment for pendrives i have 1 in mind for you and it needs no updates,before you install this antivirus you need to install .net framework 2.0 installed in your system its free just google it,the antivirus name is diskantisecurity you can get it from the below link and its free,just download and install
http://dotnetprojects.webs.com/diskantisecurity.htm
May 30th, 2009 at 4:31 am
drew just place a folder named “autorun.inf” in your pendrive this will restrict from autorun.inf file being copied to your pendrive or use the software above as commented
May 31st, 2009 at 10:17 am
i got a problem on my card reader, and i cannot copy files on my mini SD, the thing is that i already followed what is written on above(created StorageDevicePolicies,WriteProtect etc.) and rebooted, and still my card reader is still write-protected. can somebody help me?
May 31st, 2009 at 10:19 am
forgot to say that i inputted ‘0′ as the value to unwrite-protect it.
June 25th, 2009 at 9:05 am
Hi, I have a serious problem, my kingston pen drive has an error when tried copying or tried formatting it. It says the “pen drive has been write protected please remove it” like this. Please help me i have an important files to copy. Please any body help me i tried many softwares & i even tried the above example’s reversing it but even then it is not possible
July 6th, 2009 at 10:17 am
Link in Post no.8 by Leonardo is a stupid trojan !!
Also what i wanted to know is there any way of making a pen drive copy protected in such a way that ppl can read its data but CANNOT copy the data to their system ??
Anyway help will be appreciated
July 6th, 2009 at 2:45 pm
@sandy
I guess this thing can not be done as if you can read a file, you can save it as well.
July 24th, 2009 at 12:40 am
i ve a 2gb kingston pendrive.during the first installation of pendrive in my pc i reduced the size of my pendrive to 852mb.now how can i increase again it to 2gb?
July 24th, 2009 at 12:41 am
pls reply me to my mail id.i desperately need a solution
July 24th, 2009 at 1:28 pm
@joydeep
Reformat it in Windows and give it proper space in the options that you see while formatting.
July 25th, 2009 at 11:31 pm
icould not see the reply or the solution u’ve given me
July 25th, 2009 at 11:33 pm
no such option comes during format..
July 25th, 2009 at 11:34 pm
pls help me quickly in this regard
July 25th, 2009 at 11:35 pm
do u ‘ve any other option
July 26th, 2009 at 1:32 am
@joydeep
may be you can also try Partition Manager or some similar free tool (see this post, it has one http://techsalsa.com/convert-ntfs-partition-to-fat-fat32-file-system/ )
July 27th, 2009 at 12:13 am
will this partition increase my pendrive’s space?——————-
July 27th, 2009 at 10:57 am
partition manager can resize your memory space (you can decrease or increase it)
July 29th, 2009 at 10:39 am
no partion manager didn’t work.it could not increase the size.u pls install n see the problem.pls give me a definite solution.
July 31st, 2009 at 11:43 am
use disk manager of windows and delete partion and create new with full size
if it does not work use low format tool from hddguru.com
September 7th, 2009 at 6:36 pm
I think I also have this problem cant access to the pendrive. And suspected the USB port already locked by my adminstrator coz there are using EndPoint. Is this can be break so that can use back the pendrive for data transferring. Pls advise,thx.
September 24th, 2009 at 11:10 pm
Foi muito útil para mim este post, pois meu registry editor não possuia a subchave StorageDevicePolicies. Consegui criá-la com estas ótimas orientações. Parabéns!
January 16th, 2010 at 2:22 pm
Your tricks rocked. Thnks bro…
February 23rd, 2010 at 6:08 am
what a load of crap. You have to edit the registry in order to use a device that out own? Give me a break, you should just be able to right click on the damn thing and un-write protect it!
March 4th, 2010 at 11:26 am
its really a good trick but in case of ………………
March 25th, 2010 at 9:21 pm
i have tried this trick but it doesn’t work.Please tell me another way to give or remove write protection….
April 7th, 2010 at 7:11 am
dear admin
you are the best dude !
i have a Kingston flash memory 8GB and it was -as usual- write protected and i tried everything you can imagine but no solution till i found this article and discovered many useful methods . thanks and keep going my friend .
April 12th, 2010 at 7:38 am
hallo dear i am so great full to u . u save to buy a new pendrive, i have 8 gb pendrive and show write protect ,at last i find ur solution , now i am soo happy ,u save my 25 pound to buy a new one ,
thank u very much.
sajib
May 23rd, 2010 at 8:07 am
this is nice trick for remove write to protected for pen drive.just u will understand above trick.
June 3rd, 2010 at 1:00 pm
We sell samples from instruments on memory cards and usb , and people buy them, then they make copys on their own computers and start resslling the samples, that’ why we need to get the copy disabled on the memory cards.
don’t forget that I need all the functions on my computer, I just need to disable the copy on usb and memory cards so they can be copy protected, that’s it
Is there solution for my scenario
Thanks
July 6th, 2010 at 1:51 am
i try regedit opption, format software, and try low label forfat. but m still having problem with write protection. what can i do. m able to read my pan drive but not able to format it.