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

รีเซ็ต Windows Update Components บน Windows 10 — คู่มือขั้นตอน (อัปเดตล่าสุด)

Microsoft ผลักดัน security updates พร้อม New Features, Security improvements, และ Bug fixes ปิดช่องโหว่จากแอปภายนอก และ Windows 10 ทำให้ดาวน์โหลดและติดตั้งอัปเดตล่าสุดอัตโนมัติเมื่อเครื่องต่อเซิร์ฟเวอร์ Microsoft นี่เป็นความคิดดีเพื่อรักษาความปลอดภัย แต่บางครั้งผู้ใช้เจอปัญหาหลายอย่างขณะพยายามดาวน์โหลดและติดตั้งอัปเดต มีหลายวิธีแก้ไข แต่งาน Windows แนะนำว่า reset windows update components เป็นวิธีที่ทำงานได้ดีที่สุดสำหรับปัญหาอัปเดตหลายอย่าง

มีหลายวิธี troubleshoot Windows Update issues แต่ถ้าเกิดบ่อย ควร Reset Windows Update Components กลับค่าเริ่มต้น จะมีประโยชน์ถ้า Windows Updates ติดตั้งล้มเหลว, Update ค้างขณะดาวน์โหลด, หรือติดตั้งล้มเหลวพร้อม Error Codes ต่างๆ

Reset Windows Update Components

ถ้าคุณเจอ Windows Update installation Error ต่างๆ บน Windows 10 ลองหลายวิธีแตยังไม่แก้ นี่คือวิธี Reset แต่ละ Windows Update component กลับค่าเริ่มต้นใน Windows 10 สามารถทำด้วยตนเองด้วยการปรับโฟลเดอร์ Software Distribution และ Cartoot2 หรือ Reset อัตโนมัติด้วย .bat file สำเร็จรูป เริ่มจาก Manual Reset

หมายเหตุ: ก่อนทำการ reset windows update components แนะนำสร้าง System Restore Point จะสร้าง snapshot ของไฟล์และข้อมูลบางอย่างก่อนการดำเนินการสำคัญ เช่น อัปเดตหรือติดตั้งซอฟต์แวร์ ถ้ามีอะไรผิดพลาด สามารถย้อนกลับด้วย System Restore

Manual Reset Windows Update Components

Manual reset update components: เปิด Command prompt ด้วย Admin rights คลิก Start menu search พิมพ์ cmd คลิกขวา Command prompt จากผลลัพธ์ เลือก Run As Administrator

หยุดบริการ Windows Update ที่เกี่ยวข้อง ทำได้ 2 วิธี: พิมพ์คำสั่งทีละอัน หรือเปิด Windows Services (Win + R พิมพ์ Services.msc Enter) หาบริการต่อไปนี้ คลิกขวา Stop:

ใน Command prompt พิมพ์คำสั่ง กด Enter ทีละคำสั่ง:

net stop bits (หยุด Background Intelligent Transfer Service)

net stop wuauserv (หยุด Windows Update service)

net stop appidsvc (หยุด Application Identity service)

net stop cryptsvc (หยุด Catalog Database Service)

คำสั่งเหล่านี้หยุด BITS, Windows Update และ Cryptographic service

ลบไฟล์ qmgr*.dat

หยุดบริการแล้ว ต้อง ลบไฟล์ qmgr*.dat (เพื่อ reset Windows Update components ต้องลบไฟล์เหล่านี้) ลบด้วยคำสั่งด้านล่าง:

คัดลอกคำสั่ง วางใน Command กด Enter รัน:

รีเซ็ต Software Distribution Folder

รีเซ็ต Software distribution folder ที่เก็บไฟล์อัปเดตทั้งหมด พิมพ์คำสั่ง:

Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak

กด Enter เปลี่ยนชื่อโฟลเดอร์ software distribution ปัจจุบันเป็น softwaredistribution.bak หรือเปลี่ยนชื่อด้วยตนเองจาก C:\Windows\SoftwareDistribution เปลี่ยนเป็น SoftwareDistribution.bak

รีเซ็ต Catroot2 Folder

เปลี่ยนชื่อ Catroot2 Folder เช่นกัน พิมพ์ Ren %systemroot%\system32\catroot2 catroot2.bak กด Enter หรือเปิด C:\Windows\System32 หา Catroot และ Catroot2 Folder เปลี่ยนชื่อด้วย .bak

รีเซ็ต Background Intelligent Transfer และ Update Service

Reset BITS service และ Windows Update service ให้เป็น default security descriptor พิมพ์คำสั่งด้านล่างทีละอัน กด Enter:

หลังจากนั้น พิมพ์ cd /d %windir%\system32 กด Enter Re-register BITS files และ Windows Update related dll files รันคำสั่งทีละอัน:

  • 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

รีเซ็ต Winsock

Winsock กำหนดว่า Windows network software ควรเข้าถึง network services อย่างไร โดยเฉพาะ TCP/IP Windows OS มาพร้อม DLL file ชื่อ winsock.dll implement API และประสาน Windows programs กับ TCP/IP connections ถ้า Winsock เสียหาย อาจเจอปัญหาเชื่อมต่ออินเทอร์เน็ต การ reset Winsock เป็นวิธีแก้ที่ดี ทำได้ด้วยคำสั่งง่าย:

  • กด Windows key + R เปิด Run
  • พิมพ์ netsh winsock reset คลิก OK รันคำสั่ง

เริ่มบริการ Update ที่เกี่ยวข้อง

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

พิมพ์ net start bits เริ่ม Background Intelligent Transfer Service.

พิมพ์ net start wuauserv เริ่ม Windows Update service.

พิมพ์ net start appidsvc เริ่ม Application Identity service.

สุดท้าย พิมพ์ net start cryptsvc เริ่ม Catalog Database Service.

เสร็จแล้ว คุณ reset windows update components สำเร็จแล้ว แต่ต้องรีสตาร์ท Windows เพื่อให้นำการเปลี่ยนแปลงไปใช้ แล้วตรวจสอบ Windows update ล่าสุด

รีเซ็ต Update Components อัตโนมัติ

ถ้าไม่อยากทำขั้นตอนด้วยตนเอง มี Script ด้านล่าง คัดลอกไป Notepad บันทึกชื่ออะไรก็ได้ .bat (เช่น updatereset.bat — ต้องมี .bat) บันทึก คลิกขวา updatereset.bat Run as administrator จะทำขั้นตอนข้างต้นอัตโนมัติ รอสักครู่ รีสตาร์ท Windows ตรวจสอบอัปเดต หวังว่าครั้งนี้ไม่เจอ Errors ขณะดาวน์โหลดและติดตั้งอัปเดต

@ECHO OFF
echo Simple Script to Reset / Clear Windows Update
echo.
PAUSE
echo.
attrib -h -r -s %windir%\system32\catroot2
attrib -h -r -s %windir%\system32\catroot2\*.*
net stop wuauserv
net stop CryptSvc
net stop BITS
ren %windir%\system32\catroot2 catroot2.old
ren %windir%\SoftwareDistribution sold.old
ren "%ALLUSERSPROFILE%\application data\Microsoft\Network\downloader" downloader.old
net Start BITS
net start CryptSvc
net start wuauserv
echo.
echo Task completed successfully...
echo.
PAUSE

หวังว่า Reset Windows Update Components จะแก้ปัญหา Windows update ทั้งหมด (update install ค้าง, Windows update errors, ไม่ดาวน์โหลดอัปเดต ฯลฯ) ให้คุณ ยังมีคำถามหรือข้อเสนอแนะ คอมเมนต์ได้เลย

อ่านเพิ่ม:

  • How To Fix Disk Errors with Check Disk Utility (CHKDSK)
  • Fix wuauserv (Windows update) High CPU usage in Windows 10
  • 3 Ways to Reset Windows 10 Password with/without software
  • Solved: "Windows Update Components Must Be Repaired" In Windows 10
  • How to fix windows update when it gets stuck at 0 percent or 100