Xóa thủ công bộ nhớ đệm (cache) Windows Update giải quyết hầu hết lỗi cài đặt bản cập nhật mới trên Windows 10.

Tại sao cần xóa cache? Nếu Windows Update báo lỗi (như hình hoặc lỗi "Windows Update Components Must Be Repaired"), nguyên nhân thường do file cập nhật tải không hoàn tất hoặc bị hỏng. Các bước dưới đây sẽ khắc phục.
Cách 1: Xóa cache Windows Update thủ công qua giao diện
- Win → gõ "File Explorer" → Enter.

- Chuột phải Local Disk (C:) → Properties.

- Tab General → Disk Clean-up.

- Chọn Clean up system files.

- Tick vào "Windows upgrade log files" và "Temporary Windows Installation files" → OK.

- Win → gõ services → mở ứng dụng Services.

- Tìm Windows Update → chuột phải → Stop (chờ < 1 phút).

- Mở File Explorer → truy cập
C:\Windows\SoftwareDistribution.

- Chuột phải thư mục Download → Delete → Yes.

- Restart máy → chạy Windows Update lại.
Cách 2: Xóa cache qua Command Prompt
- Win → gõ CMD → chuột phải → Run as administrator.
- UAC → Yes.
- Gõ lần lượt:
net stop wuauserv(dừng dịch vụ Windows Update)
C:
cd %Windir%\SoftwareDistribution
del /f /s /q Download

- Restart máy.
Cách 3: Tạo script tự động xóa cache
- Mở Notepad.
- Dán code sau:
@Echo On
net stop wuauserv
C:
cd %Windir%\SoftwareDistribution
del /f /s /q Download
pause - Lưu file tên
Cleardown.cmdra Desktop. - Chuột phải file → Run as administrator.
- Script chạy xong sẽ pause để xem kết quả.
Cách 4: Reset Windows Update Components (Nâng cao)
Nếu các cách trên không được, reset toàn bộ component Windows Update:
- Mở CMD Admin.
- Gõ lần lượt:
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver - Tiếp tục:
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 Catroot2.old - Restart máy.
Đăng ký lại file DLL của BITS và Windows Update
Đăng ký lại các file DLL liên quan để khôi phục cài đặt mặc định:
- Mở CMD Admin.
- Gõ lần lượt các lệnh:
cd /d %windir%\system32
regsvr32.exe /s atl.dll
regsvr32.exe /s urlmon.dll
regsvr32.exe /s mshtml.dll
regsvr32.exe /s shdocvw.dll
regsvr32.exe /s browseui.dll
regsvr32.exe /s jscript.dll
regsvr32.exe /s vbscript.dll
regsvr32.exe /s scrrun.dll
regsvr32.exe /s msxml3.dll
regsvr32.exe /s msxml6.dll
regsvr32.exe /s actxprxy.dll
regsvr32.exe /s softpub.dll
regsvr32.exe /s wintrust.dll
regsvr32.exe /s dssenh.dll
regsvr32.exe /s rsaenh.dll
regsvr32.exe /s cryptdlg.dll
regsvr32.exe /s oleaut32.dll
regsvr32.exe /s ole32.dll
regsvr32.exe /s shell32.dll
regsvr32.exe /s wuapi.dll
regsvr32.exe /s wuaueng.dll
regsvr32.exe /s wups.dll
regsvr32.exe /s wups2.dll
regsvr32.exe /s qmgr.dll
regsvr32.exe /s wudriver.dll - Restart máy.
Vị trí cache Windows Update: C:\Windows\SoftwareDistribution\Download. Nên xóa thư mục này vài tháng/lần vì nó lớn dần theo thời gian.