• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
WebSetNet

WebSetNet

Technology News

  • Technology News
    • Mobile
    • Games
  • Internet Marketing
  • System Admin
    • Windows 11
    • Linux
    • Mac & Apple
You are here: Home / System Admin / Windows 11 / How to Fix “Media Is Write Protected” in Windows

How to Fix “Media Is Write Protected” in Windows

May 20, 2021 by billy16

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.
  1. Navigate to the files and/or folders that are write protected.
  2. Select the files and/or folders.
  1. Right-click on your selection and select Properties.
  1. Under the General tab, make sure the box labeled Read-Only is unchecked.
  1. 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.
  1. Select Check.
  1. 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.
  1. Open the Start Menu and type diskpart.
  1. Select the diskpart run command from the results.
  1. If you’re asked for administrator permissions, say yes.
  1. At the command line for DiskPart, type list disk and press Enter.
  1. Look for your USB disk in the list of drives, make a note of its disk number. You’ll need it shortly!
  2. Now, type select disk #, but replace the # with the correct disk number. Then press Enter.
  1. Type attributes disk clear readonly and then press the Enter key.
  1. 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.
  1. Open the Start Menu and type Registry Editor.
  1. Select Registry Editor from the results.
  1. In the registry editor, navigate to HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Control > StorageDevicePolicies.
  1. Double-click WriteProtect. This will open the Edit DWORD window.
  1. Look for the Value data box, then enter 0 as the new value.
  1. 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.
  1. Navigate to HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Control.
  1. Right-click in an empty area of the right-hand pane and select New > Key.
  2. Name the new key StorageDevicePolicies and press Enter to confirm.
  1. Select StorageDevicePolicies.
  1. Again, right-click in the empty space of the right hand pane and select New > DWORD(32-bit) Value.
  1. Name the new DWORD value WriteProtect and press Enter to confirm.
  1. Double-click WriteProtect. This will open the Edit DWORD window.
  1. Look for the Value data box, then enter 0 as the new value.
  1. Select OK and close the registry editor.
  1. Restart your computer and check the disk again.

Phew! Hopefully this last resort will solved the “Media is Write Protected” issue in Windows for you!

Original Article

Related posts:

  1. Running out of storage? Try these tips to free up space on Windows 10
  2. The ultimate guide to fixing problems with the May 2020 Update
  3. How To Partition USB Drives In Windows 10 Using Disk Management
  4. FIX: Another installation is already in progress error
  5. Essential command tools to fix virtually any networking issue on Windows 10
  6. How To Take Ownership Of Registry Keys In Windows 10
  7. A comparison of GPT and MBR partition structures
  8. How to Install Windows After Ubuntu Linux in Dual Boot
  9. A Complete List Of Windows Stop Error Codes (Bug Check)
  10. Fix – INVALID_DATA_ACCESS_TRAP BSOD Error in Windows 10

Filed Under: Windows 11 Tagged With: protected, windows, write

Primary Sidebar

Popular Posts

  • What Is Shader Compilation and Why Does It Make PC Games Stutter? 2.1k views
  • 3 Ways to Disable GetApps on Xiaomi, Redmi, and Poco Phones Running MIUI 500 views
  • Enable or Disable Adjust for Daylight Saving Time in Windows 10 400 views
  • How To Restore Last Session On Google Chrome 300 views
  • How to Highlight Duplicates in Google Sheets 300 views
  • Exclamation Mark on Network Signal, Mobile Data Not Working? 8 Ways to Fix 300 views
  • How do I enable or disable Alt Gr key on Windows 10 keyboard 300 views
  • How to Block TLS 1.0 and TLS 1.1 in Microsoft Edge and Google Chrome 200 views
  • How to delete Downloaded, Failed & Pending Windows Updates 200 views
  • Dual Booting Ubuntu With Windows 10 Pro With BitLocker Encryption 200 views
  • What is "Workspace Trust" in Visual Studio Code? 200 views
  • How to change Outlook Navigation Pane position 200 views
  • Fix Explorer.exe Application error on Windows 10 200 views
  • LiVES Video Editor 2.8.5 Adds Experimental Wayland Support 200 views
  • Microsoft Store Error 0x80D03805 on Windows 10 200 views
  • Is Outbyte PC Repair Safe? 200 views
  • Will PS5 Play PS4 and PS3 Games? 200 views

Footer

Tags

Amazon android Apple Asus available download: edge feature features first free from galaxy Game games gaming gets google install Intel iPhone launches linux Microsoft more OnePlus phone release released review: samsung series support this Ubuntu update using video watch what will windows with xbox your

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org