Force SFC to Run in Windows 7
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.
June 9th, 2010 7:40am

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 RestoreArthur Xie - MSFT
Free Windows Admin Tool Kit Click here and download it now
June 10th, 2010 4:10am

Hello D3xt3r, Is there a pending.xml file present on this system? ( c:\windows\winsxs\pending.xml) If so what is in that fileThanks, 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
June 11th, 2010 3:33pm

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?
Free Windows Admin Tool Kit Click here and download it now
February 17th, 2011 3:08am

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?
March 11th, 2011 4:30am

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!
Free Windows Admin Tool Kit Click here and download it now
March 11th, 2011 6:08am

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: :¬)
November 11th, 2011 6:20am

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
Free Windows Admin Tool Kit Click here and download it now
December 6th, 2011 10:26am

@vikal Try adding another backslash at the end of /OFFWINDIR=C:\Windows\
December 13th, 2011 8:33pm

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
Free Windows Admin Tool Kit Click here and download it now
December 24th, 2011 1:35pm

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
December 28th, 2011 4:14pm

Hi, In the future, if you need to run an offline verification, here's how, http://mikemstech.blogspot.com/2011/12/how-to-perform-offline-system-integrity.html -- Mike Burr Technology
Free Windows Admin Tool Kit Click here and download it now
December 28th, 2011 5:22pm

Thx a lot Arthur. After 2 days without windows, i could finaly boot with 2. Boot into Last Known Good configuration.. thx!!!!!
May 29th, 2012 12:05pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics