To remove write protection, slide the switch toward the front of the card where the metal contacts are.

Jeremy Laukkonen / Lifewire

Have you been using your SD card as internal storage on an Android?

The card may have been modified to only work with that particular Android machine.

Micro SD card adapters with the lock switch visible in two positions.

Jeremy Laukkonen / Lifewire

Heres how to remove write protection from a micro SD card using Diskpart:

bring up the Command Prompt.

If prompted by User Account Control, clickYes.

Locate your micro SD card in the list, and make note of thedisk number, i.e.DISK 1.

diskpart highlighted in the command prompt.

Typeselect diskdisk_number, replacingdisk_numberwith the number you noted in the previous step, and pressenter.

Typeattributes disk clear readonly, and pressenter.

Wait until you see the messageDisk attributes cleared successfully.

list disk highlighted in the command prompt.

Typeexit, and pressenterto close Diskpart.

Before you make any changes, verify toback up your Windows Registry.

If you dont see StorageDevicePolicies, check the next section for instructions on how to add it.

The disk number column highlighted in diskpart.

Change the number in theValue databox to0and clickOK.

Close regedit, andrestart your machine.

In the left pane, name the new keyStorageDevicePoliciesand pressenter.

select disk 1 highlighted in diskpart.

Name the new valueWriteProtectand pressenter.

Close regedit, and cycle your setup.

What If I Cant Remove Write Protection on a Micro SD Card?

attributes disk clear readonly highlighted in diskpart.

The same thing happens if the card starts to fail.

In some cases, a micro SD card can also be locked down by a specific unit.

Just see to it to back up the files first, because formatting the card removes all the files.

Disk attributes cleared successfully highlighted in diskpart.

FAQ

Look for a physical lock switch on the SD card.

Alternatively, use thediskpartcommand to choose your SD card and enterattributes disk clear readonly.

Toerase everything on an SD cardin Windows, open File Manager, right-click your SD card, and selectFormat.

Exit highlighted in diskpart.

On Macs, open Disk Utility, choose your SD card, and selectErase.

regedit highlighted in the command prompt.

StorageDevicePolicies highlighted in the Registry Editor.

Modify highlighted in the Registry Editor.

Value data highlighted in Registry Editor.

Control highlighted in Registry Editor.

New and Key highlighted in Registry Editor.

StorageDevicePolicies highlighted in Registry Editor.

New DWORD (32-bit) Value highlighted in Registry Editor.

WriteProtect highlighted in Registry Editor.

Modify highlighted in Registry Editor.

Value data highlighted in Registry Editor.