Khi Windows Update bị treo, lỗi, hoặc "pending changes" không cài được → xóa file update đã tải để buộc tải lại từ đầu.
Cách 1: Xóa thư mục Temp
- Win+R →
%temp%→ Enter - Chọn tất cả (Ctrl+A) → Delete
- Restart máy
Cách 2: Xóa thư mục SoftwareDistribution (Khuyên dùng)
- CMD Admin → chạy:
net stop wuauservvànet stop bits - Mở
C:\Windows\SoftwareDistribution→ xóa **tất cả nội dung bên trong** (hoặc đổi tên thư mục thành SoftwareDistribution.old) - CMD Admin → chạy:
net start wuauservvànet start bits - Restart → Windows Update sẽ tải lại mới
Cách 3: Xóa file XML pending trong WinSxS
- Win+R →
C:\Windows\WinSxS\ - Tìm file pending.xml → xóa (hoặc cut sang chỗ khác backup)
- Restart
Cách 4: Reset thư mục CatRoot2
- CMD Admin → chạy lần lượt:
net stop cryptsvc
md %systemroot%\system32\catroot2.old - Xóa **nội dung** thư mục
C:\Windows\System32\catroot2\(KHÔNG xóa/đổi tên thư mục cha) - Chạy:
net start cryptsvc - Thư mục sẽ tự tạo lại khi chạy Windows Update
Lưu ý: Cách 2 là hiệu quả nhất và an toàn. Luôn restart sau khi làm.