PDF download Download Article
Turn off write protection on a pen drive using the switch, Diskpart, Regedit, & more
PDF download Download Article

This wikiHow guide teaches you how to remove write protection from a USB drive using Windows 10 or 11. If a USB drive is write-protected, you can't edit, delete, save, or move files on the drive, and you may see the error "The disk is write protected" on Windows. To work with the files on the drive, you will need to remove the write protection. If you cannot disable write protection, the drive may be damaged.

Turning Off Write Protection

Find the physical lock switch on the surface of your USB drive. Slide the switch from "On" to "Off." This operation will remove the write protection from the USB drive. You can also use Diskpart, make a registry change, use File Explorer, or turn off BitLocker.

Method 1
Method 1 of 5:

Using the Physical Lock Switch

PDF download Download Article
  1. It is typically located on the right or left side of the USB. Its location may vary for different USB brands. Check the surface of your USB drive, and you can find it.
  2. Slide the switch from "On" to "Off." This operation will remove the write protection from the USB drive.
    Advertisement
  3. Plug the USB back into the PC, and try to edit the files. You can edit the files if the write protection has been removed.
  4. Advertisement
Method 2
Method 2 of 5:

Using Diskpart

PDF download Download Article
  1. This opens a Run window, which can help you run apps and programs if you type the correct commands.
  2. This command launches Diskpart.exe.
    • You can also type diskpart in the search box (usually on the taskbar) to launch it.
  3. This command lists all the disks connected to your Windows PC, including the USB pen drive.
  4. To do this, identify the drive number for your USB drive (you should be able to figure it out based on the size in the "Size" column), then type select disk (number), and press Enter.
    • For example, if your USB drive is Disk 2, type select disk 2.
  5. This command removes the write protection on your USB drive.[1] The Diskpart application will inform you that the write protection on the USB drive has been cleared.
    • Type exit when you're finished to close Diskpart.
    • If you get an error or removing write protection does not work, try formatting the drive. If it doesn't work, try it on another computer. If you still cannot format the USB drive, it's likely damaged.[2]
  6. Advertisement
Method 3
Method 3 of 5:

Using File Explorer

PDF download Download Article
  1. You can click the File Explorer icon in the Start menu or right-click the Start menu and select File Explorer to do so.
  2. This opens the properties for the pen drive.
  3. Remove the checkmark from the "Read-only" box and click OK. This removes write protection from the USB drive.
    • If removing write protection does not work, try formatting the drive. If it doesn't work, try it on another computer. If you still cannot format the USB drive, it's likely damaged.[3]
  4. Advertisement
Method 4
Method 4 of 5:

Using the Registry Editor

PDF download Download Article
  1. You can edit the registry to remove write protection on a USB pen drive. To open the editor, type regedit into the Windows search bar and click Registry Editor.
  2. Here's how to get there:
    • Open the HKEY_LOCAL_MACHINE folder.
    • Click the SYSTEM folder.
    • Click the CurrentControlSet folder.
    • Click the Control folder.
  3. If you don't see this in the Control folder, right-click a blank area of the right panel and select New > Key. Type StorageDevicePolicies and press Enter.
  4. To do this, select the StorageDevicePolicies folder, then right-click the right panel and select New > DWORD. Type WriteProtect and press Enter.
  5. This opens the "Edit DWORD" window.
  6. The zero will disable write protection on the pen drive.
    • If removing write protection does not work, try formatting the drive. If it doesn't work, try it on another computer. If you still cannot format the USB drive, it's likely damaged.[4]
  7. Advertisement
Method 5
Method 5 of 5:

Turning Off BitLocker

PDF download Download Article
  1. Use this method if your USB drive is encrypted by BitLocker. You can easily open File Explorer by right-clicking the Start menu and selecting File Explorer.
    • You will see your USB drive under "This PC" in the left panel. If there's a padlock on the drive, you'll know it's locked by BitLocker.
  2. When you right-click the USB drive, you can see many options. This allows you to turn off the BitLocker.
  3. This operation disables BitLocker on your USB drive and removes write protection. You will see a notice telling you the operation will take some time.
  4. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!

You Might Also Like

Format a Write–Protected Pen DriveFormat a Write–Protected Pen Drive
Remove the Read‐Only State from a USB Drive6 Easy Ways to Fix a USB Drive That is Stuck in Read-Only Mode
Disable Write ProtectionA Guide to Disabling Write Protection
Remove Write Protection on an SD Card3 Quick Ways to Permanently Remove Write Protection from an SD Card
Turn Off BitLocker Disable BitLocker Encryption in Windows 10 and 11
Format a Pendrive if Windows is UnableWindows Unable to Format Pendrive: What to Do to Fix This Error
Open Bitlocker Encrypted USB Drive on Another ComputerOpen Bitlocker Encrypted USB Drive on Another Computer
Format a USB Using Cmd Format a USB Using CMD (Command Prompt)
Remove the 'Read Only' Status on MS Word Documents Turn Off "Read Only" In Word: 4 Quick & Easy Methods
Repair a USB Flash Drive Repair a USB Flash Drive That Won't Read: Quick Tips
Unlock Bitlocker Encrypted Drive from Command PromptUnlock Bitlocker Encrypted Drive from Command Prompt
Fix an Unrecognized USB DiskAn Unrecognized USB Drive: How to Fix It & Recover Your Data
Remove a Flash Drive from a Windows 10 ComputerSimple Ways to Remove a Flash Drive from a Windows 10 Computer
Partition a Thumb DrivePartition a Thumb Drive
Advertisement

About This Article

Nicole Levine, MFA
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for wikiHow. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions. This article has been viewed 187,783 times.
How helpful is this?
Co-authors: 5
Updated: September 18, 2025
Views: 187,783
Thanks to all authors for creating a page that has been read 187,783 times.

Is this article up to date?

Advertisement