'); } ?>

How to Write Protect the USB Flash Drive

usb flash drive write protect

Today it becomes necessary for users to make USB flash drives write protected, to prevent viruses and malware programs to infiltrate and write on the USB drives,  and than to been copied on other computers and infect other machines. Viruses often use USB flash drives as transport medium to infect other computers and to do many hacking tricks, they copy itself on USB Flash Drives, wait USB to be plugged on different computer , and than to infiltrate and infect the computer .  Of course, there are many third party software vendors that prevent malware programs to infect computer when USB is plugged in the computer.  But here we will talk about simple way How to Write Protect the USB Flash Drive and vise versa, as well as How to format the USB drive which is Write-Protected.

Must say that when you working with registry you must be very careful , because if you make something wrong, you can damage your Windows System, so it is better to backup your registry before you do any change.

usb flash drive write protect

First Insert the USB drive in the computer ;

Than Go to Start , select Run and type regedit ( or type regedit in the search field) ;
Go to HKEY_LOCAL_MACHINE  > SYSTEM  > CurrentControlSet  > Control

Here create New Key and name it as StorageDevicePolicies.
To do this you right click on Control and select New Key, and name it as StorageDevicePolicies.

Than right click on StorageDevicePolicies and create a New > DWORD (32-bit) Value and name it WriteProtect.

Right click WriteProtect  and select modify , here in the Value Data set the value data to 1.

Now you can close the Registry Editor.

Now Write-Protection for USB drive is enabled on your computer ( no restart required ) and it would NOT be possible  for any program to add or delete the contents from your USB drive.  Any attempt to copy the files onto the USB drive will result in the error message being displayed  like “USB-Write Protect Error “.

To revert this settings and remove the write-protection feature, you just need to change the Value data for WriteProtect from 1 back to 0 . Now write access to all USB drives is enabled again. Now Open Computer , select your USB flash drive and right click  > select Format and you can format it again.

Lock and write protect USB Flash Drive


One Response to How to Write Protect the USB Flash Drive

  1. Abhijeet Gaonkar says:

    still it gives the same error saying disk is write protected.

Leave a Reply to Abhijeet Gaonkar Cancel reply

Your email address will not be published. Required fields are marked *

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>