Re: Windows 8 How to use SFC /SCANNOW command in Windows 8Windows 8
I probably should publish a tutorial on this. I have a draft, it just needs proof reading and tweaking. Just need to find the time!
There is a balance between including too much, and making the log unreadable for the normal person, and not including enough.
Personally, I like taking the entire log so that I know that I have everything, rather than being slightly in doubt as to whether I have everything. In addition, I screen all CBS.logs I get (even just SFC ones) for non-SFC Windows Update problems.
I revise this every so often, but here is my current favourite SFC only log:
Code:
findstr /C:"[SR]" /c:"Hashes for file member" /c:"Manifest hash for component" /c:"Unable to load manifest for component" /c:"Expected:" /c:"Found:" /c:"Store corruption detected in function" /c:"FileHashMismatch on resource"/c:"WARNING: Deleting invalid luacdf" /c:"Repair results created:" /c:"Looking for manifest in Backup Dir..." %windir%\logs\cbs\cbs.log > %userprofile%\Desktop\sfcreport.txt
and with "Error " as well (notice the space at the end, this was intentional). This shows non-SFC related errors also. I personally prefer it, as I might just pick something else up. However, care needs to be taken, as not all errors need to be fixed. It just requires looking over and assessing. It also has the advantage of picking up all errors during the SFC run. These are rare, but do happen. Sometimes they prematurely end SFC, othertimes a certain file cannot be scanned. Don't miss the fact that it might be corrupt. It couldn't be scanned, it didn't come back clean. I have included the most common error in the first report ("Unable to load manifest for component"), but there are others. If you detect one, with the exception of "Unable to load manifest for component", a whole CBS.log may need to be taken.
Code:
findstr /C:"[SR]" /c:"Hashes for file member" /c:"Manifest hash for component" /c:"Unable to load manifest for component" /c:"Expected:" /c:"Found:" /c:"Store corruption detected in function" /c:"FileHashMismatch on resource"/c:"WARNING: Deleting invalid luacdf" /c:"Repair results created:" /c:"Looking for manifest in Backup Dir..." /c:"Error " %windir%\logs\cbs\cbs.log > %userprofile%\Desktop\sfcreport.txt
Oh, and I dislike the Microsoft KB article on SFC logs. It is
extremely incomplete, and in fact is so incomplete that it is next to useless in analysing a log with an actual error in it
My CBS tutorial also explains how I analyse a log sometimes with >100,000 lines in <1 minute. More details to be released soon.
Richard