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 restore system files when System File Checker won't work

23 Apr 2015   #1
Nisko

Windows 7
 
 
How restore system files when System File Checker won't work

I have run System File Checker (sfc) and it found many files that were corrupt and could not be repaired. My PC appears to be running fine - but I am anal about repairing anything that is wrong on my PC. The only suggestion I've received so far was to perform a Repair Install. That's very risky. Does anyone know of a sure fire way of repairing my corrupt files so that sfc /scannow can run again without a hitch? Thank you..................


My System SpecsSystem Spec
.
23 Apr 2015   #2
Supportacus

Microsoft Windows 7 Ultimate x64
 
 

More about System File Checker
Use command prompt to get the log:
Quote:
findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt"
Then follow the corrupted file's path and search for a known good copy of the files (Be careful!)
It is all mentioned the link...
If you are too lazy to read it here:
Quote:
How to manually replace a corrupted system file with a known good copy of the file
After you determine which system file was corrupted and could not be repaired through the detail information in the Sfcdetails.txt file, find where the corrupted file located, and then manually replace the corrupted file with a known good copy of the file. To do this, follow these steps:

Note You may be able to get a known good copy of the system file from another computer that is running the same version of Windows with your computer. You may perform a System File Checker process on that computer to make sure the system file that you intend to copy is a good copy.
Take administrative ownership of the corrupted system file. To do this, at an elevated command prompt, copy and then paste (or type) the following command, and then press ENTER:
takeown /f Path_And_File_Name
Note The Path_And_File_Name placeholder represents the path and the file name of the corrupted file. For example, type takeown /f C:\windows\system32\jscript.dll.
Grant administrators full access to the corrupted system file. To do this, copy and paste (or type) the following command, and then press ENTER:
icacls Path_And_File_Name /GRANT ADMINISTRATORS:F
Note The Path_And_File_Name placeholder represents the path and the file name of the corrupted file. For example, type icacls C:\windows\system32\jscript.dll /grant administrators:F.
Replace the corrupted system file with a known good copy of the file. To do this, copy and paste (or type) the following command, and then press ENTER:
Copy Source_File Destination
Note The Source_File placeholder represents the path and file name of the known good copy of the file on your computer, and the Destination placeholder represents the path and file name of the corrupted file. For example, type copy E:\temp\jscript.dll C:\windows\system32\jscript.dll.
My System SpecsSystem Spec
23 Apr 2015   #3
whs
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8
 
 

Repair/install is just another level of SFC and no more risky than that.

The SFC tries to repair the files from the mirror where copies of the most important - but not all - system files are kept. The installation disc has a lot more files that it can repair because it has all system files at it's disposal.

However, any files from installed programs cannot be repaired with either method.
My System SpecsSystem Spec
.

23 Apr 2015   #4
Nisko

Windows 7
 
 

Thank you both. I should have mentioned in my original post that I have a dual boot system. I haven't used the second OS yet and sfc works fine on it - it is a clean system and was made from the same installation disk that my primary OS was made from. The problem I have with replacing my corrupted files with good ones is: 1. I have at least 40 corrupted files. I think that's way too many to replace one by one. 2. Even if I replace them, I know that System File Checker uses a cache on my system from which to get good files when sfc finds corrupt files. How do I repair the cache? 3. I have heard that a Repair Install is very risky and might kill my current OS if I try it. Is this true? I can't afford a dead OS because it took me two full years to get all the programs I want installed with all the settings I want. I'm scared - not lazy.

Comments?
My System SpecsSystem Spec
23 Apr 2015   #5
Supportacus

Microsoft Windows 7 Ultimate x64
 
 

Comment here...
I don't think it is risky if the sfc tool can find and replace the files correctly.
If you think you can't deal with manually replacing files then just install windows again (Better than getting all fatal to the end)
SFC most likely will find a replacement if the problem is in THE windows system...Not from third party .sys
Can you please share the log?
My System SpecsSystem Spec
23 Apr 2015   #6
Nisko

Windows 7
 
 

Quote   Quote: Originally Posted by whs View Post
Repair/install is just another level of SFC and no more risky than that.

The SFC tries to repair the files from the mirror where copies of the most important - but not all - system files are kept. The installation disc has a lot more files that it can repair because it has all system files at it's disposal.

However, any files from installed programs cannot be repaired with either method.
I understand your last comment about files from installed programs cannot be repaired by either method. I'm not concerned about this. I only want to correct the corrupted system files - and the "mirror." The "mirror" being corrected is very important to me.

In Windows XP, repairing corrupted files was a simple procedure. I wonder why Microsoft, in its' wisdom, made it so difficult in Windows 7!!!
My System SpecsSystem Spec
23 Apr 2015   #7
Supportacus

Microsoft Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by Nisko View Post
Thank you both. I should have mentioned in my original post that I have a dual boot system. I haven't used the second OS yet and sfc works fine on it - it is a clean system and was made from the same installation disk that my primary OS was made from. The problem I have with replacing my corrupted files with good ones is: 1. I have at least 40 corrupted files. I think that's way too many to replace one by one. 2. Even if I replace them, I know that System File Checker uses a cache on my system from which to get good files when sfc finds corrupt files. How do I repair the cache? 3. I have heard that a Repair Install is very risky and might kill my current OS if I try it. Is this true? I can't afford a dead OS because it took me two full years to get all the programs I want installed with all the settings I want. I'm scared - not lazy.

Comments?
Don't be scared...It is not scary unless it is affecting your computer performance (Still reinstall the system and you shouldn't copy any program from the OS but it is okay to copy your personal data)
Laughing out loud...I am the lazy one...Things got so easy now!
You said same installation disk, eh? Copy the good files from the good OS to a usb and get it to the bad OS and do as I mentioned in the first post....And no...No fatal errors using SFC (If you know what you are doing)..I got to that knowing that you have no performance issues. Just a simple question might be relative...Have you changed anything using task manager?
My System SpecsSystem Spec
23 Apr 2015   #8
whs
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8
 
 

If you are worried about startup/repair, make an image or two before you run it. Then you can always backpaddle.
My System SpecsSystem Spec
23 Apr 2015   #9
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

My thoughts:

If I run system file checker on my machine I can guarantee that it will find what it thinks are corrupt/ damaged system files that need to be replaced. This is a result of applying quite a few custom settings and tweaks and disabling some stuff. Repairing involves loosing some of those custom tweaks/ settings and doesn't actually fix anything.

If your machine is working fine with no error messages don't worry about SFC. Just upload the log for experts to look at. As for replacing system files I tend to use something like https://www.technibble.com/sysmate-r...-system-files/

I've never needed to replace a corrupt system file but have replaced system files for tweaking purposes.

My replaced system files backup folder:

How restore system files when System File Checker won't work-sysmate_backup.jpg

Take photoviewer.dll as an example. SFC will want to replace it as it doesn't match the original file. I've modified it to get a metro style photo viewer in Windows 7.

How restore system files when System File Checker won't work-windows-photo-viewer.jpg

So what I'm saying is don't just assume that SFC detecting problems actually means that anyting needs fixing. Check first before repairing!


My System SpecsSystem Spec
23 Apr 2015   #10
Nisko

Windows 7
 
 

Quote   Quote: Originally Posted by Supportacus View Post
Quote   Quote: Originally Posted by Nisko View Post
Thank you both. I should have mentioned in my original post that I have a dual boot system. I haven't used the second OS yet and sfc works fine on it - it is a clean system and was made from the same installation disk that my primary OS was made from. The problem I have with replacing my corrupted files with good ones is: 1. I have at least 40 corrupted files. I think that's way too many to replace one by one. 2. Even if I replace them, I know that System File Checker uses a cache on my system from which to get good files when sfc finds corrupt files. How do I repair the cache? 3. I have heard that a Repair Install is very risky and might kill my current OS if I try it. Is this true? I can't afford a dead OS because it took me two full years to get all the programs I want installed with all the settings I want. I'm scared - not lazy.

Comments?
Don't be scared...It is not scary unless it is affecting your computer performance (Still reinstall the system and you shouldn't copy any program from the OS but it is okay to copy your personal data)

I'm afraid that it WILL affect my computer performance. I have over 100 programs in my OS. What now? My personal data is on a separate drive.

Laughing out loud...I am the lazy one...Things got so easy now!
You said same installation disk, eh? Copy the good files from the good OS to a usb and get it to the bad OS and do as I mentioned in the first post

How do I find the files on the Installation disk? They won't have the same file names - and will be compressed.

....And no...No fatal errors using SFC (If you know what you are doing)..I got to that knowing that you have no performance issues. Just a simple question might be relative...Have you changed anything using task manager?
No changes using Task Manager.
My System SpecsSystem Spec
Reply

 How restore system files when System File Checker won't work




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
System file checker
Does anyone have a link where I can find a list of all the commands ( and what they do) for System file checker in Windows 7 ? thank you Joe
Performance & Maintenance
system file checker
long story short l have a external drive which keeps on telling me to scan it, l havent the space to backup the content on it and reformat etc and whenever l use the file system scanning tools it seems to stop at a specific record at which point l have to disconnect and reconnect the drive again to...
Performance & Maintenance
Corrupt files in System File Checker - now what?
Hello, In trying to fix a still unsolved problem with my WLAN network connection (detailed here, if relevant: WLAN issue - WiFi can't connect - Tech Support Guy Forums), it was concluded that a main problem is corrupt files identified by the System Files checker. This is the message I get...
Performance & Maintenance
User sets file association and now system restore does not work
Hi all, On a brand new laptop the user copied some word files over, and they opened on the new computer just fine. Then they copied some more .doc files and they could not open them, so (they claim) they choose word as the default file association (which is fine, except it should not have...
General Discussion
System File Checker Help Please
I ran sfc /scannow 3 times and it showed I had some errors. I use a program fromto occasionally make an updated Win 7 x64 Boot Disk. I wonder how I can fix these things without going through the nuisance of a repair install? Isn't there a program or script I can run to parse the results to an...
Performance & Maintenance
System File Checker
I am trying to use system file checker tool (sfc.exe) and I am running win7 ult 64bit. I am CERTAIN that I have corrupted files in windows. When I try to use any of the programs like Windows Experience, Generate a system health report, or look at files in Event Log(event log is unable to give me...
BSOD Help and Support


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 00:11.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App