Microsoft Windows Server R2 or Windows 7 rebooting while configuring updates

Great tip from Josh -

If Microsoft Server R2 or Windows 7 is stuck rebooting while configuring updates (pic below), follow these steps -

Problem-Windows Server R2 stuck in boot loop

  • Boot from the Server 2008 DVD (or Windows 7)
  • Select the command prompt
  • Type   del c:\windows\winsxs\pending.xml    
  • (This can be done in safe MODE in SOME situations see below)
  • Once this is done, reboot to the HDD

If you use safe mode, you may get an access is denied when deleting 

  • Click the orb – All programs – Accessories, right-click “command prompt” and select “Run as Administrator” (or type CMD in the search box and right-click and Run as Administrator
  •  In this case, you may have to take ownership -

Type the following commands

takeown /f C:\Windows\winsxs\pending.xml

cacls C:\Windows\winsxs\pending.xml /G Username:F

del C:\windows\winsxs\pending.xml