Write protection is a feature that intends to prevent users from accidentally deleting or altering data on a disk or other storage devices. Unfortunately, sometimes Windows refuses to work with a drive because it detects it as write protected when it shouldn’t be.

The good news is that there are various fixes for the “Media is Write Protected” error in Windows. Let’s have a look, starting with the most obvious fixes.

Check Your Media for a Write Protection Switch

If you’re having trouble formatting or writing to a USB flash drive, SD card or similar external storage device, check for a write protection switch. This is a physical sliding switch that can be toggled on and off, as shown in the picture above.

If it was accidentally pushed into the write protection position, you won’t be able to format or write to the drive till you toggle it back. Be sure to eject the drive first before toggling the switch!

Removing Write Protection from Files and Folders

If your problem is write protection of specific files and not the entire disk, it’s easy to fix:

  1. Open File Explorer.
  2. Navigate to the files and/or folders that are write protected.
  3. Select the files and/or folders.
  4. Right-click on your selection and select Properties.
  5. Under the General tab, make sure the box labeled Read-Only is unchecked.
  6. Select Apply and then OK.

If you’ve selected a folder that contains other files and folders, you’ll be asked to confirm that the attribute change should also be applied to all files and folders inside the primary folder.

Run a Disk Scan

One good bit of housekeeping to do before you start messing around with the guts of your operating system is to do a physical scan of the drive in question. If the disk is damaged or corrupted, that may cause a write protection error.

To run a full disk scan in Windows:

  1. Open File Explorer.
  1. Right-click on the drive you want to scan and select Properties.
  1. Go to the Tools tab.
  2. Select Check.
  3. Select Scan and Repair Drive.

If the scan detects and repairs any problems on the drive, try to use the drive again.

Run a Full Malware Scan

Certain malware may write protect drives to prevent their own deletion. It’s not the most likely reason you’re getting the write protection error, but since a malware scan is quick and easy to do, it’s worth performing one anyway.

If removing the malware from the system or disk doesn’t fix the issue follow the steps mentioned below to return the drive to normal.

Check System Files for Corruption

The final piece of essential prep work when trying to make a drive writable again is to run the System File Checker (SFC). This will compare all of your crucial system files to the gold standard originals. If any files have been altered or corrupted, pristine new versions will be downloaded and installed.

Check out Use These Command Prompt Commands to Fix or Repair Corrupt Files for instructions on how to use SFC.

Use Advanced Formatting Tools

If all you want to do is format a drive, but you’re being blocked by write protection, then the answer may be to use a formatting utility with a little more muscle. Many users swear by the HP USB Formatting Tool to bully write protected external disks into cooperating.

It’s also one of the few utilities that lets you format large disks into FAT32 format, something that’s necessary from time to time. Bear in mind that you need to run this app with administrator privileges for it to work. Results are reportedly mixed, but the following solutions are a little more complex, so if you want to take a chance with a formatting utility app first this is one option.

Remove Write Protection With DiskPart

DiskPart is a powerful command line utility in Windows that can remove attributes from entire disks or specific partitions.

  1. First, insert the USB drive that is write protected, if applicable.
  2. Open the Start Menu and type diskpart.
  3. Select the diskpart run command from the results.
  4. If you’re asked for administrator permissions, say yes.
  5. At the command line for DiskPart, type list disk and press Enter.
  6. Look for your USB disk in the list of drives, make a note of its disk number. You’ll need it shortly!
  7. Now, type select disk #, but replace the # with the correct disk number. Then press Enter.
  8. Type attributes disk clear readonly and then press the Enter key.
  9. After receiving the confirmation message, type Exit and press Enter.

Remove Write Protection with Regedit

Sometimes a drive is marked as write protected and you’ll get the “Media is Write Protected” error because the corresponding value in the Windows registry is incorrect. If possible, avoid messing around in your registry. If this is your last resort, please consider backing up your registry in case something goes wrong.

With that being said, here’s how to remove write protection from a USB drive in Windows:

  1. Insert the drive you want to modify into a USB port.
  2. Open the Start Menu and type Registry Editor.
  3. Select Registry Editor from the results.
  4. In the registry editor, navigate to HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Control > StorageDevicePolicies.
  1. Double-click WriteProtect. This will open the Edit DWORD window.
  2. Look for the Value data box, then enter 0 as the new value.
  3. Select OK and close the registry editor.
  1. Restart your computer and check the disk again.

What if there is no StorageDevicePolicies value to change?

Creating StorageDevicePolicies 

If you’re unlucky enough not to have the right registry value to change, you’re just going to have to make it yourself. Don’t worry, you’ve got this.

  1. Open the Registry Editor as detailed above.
  2. Navigate to HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Control.
  3. Right-click in an empty area of the right-hand pane and select New > Key.
  4. Name the new key StorageDevicePolicies and press Enter to confirm.
  5. Select StorageDevicePolicies.
  6. Again, right-click in the empty space of the right hand pane and select New > DWORD(32-bit) Value.
  7. Name the new DWORD value WriteProtect and press Enter to confirm.
  8. Double-click WriteProtect. This will open the Edit DWORD window.
  9. Look for the Value data box, then enter 0 as the new value.
  10. Select OK and close the registry editor.
  11. Restart your computer and check the disk again.

 

If this tip helps and you would like to donate click on the button. Thanks In Advance

________________________________________________________________________________________________________

"Fortune Favors, Who Value Time over Money!"

"TeQ I.Q. was the 1st IT Company to Deliver Cloud Solutions since 2003"
Tech issues taking up your Time?
"TeQ I.Q. Makes Your Technology Simple and Easy"
Do you have Tech Frustrations like your Computer, Internet, Phone, Cellphone, Camera, TV, Car?

     "We Take Away Your Tech Frustrations and Give You the Free Time You Deserve!"
Call Robert to ask all your Technology questions.

We are giving a Free in Person TeQ Seminar at our office in La Mesa every Wednesday from 12pm-1pm and a Free TeQ Support Q&A from 1pm-2pm. Go to https://www.teqiq.com/events for our upcoming Events and https://www.teqiq.com/seminars for info on each Seminar.

For Free Consultation Call Now Robert Black at (619) 255-4180 or visit our website https://www.teqiq.com/

Chase Bank and Others Trust TeQ I.Q. with their IT and TeQnology so can you!