Use System File Checker to Repair Missing or Corrupt Files in Windows 7

Did it happen to you that your computer failed to boot properly or after boot it flashed some warning message saying that your computer is missing some system file ?

One of the reasons for Windows boot failure could be that some of the system files of Windows got corrupted due to hardware failure or other unknown reasons. The situation becomes worse if your computer automatically restarts and you lose all your unsaved data on the primary Windows partition.

In this case you should check out System File Checker (SFC.exe) – it’s a command line system tool which scans your computer’s system files and figures out the missing or corrupted files and replaces the damaged or missing files.

How To Use System File Checker To Fix Missing Windows System File

1. First you need to run command prompt as an administrator. To do so, open start menu, type cmd in the search box, right click on cmd and select “Run as administrator”.

In the command prompt window, type sfc /scannow as a command and press “Enter”. It will start system scan and you can see the progress right inside the command prompt window, as shown below:

clip_image002

2. When the system scan is complete, you will see which of the system files were corrupted and the reasons behind the malfunction.

In my case the system file checker tool (SVC.exe) displayed “Windows Resource Protections did not find any integrity violation”. It means my computer has no missing or corrupt system file.

clip_image003

How to solve the problem if SFC tool fails to replace corrupted file

The System file checker tool automatically fixes all the missing Windows files that were corrupted because of software installatons or you accidentally deleted them.

But suppose your computer finds any corrupt or missing file and fails to replace it (sometimes it happens). In that case, you can always check those files that could not be repaired by the System File Checker tool.  Following is a method to do that:

1. Open the command prompt window with administrative priviledges.

2. Now type a command findstr /C:”[SR] Cannot repair member file” %windir%\logs\cbs\cbs.log >sfcdetails.txt and press Enter.

clip_image004

3. Go to C –> Windows –> System 32 folder and open a file sfcdetails.txt. It is a log file that contains entries for a file that could not be repaired by SFC.exe tool. Note down the file name and the location of file.

4. In the command prompt, type this command

takeown /f C:\windows\system32\filename and press Enter. (filename is the name of missing file)

5. Now type type icacls C:\windows\system32\abc.dll /grant administrators:F as a command and press Enter (replace the abc.dll with filename in command)

6. Now open Windows explorer and find the copy of that file by searching it using the search box. Suppose you want to find a copy of System.Runtime.Remoting.dll file. You have to type the file name in the search box and it will show all the files inside that folder (check the screenshot below).

clip_image005

7. Note the location of the duplicate file. You have to copy this file to the missing file location.

7. Type command Copy Path_And_File_Name_Of_Source_FilePath_And_File_Name_Of_Destination to replace the file with copy of the file.

For example type copy C:\windows\Microsoft.NET\framework\abc.dll C:\windows\system32\abc.dll to copy abc.dll file from one location to another. Remember you have to change the file name with abc.dll with the missing file name.

Following the above method, you can replace invalid or corrupt windows files from command prompt and solve your computer issues.


Related articles

How To Disable Chrome Incognito Mode On Windows And Mac

How To Watch Netflix With Friends From Remote Distance

How To Mirror Or Flip Photos On iPhone And iPad

Fix Instagram Keeps Crashing Or Not Working Issue

Leave a Reply

Your email address will not be published. Required fields are marked *