3 ways to Remove Write Protection From USB PenDrive

Getting error "The disk is write protected" while formatting USB? Here how to Remove Write Protection from USB in Windows 10/11

Experiencing drive is write protected or Device is Write protected error While plugging a USB flash drive into your computer? Due to This error drive became unreadable, and don’t allow copying/paste data onto it. Also, Some Causes user’s reports Getting cannot format the drive is write protected while formatting the USB drive. This is mostly caused when Windows registry entry gets corrupted, your system administrator has placed limitations or the device itself is corrupt. Here follow the instructions below to Remove Write Protection From USB Pendrive, SD card, Flash drive, External Drive, etc.

- Advertisement -

Issue: Getting Error message “The disk is write-protected. Remove the write protection or use another disk.”While open or Try to format an External USB/Pendrive.

How To Remove Write Protection From USB Pendrive

Start with a basic check The device with a different USB port or on a different PC. Again Some external devices such as pen drives carry a hardware lock in the form of a switch. You need to see if the device has a switch and if it is pushed to protect the device from accidental writing. Also, scan the device for Viruses/malware infection, To make sure any virus, or spyware not causing the issue.

Tweak Windows registry editor to remove write protection

This is the best effective tweak I have found to Remove write protection from pen drives, USB flash drives, SD card etc. With this tweak we are going to modify the registry editor, It is recommended to backup the registry database before making any modifications.

- Advertisement -

Press Windows key + R, type Regedit, and press the ok key to the open Windows registry editor. Then navigate to the following path:

HKEY_LOCAL_MACHINE > SYSTEM> CurrentControlSet > Control > StorageDevicePolicies

Note: If you didn’t find the key StorageDevicePolicies, Then right-click on the control and select new -> key. Name the newly created key as StorageDevicePolicies.

Now Click on the new registry key StorageDevicePolicies and on the right pan right-click, select New > DWORD and give it the name WriteProtect.

- Advertisement -

create WriteProtect DWORD value

Then Double-click on the “WriteProtect” key located in the right side pane and set the value to 0. Close the registry editor and reboot your pc to take effect the changes. On the next start check this time your removable drive working properly without a write protection error.

Check Security Permissions

Also, check and make sure your current user has proper permissions to read/write on the disk drive. To check and grant permission open this PC / My computer, Then Right-click the USB drive and select properties. In the properties window, select the Security tab.
Then select the ‘user’ under the username and click on ‘Edit’.
Check if you have to Write permissions. If you don’t, check the option “Full” for full permissions or “Write” for write permissions

Check Security Permissions

Remove write protection from USB drive using the Diskpart command

This is another effective solution to remove write protection from pen drives, USB flash drives. To do this first you need to open the command prompt with administrative privileges. Now, at the prompt, type the following and press Enter after each command:

Note: while performing the steps below you may lose all data from your USB drive. If you have important data on that USB drive we recommend to backup them using a third-party backup utility.


list disk

select disk x (where x is the number of your non-working drive – use the capacity to work out which one it is)

attributes disk clear readonly


create partition primary

format fs=fat32  (you can swap fat32 for ntfs if you only need to use the drive with Windows computers)


Remove write protection using DiskPart Command Utility

That’s it. remove the drive and restart Windows. On the next start insert the drive, Your drive should now work as normal in File Explorer. If it doesn’t, it’s bad news and there’s nothing more to be done.

These are the 3 most effective solutions to remove write protection from USB, Pendrive, SD card, etc. I am sure after applying these tweaks resolve the disk is write-protected or the drive is a write-protected error. And The USB drive works smoothly. have any query suggestions feel free to discuss on the comments below.

Also, Read

- Advertisement -

More from this stream