Write protection is a feature that is intended to prevent users from accidentally deleting or modifying data on a disk or other storage device. Unfortunately, Windows sometimes refuses to work with a disk because it detects it as write-protected when it shouldn't be.
How to Fix Your Device's Write-Protected Media Issue in 2020
The good news is that there are several solutions to the "Media is Write Protected" error in Windows. Let's take a look, starting with the most obvious solutions.
If you are having trouble formatting or writing to a USB flash drive, SD card, or similar external storage device, check to see if there is a write-protect switch. This is a physical slide switch that can be toggled on and off, as shown in the image above.
If it is accidentally pushed into the write-protect position, you will not be able to format or write to the drive until you flip the switch back. Make sure you eject the drive before flipping the switch!