How to remove write protection from a pen drive in Windows 7 (SanDisk Ultra 32GB)

There are mainly 2 methods for removing the write protection:

  1. The Diskpart CMD Method.
  2. The Regedit Method.

Diskpart command Method:

1. Open administrative Command Prompt.

2. Enter these commands & hit Enter key after each -

  1. diskpart 
  2. list disk 
  3. select disk # (# select the disk which is write protected) 
  4. attributes disk clear read-only 

3. Close the Command Prompt and re-insert the USB drive.

Registry edit method:

1. Press Windows Key and R keys simultaneously , then a dialog box will appear. Type "regedit" in Run dialog box and hit Enter to open the Registry Editor.

2. In the left side, navigate to : HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControl

3. In the left side of this location, right click Control key and select New, followed by selecting Key. Nombra la nueva subclave así creada como StorageDevicePolicies. Ahora vaya a la parte derecha de esta subclave, es decir, StorageDevicePolicies, haga clic con el botón derecho y seleccione Nuevo, seguido de la selección de Valor DWORD. Nombre el nuevo DWORD creado como WriteProtect.

En algunos casos, usted puede encontrar que este DWORD bajo la sub-clave ya existe y el DWORD tiene un valor establecido en 1. Haga doble clic en la DWORD para modificar su valor.

4. Cambie los datos del valor a 0 desde 1. Haga clic en Aceptar. Cierre el Editor del Registro. Y vuelva a insertar la unidad USB.