Microsoft Windows Error Code 0x80070013: How to Fix It
Easy 15-30 minutes Medium Severity
Verified June 2026
- Error Code
- 0x80070013
- Brand
- Microsoft Windows
- Product Type
- hresult
- Severity
- Medium
- DIY Difficulty
- Easy
- Estimated Fix Time
- 15-30 minutes
Ad
Tools You'll Need
- Windows PC with administrator access
How to Fix Error Code 0x80070013
-
Check Physical Write-Protect Switch
-
Use DiskPart to Clear Read-Only Attribute
Back up important data before using DiskPart, as incorrect disk selection can lead to data loss. -
Modify Registry to Disable Write Protection
Be careful when editing the registry; incorrect changes can harm your system. Back up the registry before proceeding. -
Format the Drive (Last Resort)
Formatting erases all data on the drive. Only do this after backing up important files.
Ad
When to Call a Professional
If none of these steps work, the drive may be failing (hardware defect). Backup any accessible data and consider replacing the drive. If you need to recover data from a failing drive, seek professional data recovery services.Frequently Asked Questions
What does error 0x80070013 mean?
It means the disk or drive you're trying to write to is write-protected, preventing any changes to its contents.
How do I remove write protection from a USB drive?
Check for a physical switch first. If none, use DiskPart (step 2) or edit the Registry (step 3) as described.
Will formatting fix error 0x80070013?
Yes, formatting can remove write protection, but it erases all data. Use it as a last resort.
Can a virus cause write protection?
Rarely, malware can set the read-only attribute. Run a full antivirus scan to rule this out.
Is error 0x80070013 a hardware problem?
It can be if the drive's write-protect switch is broken or the drive is failing. Try the software fixes first; if they fail, consider replacing the drive.