New
#1
Make the CBS.log useable
With the great help of Shawn, I was able to figure out how to reduce the massive data amounts of the CBS.log to the records of interest - those that the System file checker fixed and could not fix. With that, I have made a little tutorial about the whole process which I thought might be useful for reference:
If you encounter a strange behavior of your system or if the system sends you a message indicating that some system file is damaged, the System File Checker might be able to help. Here is what you do:
Open an elevated Command Prompt (go to Start > All Programs > Accessories > right click on Command Prompt > Run as Administrator).
Type sfc /scannow into the Command Prompt window – note the blank in front of the slash (/). This will run for a while.
When it is done, you can end up with the following different results:
1. SFC did not find any corrupted files
2. SFC did find corrupted files and was able to fix the files
3. SFC was not able to fix all corrupted files
In the cases 2 and 3, SFC stores the results in the CBS.log which you find in C:\Windows\Logs\CBS\CBS.log. This is a massive file of approximately 5MB and if you care to see it all, you must send CBS.log to one of your own folders from where you can double click on it. It will then open with Notepad. Note: You cannot open it inside the CBS folder. You will get an Access denied message.
But most likely you are only interested in the part that shows the corrupted files that were fixed – or not fixed. For that you need a significant data reduction. You do that as follows:
Open another elevated Command Prompt and paste this command into it:
findstr /c:"[SR]" %windir%\logs\cbs\cbs.log
This will show all the files you want to see in the Command Prompt window.
Since that window is not very practical for a detailed study, you want to paste the content into a Notepad, Wordpad or Word file.
For that you right click on the Command Prompt window (any place is good) and click Select all. Then you click on the selected text in the window. Now this whole text is stored on the clipboard and you can paste it into a document file where you can analyze it.
A word of warning: If you have tweaked your system and modified system files, the System File Checker may undo your tweaks.
Last edited by whs; 17 Jan 2010 at 21:24.