Journal logo

How Do I Remove Write Protection from a USB Drive in Windows?

Remove Write Protection from USB Drive

By Elle StephenPublished 12 months ago 6 min read

USB drives are one of the most convenient and portable ways to store and transfer data. However, sometimes users encounter the frustrating problem of being unable to write or modify files on their USB drives due to "write protection." This can happen for various reasons, and it often leads to confusion and stress. The good news is that there are several methods to remove write protection from a USB drive on Windows. In this blog post, we will guide you through some simple and effective ways to disable write protection on your USB drive.

What is Write Protection on a USB Drive?

Write protection is a characteristic that prevents users from editing, adding, or deleting files on a USB drive. This protection or security can be set by hardware or application.

Write protection is a feature that prevents users from editing, adding, or deleting files on a USB drive. This protection can be set by hardware or program. When a USB drive is write-protected, it essentially becomes a "read-only" device, meaning you can only view files stored on it but not change them.

Write protection is often used for security reasons, or it may occur when the USB drive has become corrupted. If you are unable to write or modify files on your USB drive, it’s likely that write protection is enabled, and you’ll need to disable it.

Why is My USB Write-Protected?

Some reasons could cause your USB flash drive to be write-protected. These include:

  • Physical Lock: Some USB drives have a physical switch on them that enables or disables write protection. If this switch or off is set to the "locked" position, it will prevent any data file modification on the device.
  • Corrupt or Damaged USB Drive: Sometimes, a corrupt or damaged file system on the USB drive can trigger write protection. The drive may automatically enter this state to prevent further damage to the data.
  • Registry Settings: In few cases, the Windows registry setups could be misconfigured, leading to write protection on the USB drive.
  • Third-Party Software: Some antivirus or security software may set write protection on a USB drive as a safety measure to protect against viruses or malware.
  • Disk Errors: Bad sectors or other disk errors can trigger write protection as a way to prevent data loss.

Top 6 Methods to Remove Write Protection from a USB Drive

Now that we know why write protection occurs, let us see different ways to remove write protection from pen drive.

1. Check the Physical Switch

The first thing to check is whether your USB drive has a physical write protection switch. Many USB drives, particularly older models, have a small switch on the side that can toggle between locked (write protection enabled) and unlocked (write protection disabled). If your USB flash drive has a switch, easily move it to the "unlocked" position and use writing to the drive again.

2. Remove Write Protection from Pen Drive - Use Windows Registry Editor

If your pen drive drive does not have a physical write protection switch, or the switch is already in the unlocked position, you can try editing the Windows registry to remove write protection from USB windows.

Here are the Steps:

  • Select the Win + R button to open the Run dialog box.
  • Write the regedit and press the Enter to start the Registry Editor. If prompted by User Account Control, hit the "Yes" to grant permission.
  • In Registry Editor, go to the following path:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies

  • If you can not search the "StorageDevicePolicies" folder, you can create it by right-pressing on the "Control" folder, choosing "New" > "Key," and naming it "StorageDevicePolicies."
  • In the StorageDevicePolicies folder, find a value named WriteProtect.
  • If this value appears, double-click it to edit it. If it doesn't, right-click in the right pane, select New > DWORD (32-bit) Value, and name it Write Protected.
  • To disable write protection, set the Write Protect value to 0 (zero).
  • Tick the OK to save the changes and close the Registry Editor.
  • Restart or renew your system and try using your USB flash drive again.

3. Use Diskpart to Remove Write Protection

Diskpart is a command-line tool built into Windows that allows users to manage disks, partitions, and volumes. You can use this to remove the write protection from your USB drive. Here’s how:

  • Press Win + X and select Command Prompt (Admin) or Windows PowerShell (Admin) from the menu to open a command-line window with administrative privileges.
  • In the (CMD) Command Prompt, type the following instruction and choose the Enter tab: diskpart
  • Enter the following command to list all the disks available on the computer: list disk
  • Find your USB pen drive by its size and number in the list of disks. For Ex, if your USB drive is listed as "Disk 1," note that number.
  • Select your USB drive by typing the following command, replacing "X" with the correct disk number: select disk X
  • To check the attributes of the selected disk, type: attributes disk.
  • If "Write Protection" is set to "Yes," you can proceed with removing it.
  • To disable write protection, type the following command: attributes disk clear read only.
  • You should receive a message stating that the attributes were successfully cleared.
  • Type the exit to close Diskpart and then off the Command Prompt.
  • Restart your computer and try using the USB drive again.

4. Check for Malware or Virus Infections

Malware or viruses can sometimes cause write protection on a USB drive to prevent file modifications. To ensure that your USB drive is not infected, run a full system scan using your antivirus software. If malware is detected, remove it and try again to see if write protection has been removed.

5. Format the USB Drive

If none of the above methods work, the last resort is to format the USB drive. Formatting the drive will delete all data on the drive, so be sure to back up any important files before starting.

  • Insert the USB drive into your computer.
  • Start the File Explorer and right-select on the USB drive.
  • Select Format from the context menu.
  • In the Format window, select the file system you want to use (usually FAT32 or exFAT for USB drives).
  • Make sure the "Quick Format" option is selected.
  • Click Start to begin the formatting process.
  • After the format is complete, check to see if write protection has been removed. If the problem persists, your USB drive may be physically damaged or defective, and you may need to consider replacing it.

6. Remove Write Protection from a USB Drive - Use Third-Party Software

If none of the built-in methods work, you can try using third-party software to remove write protection. Tools such as SysTools Pen Drive Data Recovery can sometimes bypass the limitations set by Windows and remove write protection.

This software helps you recover formatted data from pen drive without losing any information. Simply download the software, install it, and follow the on-screen instructions to remove write protection from your USB drive.

Easy Steps to Remove Write Protection from Pen Drive

  1. Download & install Pen Data Recovery Tool.
  2. Connect or attached your pen drive with your system.
  3. Select the Scan or Formatted Scan Option.
  4. Preview recovered deleted data from Drive.
  5. Click on "Save" to restore data at any location.

Conclusion

In conclusion, write protection on a USB drive can be a frustrating issue, but it is typically fixable with one of the methods to remove write protection from a USB drive above. Start by checking for a physical write protection switch, then proceed to the registry editor or Diskpart if needed. Always remember to back up any important data before attempting a format or using third-party software. If these methods don't work, it could be a sign that your USB drive is physically damaged and may need to be replaced.

We hope this guide has helped you resolve the issue of write protection on your USB drive. If you have any other questions or run into problems, feel free to leave a comment below!

how to

About the Creator

Reader insights

Be the first to share your insights about this piece.

How does it work?

Add your insights

Comments

There are no comments for this story

Be the first to respond and start the conversation.

Sign in to comment

    Find us on social media

    Miscellaneous links

    • Explore
    • Contact
    • Privacy Policy
    • Terms of Use
    • Support

    © 2026 Creatd, Inc. All Rights Reserved.