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.

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.

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.

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.

Change the number in theValue databox to0and clickOK.
Close regedit, andrestart your machine.
In the left pane, name the new keyStorageDevicePoliciesand pressenter.

Name the new valueWriteProtectand pressenter.
Close regedit, and cycle your setup.
What If I Cant Remove Write Protection on a Micro SD Card?

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.

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.

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










