none
Force SFC to Run in Windows 7

    Question

  • Is there a way to force SFC /SCANNOW command to run even if there is a system repair "flag" set ? I keep getting "There is a system repair pending which requires reboot to complete. Restart ..." . The problem is that i cannot boot into windows normally and keeps reseting, and giving me the option to boot normally or start a system repair , which can't do a thing.

     I tried Safe Mode and it hangs up and resets at CLASSPNP.SYS . I disabled autoreset and i get a BSOD with an error concerning the verification of a "KnownDLL" that ended with failure.

    Tried running Repair > CMD > SFC  from Repair disc, tried running from ERD commander > CMD , or the SFC shortcut with same result. I've installed the hdd on another system , booted with the Win7 of that computer and tried running SFC /Scannow /Offbootdir=xxx /offwindir=xxx  , and got same message.

     

     

     

    Wednesday, June 09, 2010 11:40 AM

Answers

  • Hello D3xt3r,

    Is there a pending.xml file present on this system?  ( c:\windows\winsxs\pending.xml)

    If so what is in that file


    Thanks, Darrell Gorter This posting is provided "AS IS" with no warranties, and confers no rights. Volume Activation documentation on TechNet http://technet.microsoft.com/en-us/windows/dd197314.aspx http://technet.microsoft.com/en-us/library/dd996588.aspx VAMT - Volume Activation Management Tool - Download link http://www.microsoft.com/downloads/details.aspx?FamilyID=ec7156d2-2864-49ee-bfcb-777b898ad582&displaylang=en
    Friday, June 11, 2010 7:33 PM
  • The command cannot repair system until you boot into the system. In general situations, if we cannot boot into Windows 7, we can try:

    1. Run Startup Repair in WinRE. 

    2. Boot into Last Known Good configuration.

    3. Boot in WinRE, run Repair > System Restore


    Arthur Xie - MSFT
    Thursday, June 10, 2010 8:10 AM
    Moderator

All replies

  • The command cannot repair system until you boot into the system. In general situations, if we cannot boot into Windows 7, we can try:

    1. Run Startup Repair in WinRE. 

    2. Boot into Last Known Good configuration.

    3. Boot in WinRE, run Repair > System Restore


    Arthur Xie - MSFT
    Thursday, June 10, 2010 8:10 AM
    Moderator
  • Hello D3xt3r,

    Is there a pending.xml file present on this system?  ( c:\windows\winsxs\pending.xml)

    If so what is in that file


    Thanks, Darrell Gorter This posting is provided "AS IS" with no warranties, and confers no rights. Volume Activation documentation on TechNet http://technet.microsoft.com/en-us/windows/dd197314.aspx http://technet.microsoft.com/en-us/library/dd996588.aspx VAMT - Volume Activation Management Tool - Download link http://www.microsoft.com/downloads/details.aspx?FamilyID=ec7156d2-2864-49ee-bfcb-777b898ad582&displaylang=en
    Friday, June 11, 2010 7:33 PM
  • Hello D3xt3r,

    Is there a pending.xml file present on this system?  ( c:\windows\winsxs\pending.xml)

    If so what is in that file


    Thanks, Darrell Gorter


    No pending.xml on the system I am trying to troubleshoot, but a reboot.xml. Since the date is from much earlier (12/01/2010), I am thinking this may be a file to keep.

    Anyhow, I have an issue with a Windows 7 Ultimate 64bit system as well, which seems to spin cycles. Is there any chance to remove the repair flag and force the system to run a sfc /scannow ?

    I really would love to save this system and avoid a complete reinstall (with Windows Virtual machines, etc.) if possible. However, these semi-automatic and never functioning Microsoft repair attempts are driving me nutsville. Where are the good old .ini days?

    Thursday, February 17, 2011 8:08 AM
  • This is a really good q, the answer would fix my problem but it seems there is no answer, is that because in fact there is no answer could I please ask? I have deleted the pending and reboot files from winsxs but still told the WinRE won't run due to a pending reboot (which doesn't reset no matter how many boots one does), is there somewhere else to look, or an ability to force SFC to run regardless of the pending boot?
    Friday, March 11, 2011 9:30 AM
  • aha, Found a method! If I boot to Win7 64bit Ultimate cd the second screen selecting Repair gets a few choices, one of which is Command Prompt, do this. When I run SFC /SCANNOW I get the system repair pending error, but put in the following and it runs: SFC /SCANNOW /OFFBOOTDIR=C:\ /OFFWINDIR=C:\Windows

     

    However sadly that doesn't fix my actual problem as SFC still reports an issue with WMPDMCCore.dll which is what I am trying to sort out to get SP1 to load and I figured I might get a result off the boot disc rather than just out of a normal operation SFC.

    Oh, I just realised the OP tried this without any luck, drat!

    • Proposed as answer by VinceS2 Friday, March 11, 2011 11:09 AM
    • Unproposed as answer by VinceS2 Friday, March 11, 2011 11:10 AM
    • Proposed as answer by Paul B 1 Thursday, February 20, 2014 5:44 PM
    Friday, March 11, 2011 11:08 AM
  • The offending pending.xml file is located in x:\windows\winsxs\pending.xml

    You should run the sfc command with the /offwindir and /offbootdir options.

     

    Regards:

     

    :¬)




    • Edited by The Mad Oll Friday, November 11, 2011 11:22 AM
    Friday, November 11, 2011 11:20 AM
  • for me it doesnt solve the problem...i am typing   SFC /SCANNOW /OFFBOOTDIR=C:\ /OFFWINDIR=C:\Windows   

    in the command prompt and it gives me different options when I do that. one of them is sfc /scannow, which I select and get the same message "there is a sys. repair pending which reqrs reboot to complete. restart windows and run sfc again. when I reboot, the system tries to scan for bad files and then says that there was an error in the dskchk due to some recently installed programs. i have not installed anything recently


    Tuesday, December 06, 2011 3:26 PM
  • @vikal

    Try adding another backslash at the end of /OFFWINDIR=C:\Windows\  

    Wednesday, December 14, 2011 1:33 AM
  • I deleted the pending.xml and it allowed me to run the sfcscan. It said there were no issues though. I ran the second command below, since my windows was on the D drive when booting into repair. SFC said it found issues and fixed them. But I'm still getting the stop 0x00000051 issue when booting windows. When I boot in safe mode, it just reboots, without showing me blue screen stop error. Anyone else have luck fixing this?

    del x:\windows\winsxs\pending.xml

    SFC /SCANNOW /OFFBOOTDIR=D:\ /OFFWINDIR=D:\Windows  

    Saturday, December 24, 2011 6:35 PM
  • Hello,

    Since you deleted the pending.xml file, you need to reinstall.  Deleting the pending.xml causes and number of potential issues, these will vary with the updates that were in the process of installing and the OS is probably corrupted at this stage, any and all updates that were in the process of installing are now in a partially installed state and it's doubtful there is any recovery from that.

    If there were security updates they may not be installed properly so the OS may not be protected for example, the pending.xml file is essential for proper installation of updates.

    I

     


    Thanks, Darrell Gorter [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights. VAMT - Volume Activation Management Tool - Download link http://www.microsoft.com/downloads/details.aspx?FamilyID=ec7156d2-2864-49ee-bfcb-777b898ad582&displaylang=en
    Wednesday, December 28, 2011 9:14 PM
  • Hi,
     
    In the future, if you need to run an offline verification, here's how,
     
     

    -- Mike Burr
    Technology
    Wednesday, December 28, 2011 10:22 PM
  • Thx a  lot Arthur.   After 2 days without windows, i could finaly boot with  2. Boot into Last Known Good configuration..

    thx!!!!!

    Sunday, May 27, 2012 4:21 PM
  • I moved the pending.xml file to another location. After running sfc/scannow , it says did not find any integrity violations. What do I do now? Can't start windows 7 normally since the last update, only safe mode is allowed. Already tried system restore and startup repair.
    • Proposed as answer by snclarry Thursday, January 16, 2014 1:10 AM
    Sunday, December 30, 2012 12:44 PM
  • running chkdsk and an offline sfc does not change anything with regards to the pending repair issue.
    Wednesday, August 28, 2013 2:29 PM
  • make sure to leave a space between the \ and /

    -Web-ster!!

    Thursday, November 14, 2013 12:11 PM