Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การแก้ไขปัญหา >> ข้อผิดพลาด Windows

แก้ไข Windows 10/11 Update Error 0x80070015: คู่มือสมบูรณ์

การอัปเดตระบบปฏิบัติการและแอปพลิเคชันให้ทันสมัย สำคัญมากต่อการทำงานที่มีประสิทธิภาพและราบรื่นของคอมพิวเตอร์ อัปเดตนำมาฟีเจอร์ใหม่ การปรับปรุง และการแก้ไขบั๊กสำหรับคอมพิวเตอร์ Windows

Windows Update บริการอัปเดต built-in ของ Windows 10/11 ทำให้ติดตั้งอัปเดตง่ายขึ้น อัปเดตทั้งหมดดาวน์โหลดในเบื้องหลัง และเลือกได้ว่าจะติดตั้งเมื่อไหร่ สามารถตรวจสอบด้วยตนเองได้ที่ Settings > Update & Security > Windows Update คลิกปุ่ม Check for updates

การใช้ Windows Update ติดตั้ง system และ app updates ควรตรงไปตรงมา แต่ผู้ใช้บางรายรายงานว่า update ล้มเหลวเนื่องจาก Windows 10/11 update error 0x80070015 ข้อผิดพลาดนี้ป้องกันไม่ให้ติดตั้งอัปเดตบนคอมพิวเตอร์ ก่อให้เกิด挫折มาก

Error 0x80070015 บน Windows 10/11 คืออะไร และสาเหตุคืออะไร?

Error code 0x80070015 ไม่ได้จำกัดอยู่ที่ Windows Update ผู้ใช้บางคนเจอข้อผิดพลาดนี้ตอนติดตั้ง Windows 10/11 ใหม่ หรือใช้ Microsoft Store แต่คู่มือนี้เน้นที่ error 0x80070015 ตอนใช้ Windows Update

ตอน Windows 10/11 อัปเดตไม่สำเร็จด้วย error 0x80070015 จะเจอการแจ้งเตือนแบบนี้:

Updates failed
There were problems installing some updates, but we'll try again later. If you keep seeing this and want to search the web or contact support for information, this may help:
Error 0x80070015

สาเหตุหลักของ error 0x80070015 คือ Diagnostic Policy Service ไม่ได้ทำงาน บริการนี้เปิดใช้งาน error detection, troubleshooting, และ resolution สำหรับ Windows components ถ้า Diagnostic Policy Service ไม่ได้เปิดใช้งาน คอมพิวเตอร์จะรัน diagnostics ไม่ได้ ก่อให้เกิด error อย่าง 0x80070015

อย่างไรก็ตาม ปัจจัยอื่นๆ ก็อาจก่อให้เกิด error 0x80070015 ได้ เช่น corrupted Windows Update components, มัลแวร์และ junk files, หรือ CBS.Log file เสียหาย

วิธีแก้ Error Code 0x80070015 บน Windows 10/11

Error 0x80070015 ควรแก้ได้ง่ายถ้าทำตามคู่มือด้านล่าง แต่ก่อนหน้านั้น มี basic troubleshooting steps ต้องทำก่อนเพื่อเตรียมระบบ:

  • ปิด antivirus และ Firewall ชั่วคราว Security software บางครั้งรบกวนการติดตั้งอัปเดต โดยเฉพาะถ้ามี security patches ในอัปเดต อย่าลืมเปิดกลับคืนหลังแก้ไขเสร็จ
  • ทำความสะอาดคอมพิวเตอร์ Junk files ที่ซ่อนอยู่ใน hard drive อาจรบกวน system processes ใช้ Outbyte PC Repair ลบไฟล์ไม่จำเป็น เพิ่มประสิทธิภาพคอมพิวเตอร์โดยรวม
  • รัน System File Checker ซ่อม system files ที่เสียหาย เปิด Command Prompt (Admin) รันคำสั่ง sfc /scannow ตรวจสอบ corrupted, damaged, หรือ missing system files SFC tool จะแทนที่ไฟล์ระบบที่มีปัญหาด้วย copies ที่ดี
  • รีสตาร์ทคอมพิวเตอร์ Reboot จะ refresh OS และเตรียมพร้อมสำหรับ troubleshooting

วิธีแก้ #1: รัน Windows Update Troubleshooter

ทุกครั้งที่เจอ error ตอนใช้ Windows Update ต้องพึ่ง troubleshooter ก่อน built-in utility นี้ออกแบบมาแก้ Windows Update errors ทั่วไปที่ขวางการติดตั้งอัปเดตที่จำเป็น วิธีง่ายที่สุดจัดการ Windows Update errors เช่น error 0x80070015

Windows Update troubleshooter ทำงานโดยหยุด Windows Update services, ล้าง Windows Update download cache, แล้ว restart Windows Update services

ขั้นตอนรัน troubleshooter:

  1. ค้นหา Troubleshooting ใน Start search bar
  2. คลิกผลลัพธ์ภายใต้ Best match ควรแสดง Troubleshooting ใน Control Panel
  3. ตอน Control Panel window ขึ้น คลิก Fix problems with Windows Update ภายใต้ System and Security
  4. คลิกลิงก์ Advanced ในหน้าต่าง Windows Update troubleshooting
  5. ติ๊ก Apply repairs automatically คลิก Run as administrator

Troubleshooter จะทำงาน แล้วบอกว่าตรวจพบปัญหาอะไร และแก้ได้ไหม

วิธีแก้ #2: รีเซต Windows Update Services

อีกวิธีแก้ Windows Update errors ที่มีประสิทธิภาพคือ reset Windows Update components ขั้นตอน:

  1. กด Windows + X เปิด Power menu
  2. เลือก Windows PowerShell (Admin) จากรายการ
  3. ตอน PowerShell window ปรากฏ รันคำสั่งต่อไปนี้ ตามด้วย Enter ทุกบรรทัด:
    net stop wuauserv
    net stop cryptSvc
    net stop bits
    net stop msiserver
  4. คำสั่งเหล่านี้จะหยุด Windows Update Services
  5. รันคำสั่งต่อไปเพื่อ rename Software Distribution folder:
    Ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
    Ren C:\Windows\System32\catroot2 Catroot2.old
  6. Restart Windows Update services ด้วยคำสั่ง:
    net start wuauserv
    net start cryptSvc
    net start bits
    net start msiserver

ปิด PowerShell window หลังคำสั่งเสร็จ แล้วลองรัน Windows Update อีกครั้ง ดูว่า error หายหรือไม่

วิธีแก้ #3: เปลี่ยนชื่อ CBS.Log File

CBS.Log file ที่เสียหายก็ทำให้ Windows Update errors ได้ เพราะไฟล์นี้เก็บ logs เกี่ยวกับ components ที่ติดตั้งหรือถอนตอนอัปเดต แก้ไขด้วยการหาและเปลี่ยนชื่อ CBS.Log file:

  1. เปิด File Explorer ไป C:\WINDOWS\Logs\CBS
  2. หา CBS.Log file เปลี่ยนชื่อเป็นอะไรก็ได้
  3. หลังเปลี่ยนชื่อแล้ว ตรวจสอบ Windows Update ว่าแก้ไขได้หรือไม่

ถ้าไม่สามารถเปลี่ยนชื่อไฟล์ได้ ทำนี้:

  1. เปิด Run ด้วย Windows + R
  2. พิมพ์ services.msc กด Enter
  3. ในหน้าต่าง Services หา Windows Modules Installer service ดับเบิลคลิก
  4. ตั้ง Startup type เป็น Manual คลิก Apply > OK เซฟ
  5. รีสตาร์ทคอมพิวเตอร์ แล้วลองเปลี่ยนชื่อ CBS.Log file อีกครั้ง

หลังเปลี่ยนชื่อแล้ว กลับไป Services เปลี่ยน Startup type ของ Windows Modules Installer service กลับค่าเดิม

วิธีแก้ #4: Restart Diagnostics Policy Service

ถ้าเจอ error 0x80070015 เพราะ Diagnostics Policy Service ไม่ได้รัน ต้อง restart service เพื่อแก้ไข

ขั้นตอน:

  1. คลิกขวา Start เลือก Command Prompt (Admin)
  2. รันคำสั่งทีละอันใน Command Prompt กด Enter ทุกบรรทัด:
    net localgroup Administrators /add networkservice
    net localgroup Administrators /add localservice
    exit
  3. รีสตาร์ทคอมพิวเตอร์หลังรันคำสั่ง
  4. เปิด Services ตามขั้นตอนข้างต้น
  5. หา Diagnostic Policy Service ตรวจสอบสถานะว่ารันอยู่หรือไม่ ถ้าบอก Stopped คลิกขวา Diagnostic Policy Service คลิก Properties > Start

ตอน Diagnostic Policy Service ทำงานอยู่แล้ว ลอง Windows Update อีกครั้ง ดูว่าติดตั้งอัปเดตได้โดยไม่มี error 0x80070015 หรือไม่

บันทึกสุดท้าย

การอัปเดตคอมพิวเตอร์ควรง่ายขึ้นกับ Windows Update แต่ถ้า Windows 10/11 อัปเดตไม่ได้ด้วย error 0x80070015 ต้องเช็กก่อนว่าสาเหตุอะไร แล้วใช้วิธีแก้ที่เหมาะสมจากรายการข้างต้น ถ้าไม่แน่ใจว่าสาเหตุอะไร ก็ลองทำตามรายการทีละขั้น จนกว่าจะพบวิธีที่ได้ผล