How to remove write protection from pen drive in windows 8, Windows 10/7

Everyone has ever gone through the agonizing situation of inserting a USB memory to transfer some files, photos and songs when suddenly this Windows warning appears on the screen: “The disk is write protected.”.

How to remove write protection from pen drive in windows 8, how to remove write protection from pen drive in windows 10, how to remove write protection from pen drive in windows 7, how to remove write protection from sandisk pen drive, write protected pen drive format tool, the disk is write protected pen drive how to format, how can we remove write protection from pen drive?, how to remove write protection from usb windows 7

In these situations, with all the patience of the world, you remove the small device from the computer, without forgetting to deactivate it in the Device Wizard of the system, remove the manual block and insert it back into the PC. Everything is well now.

How to remove write protection from pen drive in windows 8, Windows 10/7
How to remove write protection from pen drive in windows 8, Windows 10/7

But, what do we do when Windows continues to give the warning? Or when your pendrive does not even have the manual lock, and yet the message that is write protected appears? In that case, the USB may have become infected with a virus or script.

How to remove write protection from pen drive in windows 8 | Disable Write Protection from a USB Key - Remove Write Protection on a USB

To remove the write protection, simply open your Start menu, and click on Run. Type in regedit and press Enter. This will open the registry editor.

The next step is to navigate to the following path:


Double-click the WriteProtect key located in the right side pane and set the value to 0. Go to the Data Value box and press OK:

To finish, simply restart your system, and then reconnect your USB pen drive to the computer.

How to remove write protection from pen drive in windows 10 | How to erase and format a write-protected USB flash drive & pen drive using Regedit.exe

Click Start, type Regedit in the search box, click Regedit.exe to open the Registry editor when you see it is displayed at the top of the list. And then navigate to the following key:


Double-click on the WriteProtect value in the right-hand pane of Regedit.exe. Change the Value data from 1 to 0 and click OK to save the change. Close Regedit and restart your computer. Connect your USB flash drive or pen drive again, and you should find the write protection is removed and the device is no longer write protected.

After that, you can now format the drive as normal by right-clicking on it in My Computer and choosing Format. "The disk is write protected" error message will no longer pop up.

How to remove write protection from pen drive in windows 7 Using the Command Prompt


Run the Command Prompt as an Administrator: 


Type .diskpart and press  Enter.


Type .list disk and press  Enter.


Find your USB drive or SD card in the list: 

  • If you've given the USB drive a name before, it will be listed in the Label column.
  • Look for Removable in the Type column.
  • You can also see the size of your external drive to differentiate it.


Type .select disk X

Replace X with the number from the first column in the list for the USB drive or SD card you want to perform commands for. For example, if the USB drive is Disk 5, you'd type select disk 5


Type .attributes disk clear readonly and press  Enter. This will change your USB's properties so that it is no longer read-only.

Type .exit and press  Enter, then try your drive.

How to remove write protection from sandisk pen drive

we’re going to edit the Windows Registry:

Press Windows Key + R to open the Run dialogue. Type regedit and press Enter. Now, navigate to the following registry location:


Look for a key named WriteProtect.

If it exists, double-click it. This will open the Edit DWORD (32-bit) Value box. You can now set one of two values: 0 or 1. 1 means “Yes, write protect my USB storage devices.” Conversely, 0 means “No, don’t write protect my USB storage devices.” Set the value to 0, and then press OK.

How to remove write protection from USB drives and memory cards | Write protected pen drive format tool

If you’ve got a USB drive or SD card that can’t be formatted and to which you can’t copy files, then take a look at our guide to removing write protection.

Launch a command prompt as an administrator

Now, at the prompt, type the following and press Enter after each command:

list disk
select disk x (where x is the number of your non-working drive – use the capacity to work out which one it is)
attributes disk clear readonly
create partition primary
format fs=fat32  (you can swap fat32 for ntfs if you only need to use the drive with Windows computers)

That's it. Your drive should now work as normal in File Explorer. If it doesn't, it's bad news 

The only solution is to replace the drive.  Either return it to where you bought it or return it to SanDisk directly.

Remove write protection from pen drive in windows 10

We have prepared a tutorial to help you eliminate the write protection of your pendrive without major complications, so you can finish passing those songs to your friend or those photos to your mother.

Step 1

Insert the device into the USB port of your computer and make sure it has been recognized correctly. A message in the lower right corner of the screen usually confirms this acknowledgment.

Step 2

Click the following link to download the batch add.bat file. Then run it. Once this is done, the key will be automatically added to the Registry Editor.

Step 3

Open the “Run” window in the “Start Menu” and enter the “regedit” command. Once this is done, the Windows Registry Editor will open. While browsing the folders, search for the following path: KEY_LOCAL_MACHINE> SYSTEM> CurrentControlSet> Control> StorageDevicePolicies.

Step 4

This is the most important step: Double-click the “WriteProtect” key in the Registry Editor, and in the window that appears, type “0” in the “Value data” field. Then press “OK”. Close the editor and restart the computer. Insert the thumb drive again and check if the protection has been removed correctly.

NOTE: It is important to remember that the above feature does not only work on pendrives. It can also be used to remove write protection from memory cards, iPods, MP3 players and other devices connected through the USB port.

If the method explained here does not work, there is a more drastic solution, which is to format the device completely.

Leave a Reply