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. Dai un nome alla nuova sottochiave così creata come StorageDevicePolicies. Ora vieni sul lato destro di questa sottochiave, cioè StorageDevicePolicies, fai clic con il tasto destro e seleziona Nuovo, seguito dalla selezione di Valore DWORD. Nominate il DWORD appena creato come WriteProtect.

In alcuni casi, potreste scoprire che questo DWORD sotto la sottochiave esiste già e il DWORD ha un valore impostato a 1. Fai doppio clic sul DWORD per modificare il suo valore.

4. Cambia i dati del valore a 0 da 1. Fai clic su OK. Chiudete l'Editor del Registro di sistema. E reinserisci il drive USB.