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

แก้ไขข้อผิดพลาด "We could not complete the installation because an update service was shutting down" ใน Windows Update

หากคุณพบข้อความข้อผิดพลาด Windows Update We could not complete the installation because an update service was shutting down เมื่ออัปเกรดคอมพิวเตอร์ Windows 10 เป็นเวอร์ชันใหม่กว่า บทความนี้จะช่วยคุณ

The installation could not be completed because the update service stopped. We were unable to complete the installation because the update was stopped.

แก้ไขข้อผิดพลาด  We could not complete the installation because an update service was shutting down  ใน Windows Update

We could not complete the installation because an update service was shutting down

หากเจอปัญหานี้ ลองวิธีแก้ไขที่แนะนำด้านล่างในลำดับใดก็ได้ ดูว่าช่วยแก้ไขได้หรือไม่

  1. รัน Windows Update Troubleshooter
  2. รีเซ็ต Windows Update Components แบบ Manual
  3. ตรวจสอบสถานะบริการที่เกี่ยวข้องกับ Windows Update
  4. รัน DISM เพื่อซ่อมแซมส่วนประกอบ Windows Update
  5. ดาวน์โหลด Windows 10 ISO โดยตรง หรือใช้ MCT (Media Creation Tool)

ลองดูรายละเอียดกระบวนการแต่ละวิธี

1) รัน Windows Update Troubleshooter

เมื่อเจอข้อผิดพลาด Windows Update สิ่งแรกคือรัน Windows Update Troubleshooter ในตัว ดูว่าช่วยแก้ไขได้หรือไม่

2) รีเซ็ต Windows Update Components แบบ Manual

บางครั้งอาจเจอปัญหานี้จากการมีการเสียหายของไฟล์ระบบ หากยังเจอปัญหาหลังติดตั้ง Windows Updates แบบ Manual ให้รีเซ็ต Windows Components โดยทำตามคำแนะนำด้านล่าง:

เริ่มต้นด้วยการเปิด Command Prompt แบบผู้ดูแลระบบ (elevated)

พิมพ์คำสั่งต่อไปนี้และกด Enter หลังแต่ละคำสั่ง เพื่อหยุดบริการ Windows Update และบริการที่เกี่ยวข้อง:

net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc

ลบไฟล์ qmgr*.dat ทั้งหมดจากอุปกรณ์ พิมพ์โค้ดด้านล่างใน Command Prompt แล้วกด Enter:

Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat"

ระบบอาจขอยืนยัน พิมพ์ Y เพื่อยืนยัน

ต่อไป ต้องเปลี่ยนชื่อโฟลเดอร์ SoftwareDistribution และ catroot2 พิมพ์คำสั่งต่อไปนี้ใน Command Prompt แล้วกด Enter:

Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
Ren %systemroot%\system32\catroot2 catroot2.bak

เพื่อรีเซ็ต BITS service และ Windows Update service ให้เป็น default security descriptor พิมพ์คำสั่งด้านล่างใน elevated command prompt กด Enter หลังแต่ละคำสั่ง:

sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)

หลังจากนั้น รันคำสั่งด้านล่างเพื่อไปที่ไดเรกทอรี่ System32:

cd /d %windir%\system32

ที่จุดนี้ ต้องลงทะเบียนใหม่ (re-register) ไฟล์ BITS (Background Intelligent Transfer Services) และ DLL ที่เกี่ยวข้องกับ Windows Update พิมพ์คำสั่งทีละอัน แล้วกด Enter:

regsvr32.exe atl.dll
regsvr32.exe urlmon.dll
regsvr32.exe mshtml.dll
regsvr32.exe shdocvw.dll
regsvr32.exe browseui.dll
regsvr32.exe jscript.dll
regsvr32.exe vbscript.dll
regsvr32.exe scrrun.dll
regsvr32.exe msxml.dll
regsvr32.exe msxml3.dll
regsvr32.exe msxml6.dll
regsvr32.exe actxprxy.dll
regsvr32.exe softpub.dll
regsvr32.exe wintrust.dll
regsvr32.exe dssenh.dll
regsvr32.exe rsaenh.dll
regsvr32.exe gpkcsp.dll
regsvr32.exe sccbase.dll
regsvr32.exe slbcsp.dll
regsvr32.exe cryptdlg.dll
regsvr32.exe oleaut32.dll
regsvr32.exe ole32.dll
regsvr32.exe shell32.dll
regsvr32.exe initpki.dll
regsvr32.exe wuapi.dll
regsvr32.exe wuaueng.dll
regsvr32.exe wuaueng1.dll
regsvr32.exe wucltui.dll
regsvr32.exe wups.dll
regsvr32.exe wups2.dll
regsvr32.exe wuweb.dll
regsvr32.exe qmgr.dll
regsvr32.exe qmgrprxy.dll
regsvr32.exe wucltux.dll
regsvr32.exe muweb.dll
regsvr32.exe wuwebv.dll

หลังจากลงทะเบียนใหม่ BITS files และ Windows Update DLL files เรียบร้อย ต้องรีเซ็ตการตั้งค่าเครือข่าย

พิมพ์คำสั่งด้านล่างและกด Enter ทีละอัน:

netsh winsock reset
netsh winsock reset proxy

ตอนนี้ รีสตาร์ทบริการที่หยุดไว้ เช่น Background Intelligent Transfer Service, Windows Update, และ Cryptographic services

พิมพ์โค้ดด้านล่างใน Command Prompt กด Enter หลังแต่ละคำสั่ง:

net start bits
net start wuauserv
net start appidsvc
net start cryptsvc
Exit

คำสั่ง Exit จะปิดหน้าต่างอัตโนมัติหลังรันคำสั่งอื่นๆ

หลังทำขั้นตอนด้านบนเสร็จ รีบูทคอมพิวเตอร์เพื่อบันทึกการเปลี่ยนแปลง

หากยังเจอรหัสข้อผิดพลาดเดิมหลังรีเซ็ต Windows components ให้ไปวิธีถัดไป

TIP: สามารถใช้ Reset Windows Update Components Tool ได้เช่นกัน

3) ตรวจสอบสถานะบริการที่เกี่ยวข้องกับ Windows Update

เปิด Windows Services Manager ตรวจสอบบริการที่เกี่ยวข้องกับ Windows Update เช่น Windows Update, Windows Update Medic, Update Orchestrator Services ฯลฯ ไม่ได้ถูก Disable

การตั้งค่าเริ่มต้นบน Windows 10 แบบ Standalone คือ:

  • Windows Update Service – Manual (Triggered)
  • Windows Update Medic Services – Manual
  • Cryptographic Services – Automatic
  • Background Intelligent Transfer Service – Manual
  • Windows Installer – Manual

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

ตัวอย่าง: เพื่อเปิดใช้งาน BITS บน Windows 10:

แก้ไขข้อผิดพลาด  We could not complete the installation because an update service was shutting down  ใน Windows Update

  • กด Windows key + R เปิด Run dialog
  • พิมพ์ services.msc กด Enter เปิด Services
  • ในหน้าต่าง Services เลื่อนหาบริการ Windows Update
  • คลิกสองครั้งเพื่อแก้ไข Properties
  • ในหน้าต่าง Properties คลิกดรอปดาวน์ Startup type เลือก Automatic
  • คลิก Apply > OK บันทึก

ทำเช่นเดียวกันสำหรับบริการอื่นๆ

อ่านเพิ่ม: Windows Update fails to install or will not download.

4) รัน DISM เพื่อซ่อมแซมส่วนประกอบ Windows Update

เครื่องมือ Dism.exe ใช้ได้ในหลายสถานการณ์ รวมถึงซ่อมแซมไฟล์ Windows Update ที่เสียหาย โปรดทราบว่าต้องรันคำสั่งที่แตกต่างกันหากต้องการซ่อมแซม System Files ของ Windows Update ที่เสียหาย หากรันคำสั่ง /RestoreHealth ปกติ อาจไม่ช่วย DISM จะแทนที่ไฟล์ระบบที่เสียหายหรือหายไปด้วยไฟล์ที่ดี แต่หาก Windows Update client เสียหายแล้ว คุณจะได้รับแจ้งให้ใช้ Windows installation ที่ทำงานอยู่เป็นแหล่งซ่อมแซม หรือใช้โฟลเดอร์ Windows side-by-side จาก network share เป็นแหล่งไฟล์

คุณจะต้องรันคำสั่งต่อไปนี้แทน:

DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\Windows /LimitAccess

แก้ไขข้อผิดพลาด  We could not complete the installation because an update service was shutting down  ใน Windows Update

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

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

5) ดาวน์โหลด Windows 10 ISO โดยตรง หรือใช้ MCT (Media Creation Tool)

คุณสามารถดาวน์โหลดไฟล์ Windows 10 ISO จากเว็บไซต์ Microsoft ได้โดยตรง หลังดาวน์โหลด ISO ไปที่ตำแหน่ง (แนะนำ Desktop) บนอุปกรณ์ คลิกสองครั้งที่ ISO เพื่อ mount เป็น virtual drive แล้วคลิกสองครั้งที่ setup.exe เพื่อเริ่มกระบวนการ in-place upgrade

ทางเลือก: ใช้ Windows 10 Update Assistant เพื่อติดตั้ง Feature Update

ขอให้โชคดี!

แก้ไขข้อผิดพลาด  We could not complete the installation because an update service was shutting down  ใน Windows Update