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

Reset Windows Update Client ด้วย PowerShell Script

Windows Updates ทำงานราบรื่นส่วนใหญ่ แต่อาจเจอปัญหา เช่น updates พร้อมแต่ service ไม่ detect/install, updates ติดตั้งไม่สมบูรณ์ก่อให้ปัญหา, Windows Update service ค้าง 'updating' ไม่ update เลย ฯลฯ

ลอง restart ระบบ restart Windows Update service roll back updates ถ้าได้ troubleshoot Windows Update รัน Windows Update Troubleshooter อาจไม่ได้เสมอไป เคยดูวิธี reset Windows Update components แบบ manual วันนี้ดู Reset Windows Update Client Script รีเซ็ต Windows Update client settings ทั้งหมด

Reset Windows Update Client

Script นี้ reset Windows Update client settings ทั้งหมด ทดสอบบน Windows 7, 8, 10, Server 2012 R2 ตั้งค่า services และ registry keys เกี่ยวกับ Windows Update เป็นค่าเริ่มต้น ลบไฟล์เกี่ยว Windows Update รวม BITS data เนื่องจากข้อจำกัด cmdlets ใน PowerShell script เรียก legacy utilities (sc.exe, netsh.exe, wusa.exe ฯลฯ)

Backup ข้อมูล รีสตาร์ท Windows เข้าสู่ระบบเป็น Administrator

ดาวน์โหลด PowerShell file จาก Technet/GitHub — ลิงก์ด้านล่าง คลิกขวา Reset-WindowsUpdate.psi เลือก Run with PowerShell

Reset Windows Update Client ด้วย PowerShell Script

จะถามยืนยัน ยืนยันแล้ว script จะรัน reset Windows Update client

Tool ตั้งค่า registry keys, settings, services เป็นค่าเริ่มต้น ทุกอัปเดตรีเซ็ต เสร็จแล้ว reboot ระบบและติดตั้งอัปเดตใหม่

Reset Windows Update Client ด้วย PowerShell Script

จบกระบวนการ PowerShell window จะปิด

ขอบคุณลิงก์ Tynamite:

  • Reset-WindowsUpdate.ps1 Powershell Script: github.com
  • Reset WSUS Client: github.com
  • Reset Windows Update Agent: github.com

เคยดู tool อีกตัว Reset Windows Update Agent Tool รีเซ็ต WU Agent เป็นค่าเริ่มต้น อัปเดตรองรับ Windows 10 ล่าสุด ดาวน์โหลด超過 100,000 ครั้ง

Reset Windows Update Client ด้วย PowerShell Script