How do you fix corrupted files found by SFC /SCANNOW?

Page 1 of 10 123 ... LastLast

  1. Posts : 77
    Windows 7 Professional 64 Bit
       #1

    How do you fix corrupted files found by SFC /SCANNOW?


    I am using Windows 7 Professional Professional. About 2 weeks ago my machine started "not responding" when I would run my various software. It progressed to a severe condition and I would have to power down with the power button.

    I have run ESET NOD32 Anti-Virus 6 virus scans, Malware Bytes Anti Malware free version and SuperAnti Spyware free version. All of the scans were clean with no infections. I have also run CCleaner.

    Last night I ran SFC /SCANNOW four times. Each time the result was "Windows Resource Protection found corrupt files but was unable to fix some of them." Before I ran the last scan I deleted the CBS log that contains the scan results. After the fourth and last scan I opened the CBS log which is l located Local Disk C/Windows/Logs/CBS. The log file was 331 pages long - too long to print out. I tried to find where it told me which files SCANNOW could not fix but I didn't really understand much of the log file contents.

    After I ran the four scans the machine ran well today with no "Not Responding" issues - I'm keeping my fingers crossed.

    A few years ago when I was running XP Pro I could insert the Windows installation CD into the computer and when SCANNOW ran it would pull the necessary files off of the installation CD if it found a corrupt file.

    I have the original Windows 7 Pro 64 bit installation disk. Is there a way to fix corrupt files that SCANNOW is not able to "automatically" fix on it's own?

    Thanks very much for your help.

    Bill
      My Computer


  2. Posts : 2,470
    Windows 7 Home Premium
       #2

    Give this a try. The file was created by kronckew, one of our colleagues. Tested it on my Laptop, and it worked!

    Boot to Safe Mode.

    Go to Start > All Programs > Accessories > Command Prompt
    Right-click the Command Prompt, and select: Run as Administrator

    At the Command Prompt, copy/paste (with the mouse) the following text inside the code box below, and press: Enter

    Code:
     
    @echo off
    rem delete old files
    del /q %windir%\logs\cbs\cbs.log
    del /q c:\sfcdetails.txt
    rem run sfc
    sfc /scannow
    rem filter out non essential junk from the cbs.log
    findstr /c:"[SR]" %windir%\logs\cbs\cbs.log >c:\sfcdetails.txt 
    rem open details in notepad
    notepad c:\sfcdetails.txt
    rem optional command to shut down & restart pc after running. this may be needed if
    rem sfc replaces some critical files. uncomment (remove the 'rem') to activate.
    rem shutdown -r
    exit
    When sfc is done, a file named sfcdetails.txt appears.
    Please save the sfcdetails.txt file to the Desktop, and post it in your reply.


    To run the program a second time, open the Command Prompt, right-click and select: Run as Administrator

    This time, type in the following:

    Code:
    startsfc
    Press: Enter

    When done, a file named sfcdetails.txt appears once again.

    Please save the file to the Desktop, as sfcdetails2.txt, and post it in your reply.
      My Computer


  3. Posts : 6,830
    Windows 7 Ultimate 32-Bit & Windows 7 Ultimate 64-Bit
       #3

    Run SFC 3 times with restarts in between each of them then upload the CBS.log located in C:\Windows\Logs\CBS\CBS.log
      My Computer


  4. Posts : 77
    Windows 7 Professional 64 Bit
    Thread Starter
       #4

    cottonball said:
    Give this a try. The file was created by kronckew, one of our colleagues. Tested it on my Laptop, and it worked!

    Boot to Safe Mode.

    Go to Start > All Programs > Accessories > Command Prompt
    Right-click the Command Prompt, and select: Run as Administrator

    At the Command Prompt, copy/paste (with the mouse) the following text inside the code box below, and press: Enter

    Code:
     
    @echo off
    rem delete old files
    del /q %windir%\logs\cbs\cbs.log
    del /q c:\sfcdetails.txt
    rem run sfc
    sfc /scannow
    rem filter out non essential junk from the cbs.log
    findstr /c:"[SR]" %windir%\logs\cbs\cbs.log >c:\sfcdetails.txt 
    rem open details in notepad
    notepad c:\sfcdetails.txt
    rem optional command to shut down & restart pc after running. this may be needed if
    rem sfc replaces some critical files. uncomment (remove the 'rem') to activate.
    rem shutdown -r
    exit
    When sfc is done, a file named sfcdetails.txt appears.
    Please save the sfcdetails.txt file to the Desktop, and post it in your reply.


    To run the program a second time, open the Command Prompt, right-click and select: Run as Administrator

    This time, type in the following:

    Code:
    startsfc
    Press: Enter

    When done, a file named sfcdetails.txt appears once again.

    Please save the file to the Desktop, as sfcdetails2.txt, and post it in your reply.

    Cottonball;

    Thanks for your reply. I used kronckew's small program and it worked great. I have attached the sfcdetails.txt to my post as you requested. I tried to run the program a second time as you suggested. When I opened the Command Prompt, right-click and select: Run as Administrator and typed in startsfc it came back to me saying the command was not valid.

    Last night I did run the SFC /SCANNOW four times with a reboot in between each scan.

    I hope you can read the sfcdetails.txt file and tell me how to fix/replace any corrupted files that SCANNOW couldn't fix.

    Thanks very much for all of your help.

    Bill
    How do you fix corrupted files found by SFC /SCANNOW? Attached Files
      My Computer


  5. Posts : 2,470
    Windows 7 Home Premium
       #5

    artmanphoto,

    Let me tell you up-front that sfc /scannow results and the repair of corrupted system files that SFC cannot fix is an area in which my knowledge is just average. The post above was done to make things easier for you, since it is something I used, and it worked.

    To replace a corrupted system file that SFC cannot fix, would look at the following resource to extract a new copy directly from your Windows 7 installation DVD: Extract Files from Windows 7 Installation DVD

    or...

    You may be a step ahead with the files that cannot be repaired by doing a Repair Installation following these steps: Repair Install

    Someone with expertise in this area will hopefully provide you additional assistance.
      My Computer


  6. Posts : 24,479
    Windows 7 Ultimate X64 SP1
       #6

    Hold on, we have a expert on fixing corrupt files, I'll give him a shout, Tom982. Give him a couple days, he's a busy student.
    Don't reinstall or anything just yet.

    It's also a myth that running sfc 3 time will help. If the file checker can't find the good file in the winsxs folder, no number of time will help.
      My Computer


  7. Posts : 77
    Windows 7 Professional 64 Bit
    Thread Starter
       #7

    Britton30 said:
    Hold on, we have a expert on fixing corrupt files, I'll give him a shout, Tom982. Give him a couple days, he's a busy student.
    Don't reinstall or anything just yet.

    It's also a myth that running sfc 3 time will help. If the file checker can't find the good file in the winsxs folder, no number of time will help.
    Britton30, thanks very much. I will really appreciate any help.

    Bill
      My Computer


  8. Posts : 2,663
    Windows 8.1 Pro x64
       #8

    Hi Bill,

    Before we begin I just wanted to mention something Gary touched on. I'm currently a student doing a Maths degree and have 4 crucial exams coming up, of which my first is on the 13th, so my time is very limited at the moment and I might not be able to post much (once a day minimum), but I will get you up and running again! So just hang in there and we'll fix this as soon as possible! If you haven't heard from me in a while, feel free to shoot me a PM to remind me - at the last count, I have 24 tabs open that I need to reply to so it's quite easy to lose one in the mix.

    Hmm, strangely in all 653,711 lines of your last CBS.log I can't see any sign of SFC being run so let's run it again (now redundant) and get a new log:

    SFC Scan

    1. Click on the Start button and in the search box, type Command Prompt
    2. When you see Command Prompt on the list, right-click on it and select Run as administrator
    3. When command prompt opens, copy and paste the following commands into it, press enter after each

      del %windir%\Logs\CBS\CBS.log

      sfc /scannow

      Wait for this to finish before you continue

      copy %windir%\logs\cbs\cbs.log %userprofile%\Desktop\cbs.txt

    4. This will create a file, cbs.txt on your Desktop. Please zip it up and attach this to your next post.


    Tom
    Last edited by tom982; 02 Jan 2014 at 19:39.
      My Computer


  9. Posts : 77
    Windows 7 Professional 64 Bit
    Thread Starter
       #9

    Hi Tom;

    Thanks very much for your quick reply - I really appreciate your help. I totally understand about your finals. I would like to try to solve my issues but I am very willing to go slowly when you have the time as this is not an emergency. As you recommend I will run SFC and get back to you.]

    Bill
      My Computer


  10. Posts : 24,479
    Windows 7 Ultimate X64 SP1
       #10

    It will work out for you, much better than a reinstall. Read Tom's instructions carefully and don't miss a step...like I did the first time.
      My Computer


 
Page 1 of 10 123 ... LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:06.
Find Us