The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →The Windows 10 message “The disk is write protected” means the USB can be read but Windows is refusing write operations such as copying, deleting, or formatting. The block can come from a physical lock, the disk’s read-only attribute, a registry setting, an organisation’s removable-storage policy, or failing flash hardware.
Protect important files first. Then check the lock and connections, clear the DiskPart attribute, inspect the StorageDevicePolicies registry value, and check removable-storage policies. Format or replace the drive only after those checks, because formatting and DiskPart cleanup can erase data.
As an Amazon Associate I earn from qualifying purchases.
What “write protected” means in Windows 10
Write protection is a restriction on changing data. A protected USB may open normally and let you copy files from it, while Windows rejects attempts to copy files to it, delete items, rename folders, or format the volume. Microsoft’s error definition describes a disk that cannot be written because it is write-protected.
The restriction can exist at several layers:
- Physical: a lock slider on an SD card, USB card reader, or SD-to-USB adapter is in the locked position.
- Disk attribute: Windows has the selected disk’s read-only flag set.
- Registry setting: the
WriteProtectvalue underStorageDevicePoliciestells Windows to block removable-media writes. - Policy: Local Group Policy, a domain policy, or mobile-device management (MDM) denies write access to removable disks.
- Device failure: a flash controller or memory problem has forced the drive into a persistent read-only state to prevent further damage.
Clearing a Windows setting cannot repair a failed controller. If the same USB stays write-protected on several computers after the software checks, treat it as a likely hardware problem and concentrate on recovering files.
#1 Best Overall
- USB-C 2-in-1 storage OTG: The Lexar JumpDrive Dual Drive D40E features USB Type-A and Type-C connectors in a slim, portable form factor for easy device compatibility
- Transfer speeds up to 100MB/s: Based on internal testing, performance may vary depending upon the host device, interface, and usage conditions. 1MB=1,000,000 bytes
- Plug and Play: Widely compatible with USB Type-C smartphones, tablets, laptops, Macs, and traditional Type-A devices, no software installation required. The 360° swivel design allows for easy switching between connectors without the hassle of losing a cap
- Durable & Compact: The Lexar D40E USB memory stick features a metal enclosure, withstands temperatures from 0° to 50° C (32°F to 122°F), and is lightweight at 26g with dimensions of 70.4 x 16.9 x 11.7mm
- Security & Warranty: Securely protects files using an advanced security software solution with 256-bit AES encryption. Backed by a Lexar 3-year limited warranty
Check the likely cause before changing anything
| Symptom | Most plausible cause | First check |
|---|---|---|
| The USB is protected only through one reader or adapter | Physical lock slider | Move the slider to the unlocked position and reconnect it |
| It works on another computer but not this Windows 10 PC | Local registry or removable-storage policy | Check StorageDevicePolicies and Group Policy |
| DiskPart shows “Read-only: Yes” | Disk-level read-only attribute | Select the correct disk and run attributes disk clear readonly |
| Protection returns immediately after being cleared | Policy enforcement or failing hardware | Check policy settings, then test another computer |
| The USB is read-only everywhere, with errors or unstable capacity | Controller or flash-memory failure | Copy or recover files, then replace the drive |
1. Protect the USB’s data first
Do not begin with a format or the DiskPart clean command if the USB contains anything you need. Both can destroy the file system; clean removes partition information and is not required to clear an ordinary read-only attribute.
- Open the USB in File Explorer while it is still readable.
- Copy irreplaceable files to an internal disk or another external disk. Copy in smaller batches if the drive disconnects or reports errors.
- If Windows cannot read the files, the device repeatedly disappears, or copying produces I/O errors, stop repair attempts and use a reputable data-recovery workflow before reformatting.
- Keep the original USB unchanged until you have verified that the copied files open correctly.
Write protection sometimes appears when flash memory is wearing out. Preserving the readable data is therefore more important than trying every command.
2. Check a physical lock, port, and computer
Unlock the reader or adapter
Many full-size SD cards, microSD adapters, and some USB card readers have a small lock slider. Remove the card, move the slider away from the “Lock” marking, reinsert it, and test a small file. A loose slider can move while the card is inserted, so check that it stays in the unlocked position.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallTry another USB connection
Disconnect the device safely, then try a different USB port. Avoid an unpowered hub during testing; connect directly to the computer when possible. A port change does not remove a software policy, but it can distinguish a connection problem from a device-level restriction.
Test another computer
Use another Windows computer if one is available. If writing works there, the USB itself is probably not locked and the original PC’s settings are the better target. If the same device is read-only on multiple computers, software tied to one Windows installation is less likely to be responsible.
3. Clear the disk-level read-only attribute with DiskPart
DiskPart can inspect and clear the selected disk’s read-only attribute. It requires an elevated Command Prompt, and selecting the wrong disk can affect your system drive, so identify the USB by its capacity before running the clear command.
Rank #2
- High-speed USB 3.0 performance of up to 150MB/s(1) [(1) Write to drive up to 15x faster than standard USB 2.0 drives (4MB/s); varies by drive capacity. Up to 150MB/s read speed. USB 3.0 port required. Based on internal testing; performance may be lower depending on host device, usage conditions, and other factors; 1MB=1,000,000 bytes]
- Transfer a full-length movie in less than 30 seconds(2) [(2) Based on 1.2GB MPEG-4 video transfer with USB 3.0 host device. Results may vary based on host device, file attributes and other factors]
- Transfer to drive up to 15 times faster than standard USB 2.0 drives(1)
- Sleek, durable metal casing
- Easy-to-use password protection for your private files(3) [(3)Password protection uses 128-bit AES encryption and is supported by Windows 7, Windows 8, Windows 10, and Mac OS X v10.9 plus; Software download required for Mac, visit the SanDisk SecureAccess support page]
- Sign in to an account with administrator rights.
- Open Start, type Command Prompt, right-click it, and choose Run as administrator. Approve the User Account Control prompt.
- Enter these commands one at a time:
diskpart
list disk
select disk N
attributes disk
attributes disk clear readonly
exit
Replace N with the number assigned to the USB. In the list disk output, compare the displayed size with the USB’s labeled capacity. Do not guess, and do not select the disk containing Windows.
Confirm the attribute before clearing it
The first attributes disk command reports the selected disk’s status. Microsoft Learn notes that a disk must be selected for this command to succeed. If you selected the wrong disk, type list disk again, select the correct number, and inspect it before proceeding.
Reconnect and test
After attributes disk clear readonly completes, type exit, safely eject the USB, reconnect it, and create a small test file. Also try deleting that test file. If both operations work, the disk attribute was the cause. If DiskPart reports an error, or the read-only status returns, continue with the policy checks instead of repeatedly issuing commands.
The command changes an attribute; it does not repair a failing flash controller, recover a damaged file system, or bypass an organisation’s device-control policy.
4. Check the StorageDevicePolicies registry value
A Windows registry value can enforce write protection for removable storage. Registry mistakes can cause serious system problems, so back up the relevant key before editing it.
Back up the key
- Press
Windows key + R, typeregedit, and press Enter. - Approve the administrator prompt.
- In Registry Editor, navigate to
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlStorageDevicePolicies. - With the key selected, choose File > Export, select a safe location, and save a
.regbackup. Keep it available in case you need to restore the original value.
Change WriteProtect only when it exists
In the right pane, look for a value named WriteProtect. If it exists and is set to 1, double-click it, change Value data to 0, and leave the base set to hexadecimal unless your existing value uses another base. Select OK, close Registry Editor, disconnect the USB, reconnect it, and test a small write.
Rank #3
- What You Get - 2 pack 64GB genuine USB 2.0 flash drives, 12-month warranty and lifetime friendly customer service
- Great for All Ages and Purposes – the thumb drives are suitable for storing digital data for school, business or daily usage. Apply to data storage of music, photos, movies and other files
- Easy to Use - Plug and play USB memory stick, no need to install any software. Support Windows 7 / 8 / 10 / Vista / XP / Unix / 2000 / ME / NT Linux and Mac OS, compatible with USB 2.0 and 1.1 ports
- Convenient Design - 360°metal swivel cap with matt surface and ring designed zip drive can protect USB connector, avoid to leave your fingerprint and easily attach to your key chain to avoid from losing and for easy carrying
- Brand Yourself - Brand the flash drive with your company's name and provide company's overview, policies, etc. to the newly joined employees or your customers
If the value is absent, do not create random entries or alter unrelated registry keys. An absent value does not prove that the USB is healthy; it simply means this particular setting is not enforcing the block. Microsoft Community guidance specifically recommends backing up the registry before modification.
5. Check removable-storage write-deny policies
Windows editions that include Local Group Policy can deny writes to removable disks for all users or for the computer. On a personal PC, inspect the policy; on a work or school PC, an administrator may intentionally enforce it.
Inspect Local Group Policy
- Press
Windows key + R, typegpedit.msc, and press Enter. If Windows reports that it cannot find the file, your edition may not expose Local Group Policy Editor. - Check Computer Configuration > Administrative Templates > System > Removable Storage Access.
- Also inspect User Configuration > Administrative Templates > System > Removable Storage Access, because a user-level rule can apply even when the computer-level setting is clear.
- Open Removable Disks: Deny write access. If it is Enabled, it denies writes to that removable-storage class. Set it to Disabled or Not Configured only when you are authorized to change the policy.
- Close the editor, restart Windows or sign out and back in, reconnect the USB, and test writing.
Microsoft’s policy documentation states that enabling this setting denies write access, while disabling or not configuring it allows write access to the covered removable-storage classes.
Free tools Windows power users keep installed
One-click scans. No signup required.
When a policy comes back
A domain controller or MDM service can reapply a policy after you change it locally. Do not try to bypass an organisational control. Ask your IT administrator whether removable-media writes are intentionally blocked and request an approved method for transferring files.
6. Test whether Windows can write before formatting
Once the attribute, registry, and policy checks are complete, test the least destructive operation first:
- Open the USB in File Explorer.
- Create a small text file in the root or in a test folder.
- Close and reopen the file, then delete it.
- Copy a nonessential file to the USB and remove it again.
If all four operations succeed, the write-protection problem is resolved. If Windows still refuses writes, note the exact message and whether it appears during copying, deletion, or formatting; those details help distinguish a policy block from a failing device.
Rank #4
- GOOD VALUE PACKAGE - 1 Pack 32GB Memory Stick USB 2.0 Flash Drives with great cost performance and high quality.
- BIG CAPACITY - The available capacity: 29.10GB-29.8GB, You can save the data of movies, music, photos, designs, programs, manuals, handouts in a high speed.Good performance in digital data storing, transferring and sharing with families, friends, workmates, clients and machines.
- EASY TO USE & PLUG AND WORK - Support windows 7 / 8 / 10 / Vista / XP / 2000 / ME / NT Linux and Mac OS, Compatible with USB2.0 and below.
- TWISTTURN DESIGN & EASY CARRY - The metal clip rotates 360° round the ABS plastic body which with rubber oil skin feeling finish. The capless design can avoid lossing of cap, and providing efficient protection to the USB port.
- WARRANTY & SUPPORT - SIMMAX logo is laser printed on the USB connector surface, our products are of good quality and we promise that any problem about the product within one year since you buy.
7. Format only after data is safe and writes are restored
Formatting is not a way to unlock a protected drive. Windows normally refuses to format while write protection is active, and a successful format erases the existing file system. Use it only after you have copied or recovered the files and the USB is no longer read-only.
Do these 3 things before closing this tab:
1Fix the driver behind crashes, sound loss and screen glitches2Clear out junk files and repair common Windows errors3Scan for outdated or missing drivers - takes under a minuteFile Explorer format
- In File Explorer, right-click the USB volume and choose Format.
- Choose the file-system and allocation settings required by the devices that will use the USB.
- Leave Quick Format selected for a normal reinitialization, or clear it only when you have a specific reason to perform a more extensive scan.
- Confirm that the correct drive letter and capacity are shown, then start the format.
Disk Management
Press Windows key + X and choose Disk Management. Identify the USB by capacity, right-click its volume, and choose Format. Do not delete partitions or initialize another disk by mistake. If Disk Management also reports write protection, return to the policy and hardware checks rather than forcing destructive operations.
Why not use DiskPart clean first?
clean removes partition information and can make the data harder to recover. It is not part of the normal read-only-attribute fix. Reserve it for a deliberate reinitialization after backups, and only when you have positively identified the USB.
8. Troubleshoot by the result you see
DiskPart says the media is write-protected
Verify the disk number and capacity, run attributes disk, and then run attributes disk clear readonly. If the attribute remains set, proceed to the registry and policy checks. Do not repeat the command indefinitely.
The attribute clears, but writing is still denied
A registry value, Local Group Policy rule, domain policy, or MDM configuration may still be blocking writes. Check both Computer Configuration and User Configuration paths. On a managed computer, contact IT instead of changing controls without approval.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
The USB works on another PC
The device is capable of writing, so focus on the original Windows 10 computer’s registry and removable-storage policy. Compare whether the same user account or only one account experiences the block; that can indicate a user-level policy.
Best Value
- 【16GB Flash Drive】USB flash drives with 16GB capacity, meet your needs of daily use on work, school, home and travelling for photos, music, videos, files storage and transfer. IMEASON thumb drives can be used to store different files, easy to data backup.
- 【Metal Swivel Cap Design】USB thumb drive is metal swivel cover provides extra protection for the usb thumbdrive connector, no usb drive cap to lose; keychain design makes it easier to carry without worrying lose it.
- 【Wide Compatibility】USB drive supports Windows 7/8/10/11 / Vista / XP / Unix / 2000 / ME / NT Linux and Mac OS, also Supports USB 2.0 and 1.1 ports. USB Stick support TV, desktop, notebook computer, car, audio and other device. The USB Memory Stick is your great data storage and transfer companion with traveling and working.
- 【Easy to use】usb memory stick is plug and play without any software installation. Just simply plug the Flashdrive into the port of your USB-compatible devices such as computer, laptop to start data storage or transmission.
- 【What You Get】16 GB USB Flash Drive Thumb Drive, The default format of the usb storage flash drive is FAT32.
The USB is protected on every computer
After confirming that no physical lock is engaged and that important files are safe, persistent protection points toward controller or flash-memory failure. The device may have switched to a permanent read-only mode to prevent further corruption. Windows settings cannot guarantee a hardware-level repair.
The drive shows the wrong capacity or disappears
Unstable capacity, repeated disconnects, or a volume that vanishes during copying are warning signs of a failing device or connection. Stop formatting and intensive write attempts. Copy whatever remains readable or use a professional recovery service before replacement.
Windows cannot see the USB at all
Try a different port and computer and check whether the reader or adapter is locked. If the device is absent everywhere, write-protection commands cannot reach it; the failure is likely connection, adapter, or hardware related.
Recommended Free Tools
Which fix to try first?
| Approach | Data-loss risk | Administrator privileges | Targets | Reversible? | Helps hardware failure? |
|---|---|---|---|---|---|
| Unlock slider, change port, test another PC | None when you only reconnect and test | No | Physical lock or connection; comparison across computers | Yes | May reveal it, but does not repair it |
DiskPart attributes disk clear readonly |
Low when the correct disk is selected; the clear command itself is not a format | Yes | Disk-level read-only attribute | Yes; the attribute can be set again | No |
Registry WriteProtect set to 0 |
Low if the key is backed up and only the documented value is changed | Yes | Windows removable-storage registry policy | Yes, by restoring the backup or changing the value | No |
| Group Policy change | None to the files, but it changes the computer’s security policy | Usually yes | Computer- or user-level removable-disk write denial | Yes, if you are authorized to restore the prior setting | No |
| Format | High; erases the volume’s file-system contents | Usually yes | File-system corruption after protection is cleared | No without a backup or recovery process | No |
DiskPart clean |
Very high; removes partition information | Yes | Deliberate disk reinitialization, not ordinary write protection | Not reliably without recovery tools | No |
When to recover files and replace the USB
Stop troubleshooting and prioritize recovery when the drive is read-only on multiple computers, the capacity is unstable, files produce read errors, or the protection returns immediately after a successful attribute clear. There is no Microsoft-supported command that promises to repair a failed flash controller.
After recovering valuable data, replace a persistently protected USB flash drive rather than trusting it with new files. A replacement is also safer when the device repeatedly disconnects or reports a capacity that does not match its label. Keep the failed drive until you have confirmed that every needed file has been recovered.
If the USB belongs to an employer or school, document the exact Windows message and the computer on which it appears, then provide those details to IT. An administrator can confirm whether the restriction is intentional and can supply an approved transfer method.
Quick Recap
Optional shortcut
If the manual checks point to a related USB-device driver problem, Outbyte Driver Updater can scan more than 100 devices, identify outdated, corrupted, or missing drivers, install official drivers, show current and recommended versions, and offer driver backup, restore, and scheduled scans. It runs on Windows 11, 10, 8, and 7; the 2-day free trial requires no credit card and is followed by a subscription. Results vary, and no utility repairs every hardware failure.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

