Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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


08 Aug 2013   #1

Windows 7 Professional 64 Bit
 
 
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 System SpecsSystem Spec
.

08 Aug 2013   #2

Windows 7 Home Premium
 
 

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 System SpecsSystem Spec
08 Aug 2013   #3

Windows 7 Ultimate 32-Bit & Windows 7 Ultimate 64-Bit
 
 

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 System SpecsSystem Spec
.


09 Aug 2013   #4

Windows 7 Professional 64 Bit
 
 

Quote   Quote: Originally Posted by cottonball View Post
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


Attached Files
File Type: txt sfcdetails.txt (61.4 KB, 38 views)
My System SpecsSystem Spec
09 Aug 2013   #5

Windows 7 Home Premium
 
 

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 System SpecsSystem Spec
01 Jan 2014   #6
Microsoft MVP

Windows 7 Ultimate X64 SP1
 
 

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 System SpecsSystem Spec
01 Jan 2014   #7

Windows 7 Professional 64 Bit
 
 

Quote   Quote: Originally Posted by Britton30 View Post
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 System SpecsSystem Spec
02 Jan 2014   #8

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro x64
 
 

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
My System SpecsSystem Spec
02 Jan 2014   #9

Windows 7 Professional 64 Bit
 
 

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 System SpecsSystem Spec
02 Jan 2014   #10
Microsoft MVP

Windows 7 Ultimate X64 SP1
 
 

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 System SpecsSystem Spec
Reply

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




Thread Tools



Similar help and support threads for2: How do you fix corrupted files found by SFC /SCANNOW?
Thread Forum
sfc /scannow cant solve corrupted files General Discussion
Ran sfc /scannow, CBS log shows corrupted files - how to fix? Performance & Maintenance
SFC /scannow reports 6 .mui source files corrupted in store Performance & Maintenance
Solved Sfc /Scannow found corrupt files but was unable to fix some of them. Performance & Maintenance
Solved SFC SCANNOW Found 2 Corrupted Files General Discussion
scannow reports corrupted files it can't fix Performance & Maintenance

Our Sites

Site Links

About Us

Find 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 04:00 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33