Computer >> Hướng Dẫn Máy Tính >  >> Hệ Thống >> Windows

Khắc phục lỗi Windows Update 0x800f0831 trên Windows 11/10/Server

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.

Khắc phục lỗi Windows Update 0x800f0831 trên Windows 11/10/Server

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

  1. Chạy Windows Update Troubleshooter
  2. Cài đặt thủ công Feature/Cumulative Update
  3. Gỡ VPN client hoặc xóa Proxy server (nếu có)
  4. Đặt Windows Update service = Automatic
  5. Bật .NET Framework 3.5
  6. Cài .NET Framework 3.5 qua Command Prompt
  7. Chạy SFC & DISM scan
  8. Thực hiện System Restore
  9. 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.

  1. Win + R > services.msc > Enter.
  2. Tìm Windows Update > kích đúp.
  3. Startup type: Automatic > Apply > OK.
  4. 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:

  1. Gắn media cài Windows 10 (USB/DVD).
  2. Win + R > notepad > Ctrl+Shift+Enter (mở Notepad Admin).
  3. 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
  1. Lưu file tên InstallDOTnet3.5.cmd.
  2. Chuột phải > Run as administrator > Yes > chờ hoàn tất.
  3. 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).

  1. Win + R > rstrui > Enter.
  2. 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!