Check the micro SD card adapter for a physical lock switch and slide it to the unlocked position
If using a full-size SD adapter, ensure the lock switch is not set to Lock
Reinsert the card into the device or card reader after unlocking
On Windows, open Command Prompt as administrator
Type `diskpart`
Type `list disk`
Type `select disk X`
Type `attributes disk clear readonly`
Type `exit`
Open Registry Editor on Windows
Go to `HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlStorageDevicePolicies`
Set `WriteProtect` to `0`
If `StorageDevicePolicies` does not exist, create it and add `WriteProtect` as a DWORD value set to `0`
Run `chkdsk X: /f` to repair file system errors
Format the micro SD card if write protection is removed and data is backed up
Use the card manufacturer’s formatting tool if available
Try the card in another device or card reader
Replace the micro SD card if it remains write-protected permanently
