Bài viết hướng dẫn sửa lỗi Windows Update Components Must Be Repaired khi chạy Windows Update trên Win 10.

Nguyên nhân
Lỗi xuất hiện khi Windows Update cố gắng cài đặt bản cập nhật nhưng gặp sự cố: file cập nhật hỏng, cache Windows Update lỗi, dịch vụ Windows Update dừng, v.v.
Các phương pháp khắc phục
Thử lần lượt: Reset cache → Windows Update Troubleshooter → Sửa file hỏng → Đăng ký lại file BIT → Cài đặt thủ công.
Kiểm tra cơ bản trước khi sửa
- Kết nối internet ổn định? Test speed tại Google.
- Tắt Antivirus tạm thời (có thể chặn update).
- Restart máy để khởi động lại dịch vụ update.
- Kiểm tra Region/Date/Time: Settings → Time & Language → Region.
- Dung lượng ổ C: Còn trống ≥ 1GB.
Cách 1: Reset Windows Update Cache
Dừng dịch vụ, đổi tên thư mục cache:
- Mở CMD Admin (Win → CMD → Run as admin).

- Gõ lần lượt (mỗi lệnh chờ 1-2 phút):
net stop wuauserv
net stop cryptsvc
net stop bits
net stop msiserver

- Khi thấy "Was stopped successfully" hoặc "Service is not started" → tiếp tục.
- Đổi tên thư mục cache:
ren %systemroot%\softwaredistribution softwaredistribution.old
ren %systemroot%\system32\catroot2 catroot2.old
Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\*.*" - Restart máy.
- Chạy Windows Update thủ công: Settings → Update & Security → Windows Update → Check for updates.

Cách 2: Chạy Windows Update Troubleshooter
- Tải Windows Update Troubleshooter từ Microsoft.
- Chạy file .exe → chọn Windows Update → Next.

- Nếu hiện màn hình → chọn Try troubleshooting as an administrator.

- Để tool tự sửa → Close → Restart → chạy Windows Update lại.
Cách 3: Sửa file hệ thống hỏng (SFC + DISM)
- Mở CMD Admin.
- Gõ:
chkdsk C: /f /r→ nhấn Y nếu hỏi schedule → Restart.

- Sau restart, mở CMD Admin lại → gõ:
dism.exe /Online /Cleanup-image /Restorehealth
sfc /scannow - Restart → chạy Windows Update lại.
Cách 4: Đăng ký lại file BIT (BITS)
- Mở CMD Admin → dừng 4 dịch vụ như Cách 1 (bước 2).
- Gõ lần lượt các lệnh regsvr32 (danh sách đầy đủ trong bài gốc).
- Restart → chạy Windows Update.
Cách 5: Cài đặt thủ công bản cập nhật mới nhất
- Kiểm tra 32/64-bit: Settings → System → About → System type.
- Vào Microsoft Update Catalog, tìm KB mới nhất (ví dụ KB4499183).
- Tải file .msu phù hợp (x86 cho 32-bit, x64 cho 64-bit). File ~700MB-1GB.
- Click đúp file .msu → cài đặt → Restart → chạy Windows Update.
Nếu vẫn lỗi, hãy comment kèm mã lỗi để được hỗ trợ thêm.