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. 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
      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!

      About This Article

      Thanks to all authors for creating a page that has been read 99,592 times.

      Is this article up to date?

      Advertisement