Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Windows

แก้ข้อความ Media is Write Protected ใน Windows 11/10

คัดลอกไฟล์ไป USB/SD Card เจอ Media is Write Protected บทความนี้ช่วยแก้ปัญหา ปัญหาเดียวกันอาจเกิดตอนลบหรือเขียนทับไฟล์บน Media

Write-Protection คืออะไร

Write Protection เป็นฟีเจอร์ใน USB/SD บางตัว ป้องกันไฟล์ถูกลบ/แก้ไขโดยไม่ตั้งใจ ไฟล์ต้นฉบับปลอดภ никтоไม่สามารถลบได้

แก้ Media is Write Protected ใน Windows 11/10

  1. ปิด Hardware Switch
  2. ใช้ Diskpart ลบ Read-only state
  3. ปิด BitLocker
  4. Disable Write Protection ผ่าน Registry
  5. Disable Write Protection ผ่าน Group Policy

ต้องใช้ Admin Account และเข้าใจ Diskpart และ BitLocker

1. ปิด Hardware Switch

อุปกรณ์บางตัวมี Switch/Notch 小さいๆ เปิด Write Protection เมื่อดึงขึ้น มักติดป้ายแต่น่าเลอะ ถ้าเปิดอยู่ ปิดมัน แล้วควรเขียนได้

อ่าน: วิธีถอด Write Protection บน Disk

2. ใช้ Diskpart ลบ Read-only State

ถ้าไม่ใช่ Hardware Lock Disk อาจอยู่ใน Read-only State ใช้ Diskpart ลบ Attribute:

  • Win+R พิมพ์ cmd Shift+Enter เปิด Admin
  • diskpart Enter
  • list disk Enter (ดู Disk ทั้งหมด)
  • select disk x Enter (x = หมายเลข SD Card)
  • attr disk clear readonly Enter

ลองลบไฟล์ดูว่าแก้ได้ไหม

3. ปิด BitLocker

BitLocker เข้ารหัสไฟล์ อาจเปิด BitLocker ไว้บน Media/SD Card แล้วลืม Drive ที่มี BitLocker จะมีไอคอนล็อกใน File Explorer คลิกขวา > Turn off Bitlocker รอถอดรหัส (ขึ้นกับขนาด) แล้วลองแก้ไขไฟล์ BitLocker ไม่ใช่ Tool ถอด Write Protection แต่องถ้าไฟล์ถูกเข้ารหัสด้วย BitLocker ก่อนหน้านี้

4. Disable Write Protection ผ่าน Registry

แก้ Registry เสี่ยง แนะนำ Backup หรือ System Restore ก่อน Win+R Regedit Enter ไปที่:

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies

ดับเบิลคลิก WriteProtect DWORD เปลี่ยน Value จาก "1" เป็น "0"

ถ้าไม่มีโฟลเดอร์ StorageDevicePolicies ให้สร้าง: คลิกขวา Control > New > Key ชื่อ StorageDevicePolicies คลิกขวาโฟลเดอร์ใหม่ > New > DWORD ชื่อ WriteProtect Enter ดับเบิลคลิกตั้ง Value 0

5. Disable Write Protection ผ่าน Group Policy

ใช้ได้ใน Windows 10 Pro/Enterprise และ Home (เปิด Group Policy ก่อน) Win+R gpedit.msc Enter ไปที่:

Computer Configuration > Administrative Templates > System > Removable Storage Access

ตาม Media (USB/CD/Tape) เปลี่ยน Write Access เป็น Disabled ปิด Group Policy Editor ควรแก้ไขไฟล์ได้

นี่คือวิธีแก้ Media is Write Protected ใน Windows 11/10

อ่าน: แก้ The Disk Is Write-Protected error สำหรับ Removable Disks