ทุกที่ก็มีคนเตือนอย่าไปแก้ Registry แม้จะเห็นด้วยบ้าง แต่จริงๆ การปรับแต่ง Windows หลายอย่างต้องเกี่ยวกับ Registry ถ้าคุณมือใหม่ ควรอ่าน Windows Registry Basics ก่อน แต่บทความนี้สำหรับผู้ใช้ขั้นสูง ต้องสำรอง Registry เสมอก่อนแก้ไข
เคล็ดลับและฟีเจอร์ของ Windows Registry Editor

หากไม่สะดวกแก้ Registry อย่าทำเลย แต่ถ้าชอบปรับแต่ง Windows ไม่ว่าจะทำเองหรือใช้โปรแกรมฟรี ก็ต้องdealกับ Registry อยู่ดี
เคล็ดลับเหล่านี้ช่วยให้จัดการ Registry ได้ง่ายขึ้น แต่ถ้าไม่แน่ใจ อย่าทำ
เข้าถึงหรือเปิด Windows Registry
ไฟล์ Registry อยู่ที่ system32/config แต่ต้องใช้ Regedit เข้าถึงได้จาก:
- Start > Run > พิมพ์ Regedit Enter
- Task Manager > File > New Task > พิมพ์ Regedit Enter
- Command Prompt พิมพ์ Regedit Enter
เคล็ดลับ: Windows 11/10 ใช้ Address Bar 跳ไปยังคีย์ Registry ได้เลย และเปลี่ยน Font ได้
สร้าง Shortcut บน Desktop เปิด Registry
คลิกขวาที่พื้นที่ว่างบน Desktop > New > Shortcut Location พิมพ์ Regedit ตั้งชื่อ Finish
ไฟล์นามสกุล .reg
ดาวน์โหลดไฟล์ .reg แต่ไม่แน่ใจว่าทำอะไร? คลิกขวา > Edit หรือ Open with Notepad จะเห็นตำแหน่งคีย์ที่จะเปลี่ยน
ตัวอย่างเนื้อหา .reg ใน Notepad:
[HKEY_CURRENT_USER\Software\Microsoft\InternetExplorer\Main\WindowsSearch] "Version"="6.1.7600.16385" "User Favorites Path"="file:///C:\\Users\\Lee\\Favorites\\" "UpgradeTime"=hex:fe,27,f3,41,02,91,cc,01 "ConfiguredScopes"=dword:00000005 "LastCrawl"=hex:3e,26,a3,a1,cd,90,cc,01 "Cleared"=dword:00000001 "Cleared_TIMESTAMP"=hex:23,9d,94,80,24,48,cc,01
หากไม่แน่ใจ คัดลอกตำแหน่งค้นหาออนไลน์
สำรอง Registry ก่อนแก้ไข
- สร้าง System Restore Point ก่อนแก้ไข เพื่อย้อนกลับได้
- สำรองคีย์ Registry: คลิกขวาคีย์ > Export เลือกชื่อ นามสกุล .reg หรือใช้โปรแกรม Regback, ERUNTgui
เปลี่ยน เพิ่ม เปลี่ยนชื่อ คีย์ใน Registry
- เปลี่ยนค่า: ดับเบิลคลิกค่าที่ต้องการ แก้ไข
- เปลี่ยนชื่อ: คลิกขวาคีย์/ค่า > Rename
- เพิ่มคีย์: คลิกขวาคีย์แม่ > New > Key (ค่าเหมือนกัน)
Take Ownership ของ Registry Keys
หากเจอข้อผิดพลาดสิทธิ์ คลิกขวาคีย์ > Permissions มักต้อง Take Ownership ก่อน: ใน Properties > Advanced > Owner ถ้าไม่มีชื่อของคุณ ใส่ username > Check Names > OK แล้วค่อยเปลี่ยนสิทธิ์
เจ้าของคีย์เริ่มต้นสำหรับเลือกใน Other Users or Groups:
- Trusted Installer: NT SERVICE\TrustedInstaller
- System: System
- Administrators: Administrators
- Your Username: Your Username
- Users: Users
เพิ่ม Registry Keys เข้า Favorites
ฟีเจอร์ Favorites ช่วยเข้าถึงคีย์ที่ใช้บ่อยได้เร็ว: เลือกคีย์ > เมนูบนสุด Favorites > Add to Favorites

หรือใช้ Edit > Find พิมพ์ตำแหน่งคีย์เพื่อไปถึงทันที
ใช้ Command Pal จัดการ Registry
คำสั่ง Reg ใน Command Prompt:
- Reg add: เพิ่ม subkey/entry
- Reg compare: เปรียบเทียบ subkey/entry
- Reg copy: คัดลอก subkey
- Reg delete: ลบ subkey/entry
- Reg export: ส่งออกเป็นไฟล์ .reg
- Reg import: นำเข้าไฟล์ .reg
- Reg load: โหลด hive
- Reg query: แสดงข้อมูล subkey/value
- Reg restore: เรียกคืน hive
- Reg save: บันทึก hive แบบ binary
- Reg unload: ปลด hive
ตัวอย่าง: Reg query HKLM\Software แสดง subkey ทั้งหมด
พิมพ์ Reg /? จะแสดงคำสั่งทั้งหมด

มีเครื่องมือบิลท์อินอื่นๆ เช่น Regini สำหรับผู้ใช้ขั้นสูง ไฟล์ Registry จริงอยู่ที่ไหน ดูได้ ที่นี่
อ่านเพิ่ม:
- How to open multiple instances of the Registry in Windows
- How to Compare or Merge Registry files
- How to monitor changes to the Registry
- How to search Windows Registry Keys, Values and Settings
เครื่องมือช่วยจัดการ Registry ให้ง่ายขึ้น:
- RegOwnit ของเรา ตั้งค่า Ownership/Permissions โดยไม่ต้องเปิด Regedit
- SetACL: Command-line tool เปลี่ยน Permissions/Ownership
- Registrar Registry Manager: Free powerful manager
เคล็ดลับ: ดูวิธีแก้ Registry โดยไม่ใช้ regedit.exe แต่ใช้ Reg.exe ใน Windows 11/10