Skip to main content

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, typecmd 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:
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.
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.

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).
7. Note the location of the duplicate file. You have to copy this file to the missing file location.
8. Type command Copy Path_And_File_Name_Of_Source_FilePath_And_File_Name_Of_Destinationto 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.







Comments

Popular posts from this blog

The 101 Most Useful Websites

Olive Nexus VR-9: Your handy Wi-Fi router

As modern netizens, getting online is probably a vital part of your day. Olive's Nexus VR-9 is a portable Wi-Fi router that makes it possible to share a single connection with all your Wi-Fi enabled gadgets. All you need is a high-speed USB data card.

The idea is simple: plug in a data card into the router's USB port and it instantly creates a Wi-Fi hotspot wherever you are. At home or in office, multiple laptops can share the same data connection. You could provide wireless internet for Wi-Fi phones, iPods and tablets. On the move, your laptop and portable gadget continue to have internet access as long as your battery lasts.

It comes with a wall charger to keep plugged in at home/office. On the move, the battery is good enough to power it for a respectable 3 hours and 50 minutes (at least two devices were connected throughout this time in our testing). Aside from the portability, the biggest advantage is the savings it can offer.
Priced at 3,500, the Olive Nexus VR-9 could e…

Kingston Launches HyperX Plug and Play RAM for Intel PCs

Kingston has released its new HyperX plug and play (PnP) series which is a collection of memory kits that utilize modules which are capable of working at frequencies of either 1,600 MHz or 1,866 MHz. This memory module is designed specifically for use with desktops and laptops powered by the latest generation of Intel Core i5 or Core i7 central processing units.

There are six kits in total, all of them composed of two kits, meaning that modules of 2 GB and 4 GB are used. There are two Dual in-line Memory Module (DIMM) kits, while the other four come in the Small Outline In-line Memory Module (SODIMM) form factor.

The modules are programmed using Joint Electron Devices Engineering Council (JEDEC) compliant settings, allowing 1600MHz and 1866MHz frequency support. It is as simple as plugging in the memory and turning on the machine, as the system automatically recognizes faster memory speed with no further basic input/output system (BIOS) settings required.

Mark Tekunoff, …