How to unlock a write-protected USB flash drive, memory card or hard drive in Windows 10, 8, 7

Read what to do if when you try to format a flash drive, memory card or hard disk, you get the message: “The disk is write-protected” . And also, how to unprotect and unlock any device correctly, if you cannot create or copy files to a USB flash drive or memory card, because the device is write-protected. Read what to do if when you try to format a flash drive, memory card or hard disk, you get the message: “The disk is write-protected”Content:

  1. A switch to lock the device from writing;
  2. Viruses;
  3. Flash drive overflow or file system;
  4. Unlock flash drive using the command line;
  5. Unlock flash drives in the registry Windows;
  6. Remove device write protection in the Windows Local Group Policy Editor.

You can receive a similar message not only on a computer, but also on a mobile phone, tablet, TV, or car radio. To solve the problem follow our instructions.


  1. Some models of flash drives, memory cards and external drives can be equipped with switches to lock the device from writing. The most common such switches on SD cards. Carefully inspect the device and check the position of the switch, if any.

    Carefully inspect the device and check the position of the switch, if any

  2. Maybe your the device is infected with a virus which blocks the recording or formatting of the disk. Check it with antivirus and treat it if necessary.

    Check it with antivirus and treat it if necessary

  3. Perhaps the write error occurs due to overflow flash drive. Check the availability of the necessary free space and the file system on the USB flash drive. On FAT32, it is impossible to write a file larger than 4 GB .

    On FAT32, it is impossible to write a file larger than 4 GB

  4. Spend unlock the flash drive using the command line:

    Spend unlock the flash drive using the command line:

    1. Run a command prompt as administrator, enter the Diskpart command and press Enter .
    2. Type list disk and press Enter .
    3. Find the disk number that corresponds to your flash drive. For a choice be guided by the size of a disk. Type select disk N (where N is the disk number that corresponds to the flash drive) and press Enter .
    4. Type attributes disk clear readonly and press Enter . This unlocks your flash drive for recording. We also recommend cleaning and formatting the flash drive for further work. Perform the following actions only if there is no important information on the flash drive .
    5. Enter clean and press Enter - this will delete all information on the flash drive, including service data.
    6. Enter create partition primary and press Enter , it will create a new partition.
    7. Then type select partition 1 and press Enter .
    8. Then type active and press Enter , the new partition will become active.
    9. Then type format fs = fat32 quick and press Enter , it will format the device in the FAT32 system.
    10. Then type assign and press Enter to assign a drive letter to the flash drive.
  5. Spend unlock flash drives in the Windows registry:

    Spend unlock flash drives in the Windows registry:

    1. Run the execute command, enter regedit and press Enter .
    2. Navigate to HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ StorageDevicePolicies . If you do not have such a section, then create it.
    3. Set the value of the WriteProtect parameter to 0 . Create this parameter if it is not on your system.

If while copying or creating files on the device you see the message: You need permission to perform this operation.

If while copying or creating files on the device you see the message: You need permission to perform this operation

Or when you try to format, you receive a message: You do not have sufficient authority to perform this operation.

Or when you try to format, you receive a message: You do not have sufficient authority to perform this operation

So you need to remove the write protection of the device in the Windows Local Group Policy Editor:

So you need to remove the write protection of the device in the Windows Local Group Policy Editor:

  1. Run the execute command, enter gpedit.msc and press Enter .
  2. Go to the section "Computer Configuration" - "Administrative Templates" - "System" - "Access to removable storage devices . "
  3. Disable the property "Removable drives: disable recording . " To do this, double click on it, set the value to Disabled and click Ok .
  4. Repeat these steps for the section “User Configuration” - “Administrative Templates” - “System” - “Access to Removable Storage Devices” .

After the above steps, try to create a file or folder on a flash drive. If this guide did not help you, see our previous video on fixing bugs on a flash drive.

2017-02-22 Author: Michael Miroshnichenko