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

CBS.log là gì? Cách đọc file CBS.log trong Windows 10

CBS.log (Component-Based Servicing log) ghi nhật ký các thành phần Windows Update được cài đặt/gỡ bỏ. System File Checker (SFC) cũng ghi log vào file này.

Vị trí file

Mở File Explorer (Win+E), điều hướng đến: C:\Windows\Logs\CBS. File tên CBS.log.

Cách đọc CBS.log (lọc lỗi SFC)

File CBS.log gốc rất lớn, khó đọc. Để chỉ xem log của SFC:

  1. Mở Command Prompt Admin.
  2. Chạy lệnh: findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log > "%userprofile%\Desktop\sfclogs.txt".
  3. Mở file sfclogs.txt trên Desktop bằng Notepad. Các dòng có tiền tố "[SR]" là log của SFC.

Có thể xóa CBS.log không?

CBS.log cần thiết cho Windows Update. Nếu file quá lớn (nghìn MB), có thể xóa sau khi tắt dịch vụ Windows Update (services.msc > Windows Update > Stop/Disable). Xóa xong bật dịch vụ lại.

Lỗi "Windows Resource Protection found corrupt files but was unable to fix some of them"

Chi tiết trong CBS.log. Khắc phục: Chạy DISM /Online /Cleanup-Image /RestoreHealth trong CMD Admin.