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

Page 1 of 2 12 LastLast

  1. Posts : 242
    Windows 7
       #1

    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 Computer


  2. Posts : 41
    Microsoft Windows 7 Ultimate x64
       #2

    More about System File Checker
    Use command prompt to get the log:
    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:
    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 Computer


  3. whs
    Posts : 26,213
    Vista, Windows7, Mint Mate, Zorin, Windows 8
       #3

    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 Computer


  4. Posts : 242
    Windows 7
    Thread Starter
       #4

    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 Computer


  5. Posts : 41
    Microsoft Windows 7 Ultimate x64
       #5

    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?
    Last edited by Supportacus; 24 Apr 2015 at 06:47.
      My Computer


  6. Posts : 242
    Windows 7
    Thread Starter
       #6

    whs said:
    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 Computer


  7. Posts : 41
    Microsoft Windows 7 Ultimate x64
       #7

    Nisko said:
    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 Computer


  8. whs
    Posts : 26,213
    Vista, Windows7, Mint Mate, Zorin, Windows 8
       #8

    If you are worried about startup/repair, make an image or two before you run it. Then you can always backpaddle.
      My Computer


  9. Posts : 4,776
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #9

    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 Computer


  10. Posts : 242
    Windows 7
    Thread Starter
       #10

    Supportacus said:
    Nisko said:
    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 Computer


 
Page 1 of 2 12 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 14:58.
Find Us