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

Windows Update ติดตั้งไม่ได้ หรือดาวน์โหลดไม่ได้ใน Windows 11/10

บางครั้ง Windows Update บางรายการดาวน์โหลดไม่ได้ หรือปฏิเสธการติดตั้งแม้ลองหลายครั้ง หากคุณเจอปัญหา Windows Updates ติดตั้งไม่ได้ หรือดาวน์โหลดไม่ได้ บทช่วยสอนนี้จะช่วยระบุและแก้ไขปัญหา

Windows Update ติดตั้งไม่ได้ หรือดาวน์โหลดไม่ได้ใน Windows 11/10

Windows Update failed to install

หาก Windows Update ติดตั้งไม่ได้ ทำงานไม่ได้ updates ดาวน์โหลดไม่ได้ หรือล้มเหลวซ้ำๆ บน Windows 10/8/7 ข้อเสนอแนะเหล่านี้จะช่วย troubleshoot & fix Windows Updates

  1. ลองอีกครั้ง
  2. ลบ Temporary Files และ Browser Cache
  3. ปิด Firewall และ Anti-virus software
  4. รัน SFC และ DISM
  5. รัน Windows Update Troubleshooter
  6. Reset Windows Update Components เป็นค่าเริ่มต้นด้วยตนเอง
  7. ใช้ FixWU
  8. Flush SoftwareDistribution Folder
  9. Reset Catroot folder
  10. ตรวจสอบสถานะ Windows Update Services
  11. ตรวจสอบ Windows Update log file
  12. Clear pending.xml file
  13. Clear BITS queue
  14. ลบ Registry values ที่ผิด
  15. รัน Windows Module Installer
  16. รัน Background Intelligent Transfer Service Troubleshooter
  17. ดาวน์โหลด stand-alone installer
  18. ใช้ authenticated Proxy Servers
  19. รัน Windows Update ใน Clean Boot State
  20. ขอความช่วยเหลือ Microsoft Virtual Agent
  21. ติดต่อ Microsoft Support

ลองดูวิธีแก้ไขทั้งหมดอย่างละเอียด สร้าง System Restore Point ก่อน อ่านทั้งโพสต์ แล้วดูว่าอันไหนเกี่ยวข้องกับระบบของคุณ ลองทำในลำดับไหนก็ได้

Fix Windows Update Errors

1] ลองอีกครั้ง

หลายครั้ง update ติดตั้งไม่ได้ครั้งแรก แต่ไม่ทราบสาเหตุ สำเร็จในครั้งที่ 2 หรือ 3 ลอง 2-3 ครั้ง

2] ลบ Temporary Files และ Browser Cache

หากติดตั้ง Windows Updates ไม่ได้ ให้ล้าง Temporary Files และ Browser Cache ก่อน รีบูต และลองใหม่ ดูว่าช่วยได้ไหม ใช้ Disk Cleanup utility หรือ CCleaner ง่ายที่สุด

3] ปิด Firewall และ Anti-virus software

Windows Update ติดตั้งไม่ได้ หรือดาวน์โหลดไม่ได้ใน Windows 11/10

ปิด Firewall และ Anti-virus ชั่วคราว ลองใหม่ นี่คือรายการไฟล์และโฟลเดอร์ Windows ที่อาจ exclude จากการสแกนแอนติไวรัส

4] รัน SFC และ DISM

รัน System File Checker เพื่อแทนที่ไฟล์ระบบที่อาจเสียหาย

ยังสามารถซ่อมไฟล์ระบบ Windows Update ที่เสียหายด้วย DISM Tool Dism.exe ใช้ได้ในหลายสถานการณ์ หนึ่งในนั้นคือซ่อมไฟล์ Windows Update ที่เสียหาย โปรดทราบว่าต้องรันคำสั่งต่างออกไป หากต้องการซ่อม Windows Update System Files ที่เสียหาย หากรันคำสั่ง /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

Windows Update ติดตั้งไม่ได้ หรือดาวน์โหลดไม่ได้ใน Windows 11/10

แทนที่ placeholder C:\RepairSource\Windows ด้วยตำแหน่งแหล่งซ่อมแซมของคุณ

เมื่อเสร็จ DISM จะสร้าง log file ที่ %windir%/Logs/CBS/CBS.log บันทึกปัญหาที่พบหรือแก้ไข

สิ่งเหล่านี้ช่วยแก้ปัญหาที่อาจป้องกัน Windows Updates ติดตั้ง

5] รัน Windows Update Troubleshooter

ใช้ Windows Update Troubleshooter จาก Microsoft รีเซ็ต Windows Updates settings เป็นค่าเริ่มต้น อาจรัน Online Windows Troubleshooter จาก Microsoft ได้ด้วย

6] Reset Windows Update Components เป็นค่าเริ่มต้นด้วยตนเอง

ใช้ Reset Windows Update Agent Tool (Microsoft tool) หรือ Reset Windows Update Tool (From 3rd-party) ดูว่าช่วยได้ไหม PowerShell script นี้ช่วย Reset Windows Update Client ดูโพสต์นี้หากต้องการ reset แต่ละ Windows Update component ด้วยตนเอง

7] ใช้ FixWU

ใช้ Fix WU tool ของเรา ดูว่าช่วยได้ไหม มัน re-register dll, ocx, ax files ทั้งหมดที่จำเป็นสำหรับการทำงานของ Windows Updates

8] Flush Software Distribution Folder

Windows Update ติดตั้งไม่ได้ หรือดาวน์โหลดไม่ได้ใน Windows 11/10

Flush SoftwareDistribution Folder รัน Command Prompt as administrator ใน CMD box พิมพ์ข้อความต่อไปนี้ทีละบรรทัด กด Enter:

net stop wuauserv
net stop bits

ไปที่ C:\Windows\SoftwareDistribution ลบไฟล์และโฟลเดอร์ทั้งหมดภายใน

หากไฟล์กำลังใช้อยู่ รีสตาร์ทอุปกรณ์ หลัง reboot รันคำสั่งข้างบนอีกครั้ง Windows Store App ต้องปิด อย่าเปิดมัน

ตอนนี้จะลบไฟล์จาก Software Distribution folder ได้ ตอนนี้ใน Command Prompt พิมพ์คำสั่งต่อไปนี้ทีละคำสั่ง กด Enter:

net start wuauserv
net start bits

Reboot หากใช้ Windows Update ลองใช้ Microsoft Updates หรือ vice versa

9] Reset Catroot folder

Windows Update ติดตั้งไม่ได้ หรือดาวน์โหลดไม่ได้ใน Windows 11/10

Reset Catroot folder ดูว่าช่วยได้ไหม ในการ reset catroot2 folder ทำนี้:

เปิด elevated Command Prompt พิมพ์คำสั่งต่อไปนี้ทีละคำสั่ง กด Enter:

net stop cryptsvc
md %systemroot%\system32\catroot2.old
xcopy %systemroot%\system32\catroot2 %systemroot%\system32\catroot2.old /s

ลบเนื้อหาทั้งหมดใน catroot2 folder

ทำเสร็จแล้ว ใน CMD พิมพ์ต่อไปนี้และกด Enter:

net start cryptsvc

Catroot folder จะถูก reset เมื่อเริ่ม Windows Update ใหม่

อ่าน: Windows Updates อาจล้มเหลวหาก Fast Startup เปิดอยู่

10] ตรวจสอบสถานะ Windows Update Services

เปิด Windows Services Manager ตรวจสอบ Windows Update related Services เช่น Windows Update, Windows Update Medic, Update Orchestrator Services ไม่ได้ถูก disable

Default configuration บน standalone Windows 11/10 PC:

  • Windows Update Service – Manual (Triggered)
  • Windows Update Medic Services – Manual
  • Cryptographic Services – Automatic
  • Background Intelligent Transfer Service – Manual
  • DCOM Server Process Launcher – Automatic
  • RPC Endpoint Mapper – Automatic
  • Windows Installer – Manual

สิ่งนี้จะทำให้ Services ที่จำเป็นพร้อมใช้งาน

นอกจาก service โดยตรง ควรหา dependencies ของ Windows Update service และตรวจสอบว่าทำงานอยู่หรือไม่

เริ่มต้นด้วยการค้นหา "services" ในกล่องค้นหา Taskbar คลิกผลลัพธ์ หลังเปิด Services หา Windows Update, DCOM Server Process Launcher, RPC Endpoint Mapper ดูว่ารันอยู่ไหม

Windows Update ติดตั้งไม่ได้ หรือดาวน์โหลดไม่ได้ใน Windows 11/10

ถ้าไม่ได้ ให้เริ่ม services นั้นๆ ทีละตัว

11] ตรวจสอบ Windows Update log file

หายังมีปัญหา ไปที่ C:\Windows\WindowsUpdate.log หา entry ล่าสุด จะอยู่ท้าย log ไฟล์ที่ล้มเหลวจะมี error code ถัดไป จดไว้ หาก entry เยอะเกินไป ลบ WindowsUpdate.log นี้ และลองติดตั้ง updates ที่มีปัญหาใหม่

เปิด WindowsUpdate log file ใหม่ที่สร้างขึ้น ดูเนื้อหา

Windows Update ติดตั้งไม่ได้ หรือดาวน์โหลดไม่ได้ใน Windows 11/10

Warning อาจเป็น -: WARNING: Failed to find updates with error code AAAAAAAA.

คลิกขวา Computer > Manage > Event Viewer > Applications and Service Logs > Microsoft > Windows > WindowsUpdateClient > Operational ดู Critical Message หรือ Warning

Windows Update ติดตั้งไม่ได้ หรือดาวน์โหลดไม่ได้ใน Windows 11/10

อ้างอิง Windows Update Error Codes จะบอกทิศทางที่ต้องหาแก้ ไม่เช่นนั้น ค้นหา Windows Update error code ที่นี่ ดูว่ามีวิธีแก้เฉพาะเจาะจงไหม

12] Clear pending.xml file

เปิด elevated command prompt พิมพ์ต่อไปนี้และกด Enter:

Ren c:\windows\winsxs\pending.xml pending.old

จะ rename pending.xml เป็น pending.old ลองใหม่

13] Clear BITS queue

Clear BITS queue ของงานปัจจุบัน พิมพ์ใน elevated CMD และกด Enter:

bitsadmin.exe /reset /allusers

14] ลบ Registry values ที่ผิด

เปิด Registry Editor ไปที่คีย์:

HKEY_LOCAL_MACHINE\COMPONENTS

คลิกขวา COMPONENTS ใน right-pane ลบต่อไปนี้หากมี:

  • PendingXmlIdentifier
  • NextQueueEntryIndex
  • AdvancedInstallersNeedResolving

รีสตาร์ทคอมพิวเตอร์ และลองใหม่

15] รัน Windows Module Installer

Windows Module Installer เป็น built-in Windows 10 service ให้คุณซ่อม Windows updates ที่ติดขัด

เปิด command prompt ด้วย admin privileges

พิมพ์ต่อไปนี้และกด Enter:

SC config trustedinstaller start=auto

เมื่อรันสำเร็จ ควรเห็น [SC] ChangeServiceConfig SUCCESS ใน Command Prompt console

Windows Update ติดตั้งไม่ได้ หรือดาวน์โหลดไม่ได้ใน Windows 11/10

Exit command prompt ตรวจสอบว่าปุ่มกลับมาปกติไหม

16] รัน Background Intelligent Transfer Service Troubleshooter

รัน Background Intelligent Transfer Service Troubleshooter ดูว่าช่วยได้ไหม BITS ช่วย transfer, download, upload ไฟล์ระหว่าง client และ server ให้ข้อมูลความคืบหน้า มีบทบาทในการดาวน์โหลดจาก peer Windows Service นี้จำเป็นสำหรับ Windows Updates

17] ดาวน์โหลด stand-alone installer

ค้นหาบน Microsoft Update Catalog website ด้วย Update KB number ดาวน์โหลด stand-alone installer นำ patch ไปติดตั้งด้วยตนเอง ค้นหาแค่ตัวเลข อย่าใส่ KB

18] ใช้ authenticated Proxy Servers

สามารถใช้ authenticated Proxy Servers แก้ Windows Update และ Microsoft Store app Installation errors

19] รัน Windows Update ใน Clean Boot State

Boot เข้า Clean Boot State รัน Windows Update ดูว่าช่วยได้ไหม ทำงานได้ในส่วนใหญ่

อ่าน: Windows Update ปิดตัวเองอัตโนมัติ

20] ขอความช่วยเหลือ Microsoft Virtual Agent

Windows Update ติดตั้งไม่ได้ หรือดาวน์โหลดไม่ได้ใน Windows 11/10

หากเจอ error ดาวน์โหลดหรือติดตั้ง Windows Updates สามารถขอช่วย Microsoft Virtual Agent ได้

21] ติดต่อ Microsoft Support

ถ้าอะไรไม่ช่วย ติดต่อ Microsoft Support ได้เลย พวกเขาจะช่วยแน่นอน

โพสต์ที่ช่วยแก้ปัญหา Windows Update ที่เกี่ยวข้อง:

  • Windows Update is not working
  • Windows Update is stuck downloading updates.
  • Failure configuring Windows updates. Reverting changes.
  • Potential Windows Update Database error detected
  • Troubleshoot problems with installing Windows Updates in Windows – FAQ
  • Windows 10 keeps installing the same update
  • Cannot Update Windows using Windows Update
  • Your device is at risk because it's out of date & missing important security & quality updates
  • Some Updates were canceled message
  • Service Registration is Missing or Corrupt.

หวังว่าบางอย่างที่นี่ช่วยแก้ปัญหา Windows Updates ของคุณได้

Windows Update ติดตั้งไม่ได้ หรือดาวน์โหลดไม่ได้ใน Windows 11/10