Home > Uncategorized > SOLVED: SFC says “There is a system repair pending…”

SOLVED: SFC says “There is a system repair pending…”

Frequently when I’ve removed a virus, I want or need to run the SFC /scannow repair program. Quite often it seems, in Windows 7 and Vista, the command can’t run an returns an error message of:

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

Try as one might and regardless of whether you can boot into Safe Mode or are using the Recovery Console, this error just won’t go away. However, I have found a command finally that overcomes this problem. On a machine that I was working on today, from the Recovery Console command prompt I entered:

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

After that, I rebooted the machine into Safe Mode (this particular computer would boot to Safe Mode but is BSODing when booted to normal mode). In Safe Mode, I opened an elevated command prompted and issued the SFC /scannow command and it now runs.

Categories: Uncategorized Tags: ,
  1. December 6th, 2012 at 16:18 | #1

    This info has helped me in the past. Tonight I was stuck when it didn’t work. After 2 hours of trial and error and many sites later, I came across the following info. It worked. Wanted to share it here to provide an additional possible solution for the people finding your site.

    Einstein stated the definition of insanity was doing the same thing over and over expecting a different result. He obviously never worked on a PC. :)

    Next, we will perform a sfc /scannow using the offline settings for the boot directory and windows directory. If you use the incorrect options, two errors are common,

    “Windows Resource Protection could not start the Repair service.”

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

    The first error indicates an invalid boot or system partition path. The second indicates that incorrect arguments wre given, or there is a file that needs to be removed or renamed in the \Windows\winsxs\pending.xml path. For this installation, this is D:\Windows\winsxs\pending.xml.

    For this particular system, this is the correct command to run based on the output of diskpart above

    sfc /SCANNOW /OFFBOOTDIR=c:\ /OFFWINDIR=d:\Windows

    • December 6th, 2012 at 16:49 | #2

      Thanks for your input on this. This seems like a weird special case though isn’t it? I’m trying to understand how the Windows directory is on a D: drive but the boot directory is on C:. Where is the target broken Windows folder then, on D:? And what is on C: in this case?

  2. j4gg3d
    December 19th, 2012 at 19:05 | #3

    I’m in love with both of you. Countless useless and frustrating, unhelpful blogs out there, and I come upon these two little gems of info.

    Thank you both.
    BTW client’s laptop in this case (Dell latitude E5510) came preinstalled with boot C: and OS D:, no idea why they (dell) shipped it out like that.

    • December 19th, 2012 at 19:45 | #4

      I was trying to fix a problem the other day with a machine that would not take SP1 on a brand new installation of Windows 7. Searching for an answer, I went to an item on an otherwise pretty good Windows 7 forum, that was titled, “Solved: Can’t install SP1 on Windows 7″. The “solution” was to reinstall Windows 7. I try to keep this blog fairly technical so as to attract smart people (like yourself :-) with smart solutions.

  3. Smile
    February 26th, 2013 at 05:06 | #5

    Thank you very much! You saved my day!

  4. alan
    April 17th, 2013 at 13:53 | #6

    Thanks great and helpful info!!!!

  5. Royale
    April 30th, 2013 at 18:45 | #7

    Long hours of looking around and attempting fixes, thanks a lot for the information.

    the revert changes worked for me. ran this at recovery command console:

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

    followed by this:

    sfc /SCANNOW /OFFBOOTDIR=c:\ /OFFWINDIR=d:\Windows

  6. Samir
    June 16th, 2013 at 16:47 | #8

    Does this have anything to do with C:\windows\winsxs\cleanup.xml? And do you have a solution for Windows Vista? Because dism.exe (Deployment Image Servicing and Management) is not available in Windows Vista.

  7. Sarj09
    August 8th, 2013 at 10:54 | #9

    Thanks you guys saved my life with a clients computer that I could not get too boot. Followed your instructions to the letter and you got me out of a sticky spot. You answered my prayers.
    Thank You! Thank You! Thank You!

    • August 8th, 2013 at 10:57 | #10

      …and we do love being the answer to prayers. I’m glad this helped.

  8. dan360
    November 14th, 2013 at 02:39 | #11

    Hi, i’m a noobie & i tried dism.exe fix above but get, ‘ dism.exe is not recognised as an internal or external co.mand, operable program or batch file. I’m using Vista Business (x86) under command as admi istrator using system rescue disc. Please can anyone help? Dan

    • November 14th, 2013 at 09:56 | #12

      This may not work on Vista. I think I’ve tried it and got the same result as you. You could try searching for dism.exe on the boot drive and/or CD or you could try using a Windows 7 disc to boot from but I have my doubts about whether that would work.

  9. April 3rd, 2014 at 20:10 | #13

    This did not work for me, error message says it cannot find the image file. Any other suggestions?

  10. jackie1
    April 29th, 2014 at 19:53 | #14

    Same thing as above poster…. error message says it cannot find the image file. Any other suggestions?

  11. Mel
    June 21st, 2014 at 10:38 | #16

    Hi
    We tried this command but c is not recognised
    Could you some help me please?

    • June 21st, 2014 at 11:24 | #17

      What do you mean by “c is not recognised”? Are you getting an error that C: is not recognised or did you mean to say that DISM.EXE is not recognised? Where are you running the command from, the recovery environment or from Windows? If it’s the recovery environment your Windows installation may be on D: not C:

  12. June 28th, 2014 at 07:58 | #18

    Many, many thanks for a superbly helpful piece on resolving the problem that it addresses.

    The particular problem I was having is that any command that I called that had to be run outside of Windows such as chkdsk c: /f would cause Windows to hang during boot. After being hung for a period of time, the computer would reboot and correctly load Win7 but would not run chkdsk c: /f.

    When chkdsk wouldn’t run, I booted from a DaRT CD and tried to run sfc /scannow. At this point, I encountered the error: “There is a system repair pending which requires reboot to complete. Restart Windows and run sfc again.”

    A search on the error string, turned up your blog and the solution posted here.

    I ran the dism.exe /image:C:\ /cleanup-image /revertpendingactions command from within DaRT. After I rebooted into into normal (or “protected” – for you old timers) mode I could then call chkdsk c: /f, rebooted. At that point the computer did not hang as previously dribed and that command ran as it should.

    Just one note for the sake of clarification: In reading your blog, it was not clear whether there should have been a space in the syntax of the command between /image:c:\ and the switch. But that is a small point and I’m not sure how you could make that more clear within the limits of the font and the font spacing.

  13. roger
    August 16th, 2014 at 04:26 | #19

    seems like sfc must be run from console & then safe mode. (cmd)

    on win7

  14. roger
    August 16th, 2014 at 04:28 | #20

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

    run it again in safe mode

  15. d_logan
    August 18th, 2014 at 12:08 | #21

    SFC doesn’t find any integrity violations for me.

  16. djcstl
    August 29th, 2014 at 08:50 | #22

    I found this blog last night. It saved me YEARS of data! After clearing a virus infection, I encountered 15+ instances of dllhost.exe running resulting in 100% CPU usage. I ran sfc.exe. It found the error and corrected it, but when I rebooted (Windows 7), I got the BLACK screen of death after the starting windows graphics completed. Couldn’t run in safe mode either. I found the sfc.exe solution with the offboot directory commands in another blog. Using my Windows 7 disc, I used the Recovery Console.

    I had the same result as two of you: the pending repair error message, then dism.exe couldn’t find the image. I ran both of these executables multiple times after rebooting. After the second run if dism.exe, I rebooted the system and Windows started!

    In my case, the system said the executables didn’t work, but they did. All I can say is keep trying…and THANK YOU you wonderful techies! I’ve got a BS in MIS and loads of amateur experience, but I rely heavily on finding the best and most useful information in forums like this.

    I’m backing up my system and making a system image today…and saving them both on a DVD. I’ll update them every couple of weeks from now on!

    • August 29th, 2014 at 09:16 | #23

      Hey, good for you. Wee like to hear success stories!

  17. ejgolfer11
    September 3rd, 2014 at 14:11 | #24

    this worked for me
    sfc /SCANNOW /OFFBOOTDIR=c:\ /OFFWINDIR=c:\Windows.
    After fighting “There is a system repair pending which requires reboot to complete. Restart Windows and run sfc again.” message. And trying to remove reboot.xml, that didn’t help at all. And removing pending.xml also didn’t help. Tried the dism.exe /image:C:\ /cleanup-image /revertpendingactions but had no image message pop up.
    After sfc completed many failed to repair in CBS log. Looks like a re-install OS is the only solution

  18. September 11th, 2014 at 01:50 | #25

    THanks , THanks, Thanks

    you solved my blue-screen problem in my windows 8.1 64 bit.
    when updating windows security updates, after then while restarting to install update, it got failed in mid. then windows inbuilt automatic repair and all troubleshooting doesn’t work.. every time the window starts blue screen occres and shows this error- [ Critical_process_died]. after trying your solution.. by changin from C to F: drive, then it works like a charm.. all my pending updates get reverted on next startup..

    Many many thanks again Bro.

  19. Mackenzie
    October 10th, 2014 at 15:40 | #26

    @admin
    I have the same problem concerning user Paul and jackie1. I have a windows 7 32bit (I personally don’t know much about computers). I believe I might have accidentally deleted some important files on my computer. I really don’t know what else to do. Plus my computer has some important files and that I cannot replace.

    • October 10th, 2014 at 16:28 | #27

      Well, if you’ve got to the point of this article you are pretty far down the road for a neophyte. If the files you are worried about are user data files, like documents, videos, pictures, etc. I wouldn’t be too worried about that, they should still be retrievable unless you trigger a re-install of Windows – don’t do that. But if Windows isn’t starting and you can’t repair it and you can run SFC (which, by the way seldom solves non-booting problems anyway), you should probably find a reputable repair shop locally and ask them to get your important files off the hard drive. At Hartland Computer and Campus Computer Repair here, we charge $79 to do something like that. It would cost about $10 more to have us save the files and re-install Windows.

  20. Rodrigo
    October 15th, 2014 at 17:39 | #28

    I’m on a situation not described here. Windows tells me my password is incorrect. I already ran chkdsk, sfc, and other tools found with DaRT8 … including locksmith. its absurd – i just changed the password of the local account to 123456 and reboot, only to get an invalid password message again.

    This situation managed to frustrate me a lot. Any ideas?

  1. No trackbacks yet.