Medium Operating Systems ✓ Solution Verified by Community (0+ upvotes)

Error Code error-write-protect — Windows 11

ERROR_WRITE_PROTECT = 19

65% úspěšnost
👥 0+ uživatelů ověřilo
📅 Aktualizováno: 2026-08-12
⏱️ 15 min čtení
Oprava založena na komunitních zprávách a expertní analýze. Naposledy ověřeno: 2026-08-12 · Jak ověřujeme opravy
Error Codeerror-write-protect
Affected SystemWindows 11 (Microsoft)
DifficultyMedium
Estimated Time15 min
Requires Admin Rights⚠️ Yes

Postup řešení

  1. 1 If you're using a USB drive or SD card, check for a physical write-protect switch on the side. Slide it to the unlocked position. This is the most common cause and the easiest fix.
  2. 2 If the error is on a file, right-click the file and select 'Properties'. In the 'General' tab, uncheck the 'Read-only' attribute and click 'Apply' and 'OK'. This removes the write protection from the file.
  3. 3 If the file is still read-only, open Command Prompt as administrator (Win+R, type 'cmd', press Ctrl+Shift+Enter). Type 'attrib -r "C:\path\to\file.txt"' and press Enter. This clears the read-only attribute using the command line.
  4. 4 If the error occurs on a drive, open Disk Management by pressing Win+X and selecting 'Disk Management'. Right-click the drive and select 'Properties'. Go to the 'Hardware' tab, select the disk, click 'Properties', then 'Change settings'. Under 'Policies', ensure 'Enable write caching' is checked. This can resolve write protection issues.
  5. 5 If the drive is still write-protected, use Diskpart. In Command Prompt, type 'diskpart' and press Enter. Then type 'list disk' to see all disks. Identify your disk number (e.g., Disk 1). Type 'select disk 1' and press Enter. Then type 'attributes disk clear readonly' and press Enter. This clears the read-only attribute on the entire disk.
  6. 6 If the error persists, the drive may be failing. Try a different USB port or computer. If it's an SD card, try a different adapter. If the drive is corrupted, you may need to format it (but back up data first).

🔍 Didn't work? Enter your GPU and CPU for hardware-specific advice:

🔧 Stále máte problémy?

Popište svůj přesný problém Error Buddymu a získejte personalizovanou opravu během několika sekund.

🛠️ Vyzkoušet Error Buddy — Zdarma