หากเห็นข้อความ Windows Update components must be repaired, One or more windows update components are configured incorrectly ใน Windows 11/10 นี่คือวิธีแก้ไขที่ช่วยได้

Windows Update components must be repaired
ลองทำตามขั้นตอนเหล่านี้:
- รัน Windows Update Troubleshooter ในสถานะ Clean Boot
- รัน System File Checker (SFC)
- รัน DISM เพื่อซ่อมไฟล์ Windows Update ที่เสียหาย
- Reset Windows Update components ให้เป็นค่าเริ่มต้น
1] รัน Windows Update Troubleshooter
ทำ Clean Boot ก่อน แล้วค่อยรัน Windows Update Troubleshooter ดูว่าแก้ปัญหาได้ไหม
2] รัน System File Checker
เปิด Command Prompt แบบ Admin (ค้นหา cmd คลิกขวา Run as administrator) พิมพ์คำสั่ง:
sfc /scannow

การสแกนจะแทนที่ไฟล์ระบบที่เสียหาย หลังเสร็จ รีสตาร์ทคอมพิวเตอร์
3] รัน DISM ซ่อมไฟล์ Windows Update ที่เสียหาย
Dism.exe ใช้ได้หลายกรณี รวมถึงซ่อมไฟล์ Windows Update ที่เสียหาย หมายเหตุ: หากต้องการซ่อมไฟล์ระบบ Windows Update ให้ใช้คำสั่งเฉพาะ ไม่ใช่ /RestoreHealth ปกติ DISM จะแทนที่ไฟล์ระบบที่เสียหาย/หายไป ด้วยไฟล์ที่ดี แต่หาก Windows Update client ชำรุดแล้ว จะแจ้งให้ใช้ Running Windows installation หรือ Windows side-by-side folder จาก network share เป็นแหล่งซ่อม
ในกรณีนี้ ให้รันคำสั่งนี้แทน:
DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\Windows /LimitAccess

แทนที่ C:\RepairSource\Windows ด้วยตำแหน่งแหล่งซ่อมจริง
หลังเสร็จ DISM จะสร้าง log ไฟล์ที่ %windir%/Logs/CBS/CBS.log บันทึกปัญหาที่พบ/แก้ไข
3] Reset Windows Update components ให้เป็นค่าเริ่มต้น
ลิงก์ด้านล่างช่วย Reset Windows Update components:
- Reset Windows Update settings/components ด้วยตนเอง
- Reset Windows Update Agent
- Reset Windows Update Client ด้วย PowerShell Script
- Reset SoftwareDistribution folder
- Reset Catroot2 folder
หวังว่าจะมีวิธีไหนช่วยได้!
อ่านเพิ่มเติม: Potential Windows Update Database error detected
