ghacks Technology News

USB Flash Drive Write Protection

System administrators might want to limit the use of external USB flash drives by making them read only. This can actually be useful in several situations like preventing users from copying local data to the external device or preventing malicious software from spreading on a computer network using those flash drives.

The Windows operating system has a Registry setting that can add USB write protection to a computer system. It is like a switch that can be enabled to make use of the write protection or disabled to allow write processes.

Users who experience problems writing to USB devices might want to take a look at this setting as well if they have the proper rights to do so to see if it is the cause for their difficulties.

Start by opening the run dialog box with the keyboard shortcut [Windows R]. Type [regedit] and hit [enter]. This should open the Windows Registry editor.

write protect usb

Navigate to the following Registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\

Look at the sub-keys and see if a key named StorageDevicePolicies is listed. If it is skip this paragraph and read the next. If it is not create the key by right-clicking Control and selecting New > Key

See if there is an entry named WriteProtect. It can be easily created if it is not present by right-clicking in the right window and selecting New > DWord from the menu. The following values are allowed for this entry:

  • 0 – This will allow write processes on USB Flash Drives
  • 1- This will block write processes on USB Flash Drives.

An alternative would be to delete the Registry key WriteProtect completely to enable both read and write processes. A restart or log off is required before the changes take effect.

Enjoyed the article?: Then sign-up for our free newsletter or RSS feed to kick off your day with the latest technology news and tips, or share the article with your friends and contacts on Facebook or Twitter.

Related Articles:

How To Enable Write Protection Of USB Devices Under Windows
Test USB Flash Drive And Hard Drive Integrity And Size
USB Flash Drive with Capacity Meter
USB Flash Drives: USB Vaccine
How to Run Portable Google Chrome from a USB Flash Drive



About the Author:Martin Brinkmann is a journalist from Germany who founded Ghacks Technology News Back in 2005. He is passionate about all things tech and knows the Internet and computers like the back of his hand. You can follow Martin on Facebook or Twitter.

Author: , Friday April 3, 2009 -
Tags:, , , , , , , ,


Responses so far:

  1. Rush says:

    This is kind of cool for my laptop. It reads data a lot but rarely writes it to removable media.

  2. Giles says:

    For what it’s worth, I’ve had some success using a product called ‘MyUSBOnly’ (http://www.myusbonly.com/usb/index.php).

    It’s not freeware, but it is fairly inexpensive and gives you the ability to whitelist/blacklist individual USB sticks. By successfully entering a password upon insertion of a memory stick, you don’t have to reboot/logoff with each policy change.

  3. karthik says:

    Its very old, i have found more information on this 2 years ago. Ghacks also helped that time.
    karthik
    karthikeyan.terapad.com

  4. xiaxia says:

    There’s a litte freeware program at http://www.gaijin.at/dlusbwp.php
    called USB WriteProtector.
    The side is german to be more precise austrian, but easy to browse. The program itself is multilingual.

    xiaxia

  5. Sintek says:

    I Made a tutorial how to fix this problem here for this problem i had aswell

    http://www.t3chworks.com/index_writeprotect.html

    • me says:

      Hey man this is just perfect, didn’t realize XP had such a useful little dos command set like this. Thanks so much bro!

  6. Abdul Awaes says:

    Thx! for this wonderful tip…

  7. Anonymous says:

    thanks

  8. Sintek says:

    If the Above doesnt Work Try this, I made a tutorial on how i fixed Mine

    http://www.t3chworks.com/index_writeprotect.html

    It should work for everyone

  9. steventhompson77 says:

    Protect from outside by making undeletable write-protected dummy “autorun.inf” file using Naevius USB Protector:
    http://www.naevius.com/protect_usb.htm

  10. Protect from outside by making undeletable write-protected dummy “autorun.inf” file using Naevius USB Protector.

  11. china usb flash drive says:

    Protect from outside by making undeletable write-protected dummy “autorun.inf” file using Naevius USB Protector.

  12. john macdonald says:

    this way is failed in all ways that i’ve experted

  13. SinteK says:

    Write Protect tutorial fix Here:

    http://www.t3chworks.com/index.php?p=2_1

    • Jade says:

      Hi.. I followed your tutorial I checked bothe the disk and volume and they both said the read only setting was No. It is definitely write protected so I continued with your tutorial and it worked great for the disk bit but when I tried it on the volume it came back with “Virtual Disk Service Error: This operation is not supported on removable media”
      I just got a new 16GB memory pen and now this has happened please can you help me as no-one else seems to be able to……!? :@

  14. usb flash disk says:

    By successfully entering a password upon insertion of a memory stick, you don’t have to reboot/logoff with each policy change.

  15. To Martin: A big THANX, you helped me!!!

  16. yogesh says:

    hey frnd i didn’t found this storagedevicepolicies

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\

    after this there was no storagedevicepolicies

  17. mwesigwa Billy says:

    my usb flash disk from the trqancend company does not allow me to write to it

  18. Anonymous says:

    trust me my flash is not working help me un write protect my flash disk

  19. jamael says:

    thanks to all..

  20. jamael says:

    how can I fix my USB?
    I try the following above but not work in my pc?
    Pls.. help me

    if you know to how to format this problem plss.. help me or share you link…

  21. Anonymous says:

    Doesn’t solve the prob here, unfortunately. Any other suggestions?

    • Zare says:

      If you are getting the write protected error go here http://emea.apacer.com/en/support/downloads.asp and search for HT203 Handy Steno 2.0 Repair Tool.

      here is the direct download link anyway http://www.apacer.com/en/support/downloads/Repair_v2.9.1.1.zip

      I am sorry if i am violating any rules by posting links but people really need to get there flash drives fixed.

      Best of luck ! :)

Leave a Reply   Follow Ghacks   Subscribe To Comment Rss

Subscribe without commenting

© 2005-2012 Ghacks.net. All Rights Reserved. Privacy Policy - About Us