Saturday, 24 May 2014

SFC Scan Not Working in Win 7 [Solved]

When you run the System File Checker using the /Scannow parameter from an elevated Command Prompt, the following error may occur. Additionally, you may experience problems running Windows Installer Setup files and installing fixes from Windows Update.

Windows Resource Protection could not start the repair service

Solution 1 – Windows Vista and Windows 7

This happens if the TrustedInstaller (Windows Modules Installer) service is disabled. Use these steps to reset the service startup type.

1. Click Start, type Services.msc
2. Double-click Windows Modules Installer
3. Set its Startup type to Manual
4. Click OK.



Solution 2 – Windows Vista and Windows 7

If you are using any kind of boot image/disk to boot up, you will have to use the "offline" switches (OFFBOOTDIR & OFFWINDIR) along with the SFC /SCANNOW command in order to start repairing your installation properly.

In description below, the boot partition letter was C: and system partition was D: ...As of that - the proper command line to run SFC successfully was:
sfc /SCANNOW /OFFBOOTDIR=c:\ /OFFWINDIR=d:\Windows
Successful scan for integrity of all protected system files and replacement of incorrect versions with correct Microsoft versions then looks like this:
X:\sources>sfc /SCANNOW /OFFBOOTDIR=c:\ /OFFWINDIR=d:\Windows

Beginning system scan. This process will take some time.

Windows Resource Protection found corrupt files and successfully repaired them. Details are included in the CBS.log
windir\Logs\CBS\CBS.log. For example C:\Windows\Logs\CBS\CBS.log


Solution 3- Windows 7 (Recommended solution: Works like Magic if using Windows 7)

1) Make the following change to your registry:

HKEY_LOCAL_MACHINE \ System \ CurrentControlSet \ Control
Key: RegistrySizeLimit
Type: REG_DWORD
Value: 0xffffff (4294967295)

2) Reboot

3) As a Administrator open a Command Prompt and run “SFC /SCANNOW”. The command should complete successfully and if any errors were found, they should be corrected.