Windows – “Failed to Configure” restart loop with Windows 7 Updates

windows 7windows update

In an attempt to repair an old Dell Inspiron laptop that was previously repaired (sent to a repairman and clean installed), I am stuck at this issue. Since that last repair, the laptop still has issues and the Windows Updates have all been failing.

When it attempts to apply the changes, Windows Update will fail into a "Failed to configure … reverting changes" restart loop. It also appears that all of the ones that fail are security updates.

When trying to run chkdsk /f /r, it will tell me:

The type of the file system is NTFS.

Cannot lock current drive.

Chkdsk cannot run because the volume is in use by another process.

When trying to do sfc /scannow it will tell me:

There is a system repair pending which requires reboot to complete.

Restart Windows and run sfc again.

I am only assuming I can't use those commands because Windows Update is in the way? I've scanned with Malwarebytes (VIPRE is also installed) so the issue should not be a virus or malware.

Using the WindowsUpdateDiagnostic will fix a couple issues but fails at fixing "Service Registration is missing or corrupt."

I am lost on where to go as nothing appears to be working.

System overview

  • Dell Inspiron (2009)
  • Windows 7 Home Premium SP1 64-bit
  • 4GB RAM

Best Answer

Windows Failure - Recovery Console (Steps and Commands)

Leave a comment below with the error, or anything else you think may be helpful to others, which these steps helped you resolve.

(Links at bottom for step-by-step instruction still for getting to Recovery Console and Safe Mode)

Run the below #1 command (steps) first to find out which drive letter is assigned to the Windows OS partition from the Recovery Console as it may not be the standard "C" drive as it is otherwise.

  1. From the Recovery Console type in bcdedit| find "osdevice" press Enter and then look at the command output result.

Where you see osdevice partition=D: (output result of the command per #1) whatever drive letter is after parition= is the drive letter you'll use in place of C:\ in the below command so if it's ~D= then the below command will use ~image:D:\ /cle~ in that part of the command.

Warning: Ensure spaces are in the command and the forward and back slashes are just as typed.

  1. From the Recovery Console type in dism /image:C:\ /cleanup-image /revertpendingactions, and press Enter

    • If you get the error. . .
      • The scratch directory size might be insufficient to perform this operation. This can cause unexpected behavior. then. . .
      • type in (assuming OS is on "D" drive here) MD D:\Scratch press Enter then type in DISM /Image:D:\ /ScratchDir:D:\Scratch /Cleanup-Image /RevertPendingActions press Enter to rerun the command.)

If you still have trouble getting #2 to run from the Recovery Console, then try running the below command when logged onto Windows normally from the command prompt (run as administrator). If you're able to get #2 to run without error, then just skip the #3 step entirely.

  1. Type in DISM /Online /Cleanup-Image /RevertPendingActions from the command line run as administrator, and then press Enter.

If you cannot get #2 or #3 to work above, then you may need to boot to a Linux OS or perhaps you can do from Recovery Console and rename the below file on the "C" drive location (or whatever drive letter Windows is on per #1 above still) which is the file that keeps records of where the OS is on pending Windows Updates, etc.

Once this file is renamed, then a new file will be created on the next Windows Update attempt but if you have to run this option to fix the issue, it may be best to do #5 before applying any new Windows Updates.

  1. This is the file that you'll rename ->C:\Windows\winsxs\pending.xml

    Ensure you replace C:\Windows\~ with the drive letter determined in #1 above here too

    • From the Recovery Console type in CD /D "C:\Windows\winsxs" press Enter

    • Type in REN "pending.xml" "bak_pending.xml.bak" press Enter, reboot machine and complete #5 below

  2. Once that completes, boot to Safe Mode and then run the below command (optional):

    • Type in sfc /scannow from the command line run as administrator, and press Enter.

NONE OF THIS IS WORKING!!!

A few last resort items to try in order and from the Recovery Console. . .

Anywhere a drive letter is anywhere on any of the commands, ensure the drive letter is what's determined per step #1 above.

  1. CHKDSK D: /F /R < Let this complete regardless of how long it takes to complete; kick it off, and just check in on it periodically.

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


Important Note Installing Service Pack 1

Once you get this fixed, please download the Windows 7 Service Pack 1 manually (below download link), install it, and then reboot.

Be sure to not apply any Windows Updates via the Windows Update process until this is complete. Once Service Pack 1 is downloaded and installed, then move forward with the Windows Updates.

Download


Further Resources

Related Question