How to Remove Write Protection from a USB Drive
Question details
The user needs to disable the write protection on a USB flash drive in order to modify, add, or delete files.

- Product
- USB Drive
- Device & OS
- Windows
- Scenario
- Attempting to copy, modify, format, or delete files on a USB drive but receiving a disk is write-protected error.
- Observed behavior
- The USB drive is locked in a read-only state, blocking all write operations while still allowing existing files to be viewed or copied.
Before making any system-level changes or attempting to clear attributes, try to copy and back up all readable files from your USB drive to a secure folder on your computer's local hard drive.
Check for a Physical Switch and Hardware Port
Many USB drives have a physical lock switch that accidentally gets flipped. Checking this is the easiest first step to restore write access.
Look closely at the edges of the USB drive for a tiny physical slider switch.
If a switch is present, slide it to the opposite position (usually marked with an open padlock icon or 'Unlock').
Safely eject the USB drive and plug it into a different USB port or another computer to rule out a malfunctioning hardware port.
Clear Read-Only Attributes via DiskPart
Use the built-in Windows Command Prompt utility to forcefully remove the software-level write protection attribute from the flash drive.
Manage Your Unlocked Documents with WPS Office
Once your USB drive is writable again, you might need to edit, save, or organize your documents. WPS Office provides a free, lightweight, and highly compatible alternative to Microsoft Office, letting you handle your files effortlessly directly from your USB drive.
- 1. Download and Install: Get WPS Office for free from the official website and install it on your PC.
- 2. Open USB Documents: Plug in your unlocked USB drive, open WPS Office, and browse to your saved files.
- 3. Edit and Save Seamlessly: Edit your Word, Excel, or PowerPoint documents and hit save to instantly write changes back to your USB drive.

Frequently Asked Questions
Why did my USB drive suddenly become write-protected?
Write protection can trigger due to a flipped physical switch, accidental software attribute changes, restrictive organizational security policies on your work computer, or as an automatic protective measure when the flash memory hardware begins to fail.
Can I format a write-protected USB drive?
No, standard formatting tools will be blocked by the write protection. You must first remove the read-only state using DiskPart or the physical switch before your operating system will allow you to format the drive.
What if the DiskPart method fails to remove the protection?
If DiskPart fails or the write protection returns immediately, the USB drive has likely suffered a physical hardware failure. In this state, it locks itself permanently to prevent further data corruption. You should back up the readable data and replace the drive.
Is there a Windows registry fix for USB write protection?
Yes, in the Windows Registry Editor, navigating to 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies' and setting the 'WriteProtect' value to '0' can sometimes resolve system-wide USB write-protection restrictions enforced by Windows.





