Removing write protection from a pen drive in Windows 11 can seem daunting, but it’s actually quite simple. Just follow a few steps to tweak some settings, either through the Registry Editor or Command Prompt, and your pen drive should be back to normal. Make sure to back up any important data before starting, and you’re good to go!
How to Remove Write Protection from Pen Drive in Windows 11
Removing write protection will allow you to read, write, and delete files on your pen drive without any issues. Here are the steps to do it:
Step 1: Insert the Pen Drive
Plug your pen drive into a USB port on your Windows 11 computer.
Make sure your pen drive is securely connected, and wait for the system to recognize it. You should see a notification or the drive appearing in File Explorer.
Step 2: Open Command Prompt as Administrator
Press the Windows key, type "cmd," right-click on Command Prompt, and select "Run as administrator."
Running Command Prompt as an administrator is crucial because it gives you the necessary permissions to modify system settings.
Step 3: Use Diskpart to List Disk Drives
Type "diskpart" and press Enter, then type "list disk" and press Enter again.
This command will show you all the disk drives connected to your computer. Look for your pen drive in the list to identify its disk number.
Step 4: Select Your Pen Drive
Type "select disk X" (replace X with the number of your pen drive) and press Enter.
By selecting your pen drive, you’re telling Diskpart which disk to modify. Double-check the disk number to avoid making changes to the wrong drive.
Step 5: Remove Write Protection
Type "attributes disk clear readonly" and press Enter.
This command will remove the write protection from your pen drive. You’ll see a message confirming that the attributes were successfully cleared.
Step 6: Exit Diskpart
Type "exit" and press Enter to close Diskpart, then type "exit" again to close Command Prompt.
Exiting Diskpart and Command Prompt ensures that all changes are saved and that you’re back to your regular desktop environment.
After completing these steps, your pen drive should no longer be write-protected. You can now read, write, and delete files on it without any issues.
Tips for Removing Write Protection from Pen Drive in Windows 11
- Double-check before selecting the disk number to avoid data loss.
- Always run Command Prompt as an administrator for this process.
- Consider backing up your data before making changes.
- Some pen drives have physical write protection switches; check for this.
- If the above steps don’t work, try using the Registry Editor to change write protection settings.
Frequently Asked Questions
Why is my pen drive write-protected?
Your pen drive might be write-protected due to a variety of reasons, such as read-only attributes set in the system, physical write protection switch, or malware.
Can I remove write protection using the Registry Editor?
Yes, you can. Open the Registry Editor, navigate to "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlStorageDevicePolicies," and set the WriteProtect value to 0.
Is there any risk in using Diskpart?
There is a risk if you select the wrong disk. Always double-check the disk number to avoid any mistakes.
What if Diskpart commands don’t work?
If Diskpart commands don’t work, you might want to try using the Registry Editor or a third-party tool designed to remove write protection.
Can a virus cause write protection?
Yes, some malware can cause write protection on your pen drive. Running a virus scan might resolve the issue.
Summary
- Insert the Pen Drive
- Open Command Prompt as Administrator
- Use Diskpart to List Disk Drives
- Select Your Pen Drive
- Remove Write Protection
- Exit Diskpart
Conclusion
Removing write protection from a pen drive in Windows 11 doesn’t have to be a hair-pulling experience. By following the simple steps outlined above, you can easily regain full access to your files and get back to work or play. Whether you prefer using Diskpart or diving into the Registry Editor, both methods are effective and relatively straightforward.
Remember, always double-check which drive you’re working on to avoid any mishaps. If you still face issues, it might be worth running a virus scan or checking for any physical write protection switches on your pen drive.
Feel free to explore other tools and methods if you encounter persistent problems. Removing write protection can be a handy skill for any computer user, so it’s well worth learning. Keep your data safe and happy computing!

Kermit Matthews is a freelance writer based in Philadelphia, Pennsylvania with more than a decade of experience writing technology guides. He has a Bachelor’s and Master’s degree in Computer Science and has spent much of his professional career in IT management.
He specializes in writing content about iPhones, Android devices, Microsoft Office, and many other popular applications and devices.