If you are trying to run sfc /scannow and you may receive the following error message:

“There is a system repair pending which requires reboot to complete. Restart Windows and run sfc again.”

Here is how to resolve the error and get sfc /scannow to run again.

Step 1. Open an Elevated Command Prompt

You can try to run this from an elevated command prompt either in normal or safe mode but if required you may need to run it from the Windows Recovery Console.

Step 2. Run the following command

dism.exe /image:C:\ /cleanup-image /revertpendingactions

Step 3. Run sfc /scannow again

Restart the computer and type in the following again from an elevated command prompt

sfc /scannow


As before you may need to do this in safe mode particularly if the reason for running this command is because the computer has been infected with a virus or malware.