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?

65 Replies to “Steps to Write Protect your USB Pen Drive”

  1. I always tuned your site. it was a awesome. every updated issues have a great deal of help for me.

    thanks Techsalsa your No.1 for me rightnow.

  2. It Worked perfectly!!
    I Don’t know what was protected on my Privacy Drive but I got it back to use again.
    Thank You Very Much.

  3. Why don’t you clean your pc. it wont write data on your usb.
    And how about if you use same USB on others PC. it wont protect over there becuase registry wont go with USB.
    and If you want to use same USB on same pc only. the PC is already infected with lots of virus ( you already wrote that ) why you want to that long procedure to Protect USB.

  4. This is not a good solution at all. If you can modify the registry to turn on write-protection on a USB drive, then a virus can re-modify the registry to turn it off.

    If you’re using it on your own computer, how about actually getting rid of the viruses in the first place? Then the issue is moot. Ignoring the problem isn’t a good solution.

    Second, you shouldn’t be able to do this on a public computer because any administrator with half a brain will disallow regular users from modifying the registry. If you can do it, then it’s no wonder that the computer is so heavily infected. I wouldn’t so much as put a floppy disk near it.

    The best solution is to be smart:
    Don’t use highly infected computers, and if they public computers such as library computers then report the infections to staff.
    Do use virus scans and software regularly and make sure you scan files that may have the potential to be infected. There are plenty of free anti-virus/anti-malware options available. AVG, Avira, Microsoft Security Essentials, Windows Defender, Malwarebytes Anti-Malware, Spybot Search and Destroy etc. etc.
    Use an online file storage solution like DropBox, instead of a USB drive and again, make sure you scan synchronized files regularly.
    Stop using warez and pr0n.

  5. Darkbee buddy you are right, but is this the solution you provide to remove the right protection for the flash drive. don’t just criticize people like that, try to provide better solutions also. ( Its too easy to sit and whistle from the gallery, to playing in the field is a bit difficult)

    Good Day

  6. Thanks for the guide! It solved my trouble with an write protected extern hdd.I found it easy to do.

  7. my transcend jet flash pendrive not formating and showing that it is write protected. pl. show me is there any way to solve the problem……..

Leave a Reply