“The Disk is Write-Protected” if you are getting this error while access your usb pen drive or sd card, its mean definitely something wrong with USB. Write-Protected means you can’t add delete or even not able to format the USB Pen drive, this is painful situation, but here I will shows two methods to repair this type of issue, one is from command prompt and another one is from regedit. So let see how to do this..
1. Right click on start button select “Command Prompt (Admin)
2. Type following command, hit “enter” after each command
diskpart
list disk
select disk 1 (disk 1 should be your usb drive)
attributes disk clear readonly
exit
exit
3. Now remove and reattach the USB Drive, if this not work try regedit
4. Its little hard to explain regedit in text, please watch below video for registry edit.