Khi cài Cumulative Update gặp lỗi 0x800f0831 trên Windows Server hoặc Windows 11/10, bài viết này phân tích nguyên nhân và giải pháp.

Nguyên nhân phổ biến: Thiếu manifest gói cập nhật trước đó (Windows Update không biết gói nào đã cài, từ chối cài gói mới). Các nguyên nhân khác: dịch vụ Windows Update bị tắt, thiếu .NET 3.5 Framework, máy không kết nối được server Windows Update (do file hệ thống hỏng, VPN, Proxy).
9 giải pháp sửa lỗi 0x800f0831
- Chạy Windows Update Troubleshooter
- Cài đặt thủ công Feature/Cumulative Update
- Gỡ VPN client hoặc xóa Proxy server (nếu có)
- Đặt Windows Update service = Automatic
- Bật .NET Framework 3.5
- Cài .NET Framework 3.5 qua Command Prompt
- Chạy SFC & DISM scan
- Thực hiện System Restore
- Fresh Start / In-place upgrade repair / Clean install
1. Chạy Windows Update Troubleshooter
Chạy trình khắc phục sự cố Windows Update tích hợp.
2. Cài đặt thủ công cập nhật
Tải gói Cumulative Update từ Microsoft Update Catalog cài thủ công. Feature Update dùng Windows Update Assistant.
3. Gỡ VPN / Proxy
VPN/Proxy có thể chặn kết nối đến Windows Update server. Gỡ VPN qua Programs and Features, xóa proxy.
4. Đặt Windows Update = Automatic
Trên máy trong domain, policy hoặc tool tối ưu có thể tắt service Windows Update.
- Win + R >
services.msc> Enter. - Tìm Windows Update > kích đúp.
- Startup type: Automatic > Apply > OK.
- Khởi động lại máy.
5. Bật .NET Framework 3.5
Cumulative update phức tạp, cần .NET 3.5. Bật qua Windows Features (Turn Windows features on/off).
6. Cài .NET Framework 3.5 qua CMD (buộc cài)
Nếu bật qua Windows Features thất bại, cài buộc từ media cài Windows 10:
- Gắn media cài Windows 10 (USB/DVD).
- Win + R >
notepad> Ctrl+Shift+Enter (mở Notepad Admin). - Dán script sau, thay PLACEHOLDER bằng ký tự ổ media cài:
@echo off Title .NET Framework 3.5 Offline Installer for %%I in (D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist "%%I:\sources\install.wim" set setupdrv=%%I if defined setupdrv ( echo Found drive %setupdrv% echo Installing .NET Framework 3.5... Dism /online /enable-feature /featurename:NetFX3 /All /Source:%setupdrv%:\sources\sxs /LimitAccess echo. echo .NET Framework 3.5 should be installed echo. ) else ( echo No installation media found! echo Insert DVD or USB flash drive and run this file once again. echo. ) pause
- Lưu file tên
InstallDOTnet3.5.cmd. - Chuột phải > Run as administrator > Yes > chờ hoàn tất.
- Reboot và kiểm tra lỗi 0x800f0831.
7. Chạy SFC và DISM
Nếu vẫn lỗi, nguyên nhân có thể do file hệ thống hỏng. Chạy script batch sau với quyền Admin lặp lại cho đến khi không báo lỗi:
@echo off date /t & time /t echo Dism /Online /Cleanup-Image /StartComponentCleanup Dism /Online /Cleanup-Image /StartComponentCleanup echo ... date /t & time /t echo Dism /Online /Cleanup-Image /RestoreHealth Dism /Online /Cleanup-Image /RestoreHealth echo ... date /t & time /t echo SFC /scannow SFC /scannow date /t & time /t pause
Lưu thành SFC_DISM_scan.bat > Run as Admin lặp lại > Reboot.
8. System Restore
Nếu lỗi xuất hiện gần đây sau cài driver/update/tắt máy bất ngờ, dùng System Restore về điểm trước khi lỗi xuất hiện (lưu ý: mất các thay đổi sau điểm khôi phục).
- Win + R >
rstrui> Enter. - Next > tích Show more restore points > chọn điểm cũ hơn > Next > Finish > xác nhận.
9. Fresh Start / In-place upgrade / Clean install
Nếu vẫn không khắc phục, hệ thống bị hỏng sâu. Thử Fresh Start, In-place upgrade repair (giữ file/app) hoặc cài đặt sạch (Clean install).
Hy vọng một trong các giải pháp trên khắc phục được lỗi!