The sfc /scannow
command (System File Checker) scans the integrity of all protected Windows 7 (XP or Vista as well) system files and replaces incorrect corrupted, changed, or damaged versions with the correct versions if possible.
Running the command requires an elevated command prompt. A log file of the entire operation is created at C:\\WINDOWS\\LOGS\\CBS\\CBS.LOG
.
The following command extracts the \’fixes\’ from the log and places it in a file called sfcdetails.txt.
findstr /c:\"[SR]\" %windir%\\logs\\cbs\\cbs.log > sfcdetails.txt