Encountering a write protected USB drive on Windows 10 can halt your workflow instantly, preventing any file transfers or modifications. This specific error typically manifests when the system detects a security switch, a corrupted registry setting, or malware interference that locks the device into read-only mode. Understanding the root cause is the first step toward resolving the issue and restoring full functionality to your storage medium.
Identifying the Write Protection Status
Before attempting any fix, you must confirm that the USB drive is indeed write protected. The symptoms are usually obvious: you cannot copy new files, and attempts to delete or modify existing data result in error messages stating "磁盘是写保护状态" (The disk is write protected). Physical switches on USB adapters or SD card adapters are a common culprit, but logical locks within the operating system are often the real reason for the obstruction.
Checking the Physical Switch
Many external drives and memory card adapters feature a small physical slider switch located on the side of the device. This switch is a hardware safety feature designed to prevent data from being altered during transport. If this switch is slid toward the "Lock" position, Windows 10 will treat the drive as read-only, regardless of the software settings. Ensure this mechanical switch is in the "unlocked" position before proceeding with digital troubleshooting.

Utilizing Diskpart Utility
For drives that have no physical switch or for internal software locks, the Command Prompt offers a powerful solution through the Diskpart utility. This command-line tool allows you to manage disk partitions and attributes directly. By accessing the disk attributes, you can clear the "read-only" flag that is currently blocking write access.
Step-by-Step Command Execution
To use Diskpart, you must open Command Prompt as an administrator to ensure you have the necessary privileges to modify system-level attributes. The process involves selecting the specific disk number associated with your USB drive and then cleaning the read-only attribute. Follow these steps carefully to avoid selecting the wrong disk, which could lead to data loss.
The Diskpart Sequence
- Type diskpart and press Enter to open the utility.
- Type list disk and press Enter to view all connected drives.
- Identify your USB drive by its size and type select disk [number], replacing [number] with the correct identifier.
- Type attributes disk clear readonly and press Enter to remove the protection.
Editing the Windows Registry
If the Diskpart method fails, the next likely source of the problem is the Windows Registry. Specifically, the "WriteProtect" DWORD value in the ControlSet registry key may be set to 1, enforcing a read-only state. Editing this value requires caution, as improper changes to the registry can destabilize the operating system.

Navigating to the Correct Key
You will need to navigate through the registry editor to locate the specific value responsible for the lock. Backing up the registry key before modification is highly recommended, as it provides a restore point in case something goes wrong. Once the WriteProtect value is found, changing it to 0 usually resolves the issue.
Scanning for Malware and Viruses
Some sophisticated malware is designed to specifically target storage devices by enabling write protection, effectively locking your files hostage until a ransom is paid. While this is less common than a simple registry tweak, it is a serious possibility if the USB drive has been used on multiple unfamiliar machines. Running a full system scan is a critical step to ensure the restriction is not malicious in nature.
Formatting the Drive as a Last Resort
When all non-destructive methods fail, or if the drive is corrupted, formatting becomes the only viable option. This process erases all data on the USB drive, so ensure you have recovered any important files beforehand. Formatting removes the existing file system structure and resets all attributes, including write protection, allowing you to create a fresh, writable environment.
![[Solved 2021]How to Remove Write Protection from USB or SD Card in Windows 10 and Mac?|4DDiG](https://i.pinimg.com/originals/fa/ae/62/faae62272f3808dc5bf6e2044fff1433.jpg)


![The media is write protected error in Windows 11 [Fix]](https://i.pinimg.com/originals/3f/f1/ca/3ff1cab514ccf39ca7aa6625076f5d7e.png)



![[Solved 2021]How to Remove Write Protection from USB or SD Card in Windows 10 and Mac?|4DDiG](https://i.pinimg.com/originals/cc/2a/8a/cc2a8abff610f75c3efe5aee865e9946.jpg)



![[THE DISK IS WRITE PROTECTED] How to Enable/Remove Write Protection from USB or SD Card - 3 Methods](https://i.pinimg.com/originals/8b/6d/68/8b6d68ee94722901051c7ec44d4e14eb.jpg)











