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

Cannot import Registry File: Not all data written to Registry

ตอน Restore Registry Backup (.reg) เจอ Error: "Cannot import reg file: Not all data has been successfully written to the registry. Some keys are open by the system or other processes, or you do not have insufficient privileges to perform this operation."

สาเหตุและวิธีแก้

Error นี้ปกติเพราะ สิทธิ์ (Permissions) บน Registry Keys บางตัว (System Critical Keys) ไม่ให้เขียนได้ แม้จะเป็น Admin ก็ตาม

  1. Login ด้วย Administrator จริง (Built-in Admin) ลอง Import ใหม่
  2. Boot เข้า Safe Mode แล้ว Import (โหลด Driver/Service น้อยลง Key น้อยกว่าถูกล็อก)
  3. Take Full Control ของ Registry Keys:
    • เปิด Regedit > คลิกขวา Key ที่ต้องการ > Permissions
    • Advanced > Owner tab > เปลี่ยน Owner เป็น User/Admin ของคุณ
    • กลับมา Permissions ให้ Full Control Allow
    • ซับซ้อน อาจไม่เหมาะกับมือใหม่
  4. ใช้ RegOwnIt (Freeware) - เครื่องมือของเรา ใช้ Take Ownership Registry Keys ได้ง่าย เลือก Hive (HKCR, HKCU, HKLM, HKU) > เลือก User > Full Control
  5. ใช้ Registrar Registry Manager - โปรแกรมจัดการ Registry ระดับ Advance Import ได้แม้ Key ที่ล็อกอยู่

เคล็ดลับ: Backup Registry และสร้าง Restore Point ก่อนทำทุกครั้ง