- The CBS.log file records the operations of SFC and WRP, helping to identify which system files are corrupted.
- SFC attempts to repair protected files from the local cache, while DISM repairs the entire Windows image when that cache is corrupted.
- Errors in the C: drive, power outages, malware, or failed updates are frequent causes of system file corruption.
- A combination of CHKDSK, antimalware scan, SFC, DISM, and ultimately, in-place repair usually restores system stability.
When Windows crashes and you get the message to check the file CBS.log after a system failureIt's normal to panic. Suddenly you see warnings like "Windows Resource Protection found corrupt files and was unable to repair some of them," and to top it all off, the system insists that the C: drive is damaged. It might seem like your Windows installation is doomed, but you actually have several powerful tools to diagnose and repair the problem step by step.
In this article we will calmly break down what the archive is. CBS.log, what exactly does the SFC error message mean?How are these records interpreted, and what role do utilities play? CFS and DISMAnd what you can do if the Windows disc or image is damaged. We'll also look at some common real-world scenarios (Windows pre-installed without a DVD, problems after an update, malware infections, etc.) and how to address them systematically.
What is CBS.log and why does it appear after a system failure?
The file CBS.log is part of the internal maintenance log from Windows. It is saved in the path %windir%\Logs\CBS\CBS.log (normally C:\Windows\Logs\CBS\CBS.logand is used by several system components, including Windows Resource Protection (WRP) and the System File Checker (SFC.exe)Every time you run sfc /scannowWindows leaves a detailed record of what it has checked and repaired in this log.
Within that file, you'll see many lines marked with the label, which correspond to SFC operations. Often, after a system crash or a hard restart, you'll find messages indicating that Windows has detected corruption and that the details are in [the relevant section]. CBS.logThat doesn't automatically mean the system is unrecoverable, but rather that we need to check what type of files have been affected and whether they could be repaired or not.

Static files, mutable files, and why WRP doesn't protect everything
In the Windows operating system, a distinction is made between static files and mutable filesStatic files are those that, under normal conditions, should never change (system binaries, certain basic resources, etc.). Mutable files, on the other hand, are those that are constantly modified, such as Logs and Registry Files when they are stored on disk.
The feature Windows Resource Protection (WRP) It focuses on protecting and monitoring primarily the critical static filesHowever, there are exceptions: some static files are not covered by WRP. A classic example documented by Microsoft is a background image. img11.jpg, belonging to the component Microsoft-Windows-Shell-Wallpaper-CommonIf this file changes while WRP is checking the system (for example, during a sfc /scannow), the modification is recorded in CBS.logBut since it's not protected by WRP, The system does not attempt to reverse it and simply records that the hash does not match.
The log may contain entries similar to these, which are often alarming but do not always indicate a serious problem:
, Info CSI 00000145 The member file "img11.jpg" could not be repaired. Microsoft-Windows-Shell-Wallpaper-Common… hash matching error
In these types of situations, even if SFC reports that it has repaired “components”, the log may still show that Certain files could not be restored Simply because WRP doesn't protect them or doesn't have a backup copy. It's not always cause for alarm, but it's worth checking if these files are related to actual system failures.
What is SFC and what is DISM in Windows?
The tools SFC (System File Checker) and DISM (Deployment Image Servicing and Management) These are two command-line utilities built into Windows that are used to analyze and repair critical system filesAlthough they share a general objective, they function somewhat differently and complement each other very well.
The command CFS It examines every protected file on the system and compares it to a copy considered “trusted”, stored in the file protection cache (Windows File Protection, WFP). If it detects differences, it marks the file as corrupt and It tries to automatically replace it with a clean copy. from that cache. This is done with commands like sfc /scannow both in online mode (system started) and offline.
For their part, DISM It works at a slightly more global level. Instead of going file by file, it checks the status of the Windows image (the complete installation) and compares it to a clean imagelocal or online. If it finds damaged components, it tries to replace them using that healthy source. DISM is especially useful when the cache used by SFC is also damaged, because repairs the very "base" from which SFC makes copies.
In modern systems (Windows 8, 8.1, 10 and 11) the recommendation is usually that, if SFC doesn't manage to fix everything, you resort to DISM to restore the image, and then run SFC again to complete the repair of individual files.

Typical SFC exit codes and messages
At the end of a sfc /scannowThe tool returns one of several standard messages which give you a quick idea of the status of your system files:
- “Windows Resource Protection did not find any integrity violations”SFC did not detect any anomalies in the protected files. If you continue to experience problems, the cause is most likely related to drivers, third-party software, hardware, or configuration, rather than system files.
- “Windows Resource Protection found corrupt files and successfully repaired them. Details in CBS.log”Windows has located one or more corrupted files and replaced them with healthy copies from the cache. This is a positive result, but you should check if the problem you were experiencing has disappeared.
- “Windows Resource Protection found corrupt files and was unable to repair some of them. Details in CBS.log”: indicates that the The file cache used by SFC is also corrupt or incompleteor that certain files are not protected by WRP. In these cases, it makes sense to use DISM or manual methods.
- “Windows Resource Protection could not perform the requested operation”The scan was interrupted or failed, sometimes due to conflicts with third-party software, disk errors, or permission issues. It's usually a good idea to try again in Safe Mode or after running other repair tools. If you suspect the problem is related to permissions, consult What to do if you can't access settings due to lack of admin privileges.
When the message refers to CBS.logYou can filter entries related to SFC by looking for lines marked with . To do this quickly, you can use the command:
findstr /c:"" %windir%\logs\cbs\cbs.log >sfcdetails.txt
This generates a text file with only the relevant SFC lines, making identification much easier. which specific files have caused problems.
How to run SFC /scannow correctly
On most computers running Windows 7, 8, 8.1, 10, or 11, the basic use of SFC is virtually the same and serves both purposes. check integrity as well as to repair damaged files provided the cache is working correctly.
To run a standard scan on a system that boots normally, you can follow these steps:
- Open the Start menu, type cmd, right click on System symbol and select Run as administrator to have access to high-level permissions.
- Write in the black window sfc /scannow and press Enter to start the full scan of protected files.
The process may take a while depending on the disk speed and the number of files. Finally, check which of the result messages mentioned earlier appears and, if you haven't been able to fix everything, take a look at CBS.log or to the file sfcdetails.txt that you can generate with findstr.
Use SFC when Windows won't boot or from recovery media
If the system is so damaged that you can't even log in, you still have the option to run SFC from the Windows Recovery Environment (WinRE) or from an external medium (USB, installation DVD or manufacturer's recovery partition).
In Windows 10, 11, 8, and 8.1, the general procedure is very similar. Once you boot from the recovery media or from the advanced startup options, you can do the following:
- From the options menu, choose Solve problems and, within, select System symbol to open a console.
- In the console, run a command similar to sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows adjusting the drive letter and Windows path accordingly if the system is on a different partition.
In Windows 7 the workflow is very similar, except that you start from the DVD or USB installation, you select the option Repair the equipmentYou select your Windows installation and enter the command prompt. From there you can use a command like sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows to analyze the installation without starting it up.

When SFC is not enough: DISM and Windows image repair
In many cases, the message “Windows Resource Protection found corrupt files and was unable to repair some of them” means that the Windows image or component store They are corrupted. In those cases, although SFC detects problems, it doesn't have any healthy copies to restore from. That's where DISM comes in.
DISM has several key parameters for check and repair the system image:
- /checkhealthIt checks if there are already any recorded damages in the component warehouse and tells you if There are known problemsBut it doesn't perform a deep scan or repair anything.
- /scanhealth: performs a more thorough check of the image by comparing it to a clean reference and record any potential failuresalthough he still hasn't corrected them.
- /restorehealth: launches a complete analysis and repairs the damage found by consulting a reference image, which may be online (Windows Update) or on local media (WIM or ESD file).
On a computer running Windows 8, 8.1, 10 or 11 normally, a typical command would be:
dism /online /cleanup-image /restorehealth
This command tells DISM to repair the active ("online") image and connect to the Windows Update servers to download any necessary components. It is essential to have a stable internet connectionOtherwise, the process may fail with errors such as "source files could not be found."
If you're working from a repair environment or want to repair a Windows installation mounted on another drive (for example, to recover a corrupted installation from another copy of Windows installed on a second disk), you can use something like:
Dism /Image:D:\ /Cleanup-Image /RestoreHealth
In this case, you replace D:\ by the drive letter and path where the folder is located Windows of the installation you want to fix.
Using DISM with a WIM/ESD image as the source
In some situations, DISM cannot use Windows Update (due to company policies, lack of connection, firewall blocks, etc.) or you need force a specific sourcefor example a Windows ISO with the same version and edition that you have installed.
In these cases, the typical flow is:
- Download the Windows ISO image that corresponds to your installed version (for example, a Windows 10 April 2018 Update If your system shows a version like 10.0.17134.xxx) from the official Microsoft page.
- Mount the ISO on a drive (let's say AND:\) and locate the file install.wim or, in some images, install.esd in the folder
sources. - Check with dism /get-wiminfo Which index corresponds to your edition (Home, Pro, Pro N, etc.):
dism /get-wiminfo /wimfile:E:\sources\install.wim /index:7 - Run DISM explicitly specifying the source:
dism /image:D:\ /cleanup-image /restorehealth /source:wim:E:\sources\install.wim:7 /limitaccess
If despite everything you get errors of the type 0x800f081f (“the source files could not be found”), there is almost always any discrepancy between the version/edition The ISO and your installation, or the path/index of the WIM/ESD file, are incorrect. It is important that the image version matches with the installation (same major build number and same edition), otherwise DISM will refuse to use it as a source.

Damage to drive C:, storage errors, and CHKDSK
When Windows warns you that the storage C: is damaged And, in addition, SFC reports corrupt files that it cannot fix; it is very likely that there is physical or logical problems with the diskBefore continuing with system file repairs, it's advisable to check the volume status.
A classic way to do this is with the built-in tool CHKDSKRun with administrator privileges, it can locate errors in the file system and mark or attempt to recover them. bad sectorsA typical command would be:
chkdsk C: /f /r
The parameter /f It indicates that any errors found should be corrected, and /r It forces a deeper disk scan for bad sectors and recovers readable data. In most cases, CHKDSK will prompt you to restart so it can analyze the system drive before Windows fully loads.
If you prefer something more visual, there are third-party partition managers that They include "Check file system" functions and bad sector checking with just a few clicks. It's crucial that the disk is reasonably healthy before relying on any file repair, because a bad sector can to corrupt restored files again after a short time.
Malware, adware and their impact on system stability
In more than one case, behind persistent Windows errors, service failures, and strange messages in CBS.log lies a malware or adware infection that has modified configurations, injected browser add-ons, or manipulated Registry keys.
Specialized tools such as Malwarebytes or specific utilities such as ZHPCleaner can detect and quarantine potentially unwanted applications (PUPs)invasive toolbars and extensions. In addition, it's advisable to learn how to Analyze a USB drive before opening files.
C:\Users\…\AppData\Local\Google\Chrome\User Data\Profile 1\Sync Data\LevelDB
These files usually correspond to adware remnants in the browser (for example, variants of Babylon and similar programs) which, although not always the direct cause of CBS.log messages, can contribute to poor overall system performance and the team's strange behavior.
A thorough cleaning with these types of tools, followed by a new analysis with CFS and DISMThis can help stabilize the system because Windows repairs won't be hindered by third-party software that interferes with critical services, updates, or processes. It's also advisable to review how it works. Windows Defender SmartScreen if you observe unexpected blockages.
Windows system files: what they are and how they can be damaged
Windows system files are what allow the operating system boots, loads drivers, and manages services and run applications. These include executables, libraries (DLLs), drivers, graphical interface components, and much more. If any of these files are damaged or lost, you can notice... specific errors in programs up to blue screens or complete system crashes.
The usual reasons why these files end up corrupted are quite varied. Among the most common are:
- Defective hardware or softwareOld or physically damaged hard drives and SSDs can corrupt data during writing or reading. Poorly designed applications, faulty drivers, or programs that write to unauthorized areas can also cause corruption.
- Equipment lockups and sudden shutdowns: when the system freezes or shuts down unexpectedly (for example, due to problems with services hosted on svchost), if it coincides with a critical write operation, the affected file may be left in an inconsistent state.
- Malware and virusesMany threats are focused on modify or replace system files to gain persistence or escalate privileges. Even if your antivirus detects them later, they may have already left corrupted files in their wake.
- Disk space problemsWhen the disk is saturated with temporary files, bloatware, or junk, sometimes there isn't enough space left for complete critical updates or write temporary files. This can cause mid-process interruptions and file corruption.
- Power surges or power outagesA sudden power outage in the middle of a system update or disk write operation is a near-certain recipe for disaster for some files become corrupted.
- Interrupted or incomplete updatesIf a Windows update is interrupted (shutdown, network error, forced cancellation), there may be new components only partially installed or libraries out of sync with each other.
Minimize these types of situations, keep your system clean of unnecessary programs, use a good malware protector, and have backups Periodic checks greatly reduce the risk of a specific problem turning into massive system corruption.
Typical scenarios and recommended steps
Many users are encountering the message to check CBS.log after a system failure In similar situations: laptops with Windows pre-installed without a DVD, problems after updating to a new version, "corrupted C: drive" errors, or after detecting malware. Although each case has its nuances, a fairly safe way to proceed would be:
- Check the disk with
chkdskor another utility, to ensure that the drive where Windows is located does not have serious errors or bad sectors. - Run anti-malware tools (Malwarebytes, ZHPCleaner or other trusted programs) to clean adware, PUPs and threats that may interfere with Windows services and updates.
- Run SFC First in normal mode and, if it gives errors, repeat it in Safe Mode or from WinRE using parameters
/offbootdiry/offwindirwhen needed. - If SFC doesn't solve it, launch DISM /online /cleanup-image /restorehealth or, if it is an installation mounted on another partition, specify the image path with
/Image:and, if necessary, a WIM/ESD as source that matches the version. - As a final step, consider a in-place repair or reinstallation Windows, which, although more drastic, usually resolves cases where neither SFC nor DISM manage to restore stability to the system.
When the computer comes with Windows pre-installed and you don't have physical DVDs, the manufacturer usually includes a recovery partition or that you can download the image from the Microsoft website and create a USB installation to use it both as a means of repair and for reinstallation if there is no other option.
In short, although seeing messages about CBS.log, corrupt files, and Windows resource protections It's quite demanding, but the right combination of disk check, malware cleaning, SFC, DISM, and, if necessary, a repair installation is usually enough to get most systems working normally again without having to give up your data or reinstall everything from scratch.
Editor specialized in technology and internet issues with more than ten years of experience in different digital media. I have worked as an editor and content creator for e-commerce, communication, online marketing and advertising companies. I have also written on economics, finance and other sectors websites. My work is also my passion. Now, through my articles in Tecnobits, I try to explore all the news and new opportunities that the world of technology offers us every day to improve our lives.