Computer >> Hướng Dẫn Máy Tính >  >> Xử Lý Sự Cố >> Lỗi Windows

Hướng dẫn xóa bộ nhớ đệm Windows Update trên Windows 10 thủ công

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.

Hướng dẫn xóa bộ nhớ đệm Windows Update trên Windows 10 thủ công

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

  1. Win → gõ "File Explorer" → Enter.
    Hướng dẫn xóa bộ nhớ đệm Windows Update trên Windows 10 thủ công
  2. Chuột phải Local Disk (C:) → Properties.
    Hướng dẫn xóa bộ nhớ đệm Windows Update trên Windows 10 thủ công
  3. Tab General → Disk Clean-up.
    Hướng dẫn xóa bộ nhớ đệm Windows Update trên Windows 10 thủ công
  4. Chọn Clean up system files.
    Hướng dẫn xóa bộ nhớ đệm Windows Update trên Windows 10 thủ công
  5. Tick vào "Windows upgrade log files" và "Temporary Windows Installation files" → OK.
    Hướng dẫn xóa bộ nhớ đệm Windows Update trên Windows 10 thủ công
  6. Win → gõ services → mở ứng dụng Services.
    Hướng dẫn xóa bộ nhớ đệm Windows Update trên Windows 10 thủ công
  7. Tìm Windows Update → chuột phải → Stop (chờ < 1 phút).
    Hướng dẫn xóa bộ nhớ đệm Windows Update trên Windows 10 thủ công
  8. Mở File Explorer → truy cập C:\Windows\SoftwareDistribution.
    Hướng dẫn xóa bộ nhớ đệm Windows Update trên Windows 10 thủ công
  9. Chuột phải thư mục Download → Delete → Yes.
    Hướng dẫn xóa bộ nhớ đệm Windows Update trên Windows 10 thủ công
  10. Restart máy → chạy Windows Update lại.

Cách 2: Xóa cache qua Command Prompt

  1. Win → gõ CMD → chuột phải → Run as administrator.
  2. UAC → Yes.
  3. Gõ lần lượt:
    net stop wuauserv (dừng dịch vụ Windows Update)
    C:
    cd %Windir%\SoftwareDistribution
    del /f /s /q Download
    Hướng dẫn xóa bộ nhớ đệm Windows Update trên Windows 10 thủ công
  4. Restart máy.

Cách 3: Tạo script tự động xóa cache

  1. Mở Notepad.
  2. Dán code sau:
    @Echo On
    net stop wuauserv
    C:
    cd %Windir%\SoftwareDistribution
    del /f /s /q Download
    pause
  3. Lưu file tên Cleardown.cmd ra Desktop.
  4. Chuột phải file → Run as administrator.
  5. 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:

  1. Mở CMD Admin.
  2. Gõ lần lượt:
    net stop wuauserv
    net stop cryptSvc
    net stop bits
    net stop msiserver
  3. Tiếp tục:
    ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
    ren C:\Windows\System32\catroot2 Catroot2.old
  4. 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:

  1. Mở CMD Admin.
  2. 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
  3. 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.