use the system file checker tool to repair missing or corrupted system files

3
System File Checker is a utility in Windows that allows users to scan for corruptions in Windows system files and restore corrupted files. This article describes how to run the System File Checker tool ﴾SFC.exe﴿ to scan your system files and to repair missing or corrupted system files in Windows 8.1, Windows 8, Windows 7 or Windows Vista. If a Windows Resource Protection ﴾WRP﴿ file is missing or is corrupted, Windows may not behave as expected. For example, some Windows functions may not work, or Windows may crash. Run the System File Checker tool ﴾SFC.exe﴿ To do this, follow these steps: 1. Open an elevated command prompt. To do this, do the following as your appropriate: Windows 8.1 or Windows 8 Windows 7 or Windows Vista 2. At the command prompt, type the following command, and then press ENTER: sfc /scannow The sfc /scannow command will scan all protected system files, and replace corrupted files with a cached copy that is located in a compressed folder at %WinDir%\System32\dllcache. The %WinDir% placeholder represents the Windows operating system folder. For example, C:\Windows. Note Do not close this Command Prompt window until the verification is 100% complete. The scan results will be shown after this process is finished. 3. After the process is finished, you may receive one of the following messages: Windows Resource Protection did not find any integrity violations. This means that you do not have any missing or corrupted system files. Windows Resource Protection could not perform the requested operation. To resolve this problem, perform the System File Checker scan in safe mode ﴾http://windows.microsoft.com/en‐in/windows/start‐computer‐safe‐mode﴿ , and make sure that the PendingDeletes and PendingRenames folders exist under %WinDir%\WinSxS\Temp. Windows Resource Protection found corrupt files and successfully repaired them. Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log. To view the detail information about the system file scan and restoration, go to How to view details of the System File Checker process. Windows Resource Protection found corrupt files but was unable to fix some of them. Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log. To repair the corrupted files manually, view details of the System File Checker process to find the corrupted file, and then manually replace the corrupted file with a known good copy Use the System File Checker tool to repair missing or corrupted system files Sign in Support My account By product Downloads Store Contact us

Upload: anirban-bhattacharya

Post on 13-Sep-2015

218 views

Category:

Documents


0 download

DESCRIPTION

Repair Missing or Corrupted System Files

TRANSCRIPT

  • 6/30/2015 UsetheSystemFileCheckertooltorepairmissingorcorruptedsystemfiles

    https://support.microsoft.com/engb/kb/929833 1/3

    System File Checker is a utility in Windows that allows users to scan for corruptions in Windows system files and restore corrupted files. This article describes how to run the System File Checkertool SFC.exe to scan your system files and to repair missing or corrupted system files in Windows 8.1, Windows 8, Windows 7 or Windows Vista. If a Windows Resource Protection WRP file ismissing or is corrupted, Windows may not behave as expected. For example, some Windows functions may not work, or Windows may crash.

    Run the System File Checker tool SFC.exe

    To do this, follow these steps:

    1. Open an elevated command prompt. To do this, do the following as your appropriate:Windows 8.1 or Windows 8Windows 7 or Windows Vista

    2. At the command prompt, type the following command, and then press ENTER:sfc /scannow

    The sfc /scannow command will scan all protected system files, and replace corrupted files with a cached copy that is located in a compressed folder at %WinDir%\System32\dllcache. The %WinDir% placeholder represents the Windows operating system folder. For example, C:\Windows.

    Note Do not close this Command Prompt window until the verification is 100% complete. The scan results will be shown after this process is finished.

    3. After the process is finished, you may receive one of the following messages:

    Windows Resource Protection did not find any integrity violations.

    This means that you do not have any missing or corrupted system files.

    Windows Resource Protection could not perform the requested operation.

    To resolve this problem, perform the System File Checker scan in safe mode http://windows.microsoft.com/enin/windows/startcomputersafemode , and make sure that thePendingDeletes and PendingRenames folders exist under %WinDir%\WinSxS\Temp.

    Windows Resource Protection found corrupt files and successfully repaired them. Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log.

    To view the detail information about the system file scan and restoration, go to How to view details of the System File Checker process.

    Windows Resource Protection found corrupt files but was unable to fix some of them. Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log.

    To repair the corrupted files manually, view details of the System File Checker process to find the corrupted file, and then manually replace the corrupted file with a known good copy

    Use the System File Checker tool to repairmissing or corrupted system files

    Sign in

    Support My account

    By product Downloads Store Contact us

  • 6/30/2015 UsetheSystemFileCheckertooltorepairmissingorcorruptedsystemfiles

    https://support.microsoft.com/engb/kb/929833 2/3

    of the file.

    For more information

    How to view details of the System File Checker process

    To view the details that included in the CBS.Log file, you can copy the information to the Sfcdetails.txt file by using the Findstr command, and then view the details in the Sfcdetails.txt. To dothis, follow these steps:

    1. Open an elevated command prompt as described in the previous step 1.

    2. At the command prompt, type the following command, and then press ENTER:

    Note The Sfcdetails.txt file contains details from every time that the System File Checker tool has been run on the computer. The file includes information about files that were not repairedby the System File Checker tool. Verify the date and time entries to determine the problem files that were found the last time that you ran the System File Checker tool.

    3. Open the Sfcdetails.txt file from your desktop.

    4. The Sfcdetails.txt file uses the following format:Date/Time SFC detailThe following sample log file contains an entry for a file that could not be repaired:

    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 manuallyreplace 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 FileChecker process on that computer to make sure the system file that you intend to copy is a good copy.

    1. 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_NameNote 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.

    2. 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:FNote 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

    findstr/c:"[SR]"%windir%\Logs\CBS\CBS.log>"%userprofile%\Desktop\sfcdetails.txt"

    2007011212:10:42,InfoCSI00000008[SR]Cannotrepairmemberfile[l:34{17}]"Accessibility.dll"ofAccessibility,Version=6.0.6000.16386,pA=PROCESSOR_ARCHITECTURE_MSIL(8),Cultureneutral,VersionScopeneutral,PublicKeyToken={l:8b:b03f5f7f11d50a3a},Typeneutral,TypeNameneutral,PublicKeyneutralinthestore,fileismissing

  • 6/30/2015 UsetheSystemFileCheckertooltorepairmissingorcorruptedsystemfiles

    https://support.microsoft.com/engb/kb/929833 3/3

    administrators:F.

    3. 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 DestinationNote 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 filename of the corrupted file. For example, type copy E:\temp\jscript.dll C:\windows\system32\jscript.dll.

    About this article

    Article ID: 929833Last review: 03 October 2014Applies to: Windows 8.1, Windows 8.1 Enterprise, Windows 8.1 Pro, Windows 8, Windows 8 Enterprise, Windows 8 Pro, Windows 7 Enterprise, Windows 7 Home Basic, Windows 7 HomePremium, Windows 7 Professional, Windows 7 Starter, Windows 7 Ultimate, Windows Vista Enterprise 64bit Edition, Windows Vista Ultimate 64bit Edition, Windows Vista Business, WindowsVista Business 64bit Edition, Windows Vista Enterprise, Windows Vista Ultimate

    Give Feedback