Troubleshooting

USB Drive Still Read Only in Windows 11? How to Find the Cause and Fix It

A USB drive that refuses new files in Windows 11 is not always broken. The lock can come from a switch, a setting on the PC, a DiskPart attribute or the drive itself, and each has a different fix.

Editorial TeamNovember 2026Last verified: November 2026
Quick answer

Test the drive on a second PC. If it is writable there, remove the Group Policy setting or the WriteProtect registry value on the first PC and reconnect the drive. If it is read only everywhere, check for a lock tab, clear the DiskPart attribute, then suspect a failing drive.

At a glance

Applies to
Windows 11, versions 21H2 to 25H2
Time needed
10 minutes
Difficulty
Moderate
Cost
Free
Last verified
November 2026
Diagnosing a USB drive that stays read onlyPhysical lock switchDiskPart read-only statePolicy or registry value

The Lock-Source Test: Find Who Is Locking the Drive

A USB drive stays read only for one of four reasons: a physical lock, a Windows policy or registry value, a DiskPart attribute, or a fault in the drive. The Lock-Source Test checks them in that order, because the early checks take seconds and cost nothing.

Windows 11 reports a locked drive with the message that the disk is write protected, and the wording is identical for every cause, so the message alone tells you nothing. Work through the four checks below and stop at the first one that changes the result.

Which side of the fault is the read-only state onDrive refuses new filesWorks on another PC?YesNoThis PC has apolicy or value setCheck policy, registryThe drive itselfis protecting writesSwitch, wear, errorsOne cross-PC test separates a Windows setting from a drive fault.
Testing the drive on a second PC splits a PC-side cause from a drive-side cause.
The Lock-Source Test in four checks
CheckWhat to doIf it explains the lock
1. SwitchLook for a slider on the drive, card or adapterSlide it to the writable position
2. Second PCPlug the drive into a different computerWritable there: the cause is on your first PC
3. Policy and registryLook for a deny-write policy or the WriteProtect valueSet it back or delete the value
4. DiskPart attributeRun detail disk and read the read-only linesClear the attribute

Check the Physical Lock and the Second PC First

Start with the hardware: SD cards, many card adapters and a few older flash drives have a slider that makes the device refuse writes on any computer. Then test the drive on a second PC, which tells you whether the cause lives in the drive or in your Windows settings.

Physical write-protect tab on an SD cardSlide tabLock tab downWrites refused by the card itselfLock tab upWindows settings decideMost USB flash drives have no such tab.
A sliding tab on an SD card sets the lock, and it works on every computer.

If the drive is writable on the second PC, stop looking at the drive and look at the first PC. If it is read only on both, the cause is on the drive or its file system, so go to the drive-fault section.

Quick win

Check the adapter as well as the card. A card reader with its own slider can hold a card that looks writable.

Policy and Registry Causes on the PC

A deny-write Group Policy setting or a WriteProtect registry value set to 1 makes every removable drive on that PC read only. A person, a work profile or a past tutorial may have set it, so check both places before touching the drive.

Why is my USB drive read only after I followed a guide?

A drive stays read only after a tutorial because the setting the tutorial added is still active on the PC, and Windows 11 never reminds you it exists. Remove the setting you added, reconnect the drive, and the write block clears unless another source is also holding it.

Guides that teach write protection leave the setting in place, and nothing in Windows 11 reminds you later. The registry value is read when a drive connects, so removing it needs a reconnect.

  1. Check Group Policy

    On Pro, Enterprise or Education, open gpedit.msc and go to Computer Configuration > Administrative Templates > System > Removable Storage Access. Set Removable Disks: Deny write access to Not Configured.

  2. Check the registry

    Under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies, delete the WriteProtect value, or import the undo file below.

  3. Reconnect

    Unplug and replug the drive, or restart the PC.

Undo: remove-write-protect.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies]
"WriteProtect"=-
If this is a work or school PC

An organization may apply the policy through a domain or Intune. In that case the setting returns after each restart, and the change belongs to your administrator.

DiskPart Attribute Causes and the Mismatch Clue

DiskPart can set a read-only attribute on a disk or on a single volume, and Windows keeps it until you clear it. The telltale sign is a mismatch: Current Read-only State shows Yes while the Read-only line shows No, which points to policy, a switch or the drive.

Run detail disk and compare the two read-only lines it prints: when they disagree, the lock comes from somewhere other than the attribute.

Clear the attribute
REM Run inside a Command Prompt opened as administrator
diskpart
list disk
select disk 2
detail disk
attributes disk clear readonly
list volume
select volume 5
attributes volume clear readonly
exit
Common mistake

Match the disk by size and confirm Boot Disk reads No before you change an attribute. Microsoft community answers also note that DiskPart cannot override a Group Policy restriction, so a policy must be cleared first.

When the Drive Itself Is the Problem

If the drive is read only on every PC, the cause is the drive or its file system. Copy what you can to another disk, scan the drive for errors, and replace it if it keeps locking, because a drive that refuses writes may be failing.

A written overview of USB protection and write-protection fixes lists the same short set of remedies: the lock switch, DiskPart, the registry and formatting. Format only after you have copied your files, because formatting erases the drive.

Try first

  • Copy the files to another disk.
  • Run a file system check from Properties > Tools.
  • Test a different USB port.

Do not do this

  • Format before copying files.
  • Keep using a drive that locks again after clearing.
  • Edit disks you cannot name by size.

Keep Your Own Drives From Locking Again

Most repeat lock-ups come from settings you applied yourself, so keep a written note of every change and one clean undo step. If you want protection that follows a drive between PCs, password tools such as USB Secure work on the drive instead of the PC.

The built-in settings in our step-by-step guide apply to one PC only. For files you carry between computers, USB Secure password-protects files on the drive, which is a different job from blocking writes. For files you want protected from deletion on the PC, Folder Protect covers that. Compare the two approaches on the page about read-only settings and hardware write blockers.

Frequently asked questions

These six questions cover the most common reasons a USB drive stays read only on Windows 11 and the quickest way to clear each one. Answers assume you own both the drive and the PC, and each one names the check to run first.

Why does Windows 11 say the disk is write protected?

The message appears for any write refusal: a physical lock tab, a Group Policy setting, a WriteProtect registry value, a DiskPart attribute or a failing drive. The wording is the same each time, so run the second-PC test and the DiskPart check to learn which cause applies to your drive.

How do I remove write protection from a USB drive in Windows 11?

Reverse whichever source applies. Slide the lock tab, set the Group Policy to Not Configured, delete the WriteProtect value, or run attributes disk clear readonly in DiskPart on the correct disk. Then reconnect the drive so Windows reads the change, and try copying a small test file.

Why is my USB drive still read only after I deleted the registry value?

Windows reads the value when a drive attaches, so a drive that stayed plugged in keeps its old state. Unplug it and plug it back in, or restart the PC. If it still refuses writes, check Group Policy and the DiskPart attribute, since either can lock the drive independently.

Can a failing USB drive become read only by itself?

Some drives reportedly switch to read only when their controller detects errors, as a way of protecting the data they still hold. If a drive is read only on several PCs and no tab, policy or attribute explains it, copy your files off at once and replace the drive.

Is it safe to format a read-only USB drive?

Formatting erases everything on the drive, so copy your files first. A format also may not clear a lock that comes from policy or a hardware tab, because those sit outside the file system. Clear the cause first, and format only if you still want a fresh drive.

What if DiskPart says the disk is read only but the attribute is off?

That mismatch means the lock is not coming from the DiskPart attribute. Look for a physical tab, a Group Policy or registry rule, or a drive that has locked itself. Testing the drive on a second PC quickly separates the PC-side causes from the drive-side ones.

Keep reading

The main guide covers the three built-in ways to make a USB drive read only, how to confirm that each one worked, how to undo it safely, and when approved-drive software adds something the built-in settings cannot provide on their own.

Back to the step-by-step guide →