How to: Mount A USB Drive Read Only In Windows XP/Vista/7

There are times that it would be nice to mount a drive in Windows and set it to read only to avoid accidentally over writing data on that drive. After some Google searching this is what I found. This will only work on Windows XP sp2 and later and Windows 7. I have not tested it on Vista although I assume that it will work.

Step 1
Open regedit.exe
Start > Run Type regedit.exe
Click OK

Step 2
Navigate to the following registry key.  It may not exist there for you will have to create it.

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\StorageDevicePolicies

Step 3
Next create a new DWORD called WriteProtect and give it a value of 1

Step 4
Now plug in your USB drive and you will not be able to write to the device.

To make it writable again you will have to change the WriteProtect DWORD to 0 and unplug and replug in your device.

5 thoughts on “How to: Mount A USB Drive Read Only In Windows XP/Vista/7

    • Please learn to read and prefereably also to understand what is written:
      Step 2
      Navigate to the following registry key. It may not exist there for you will have to create it.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>