This one was apparently fixed by Microsoft a while ago but in case you run into something similar it’s helpful. It will work on any problem where an update has hijacked the screen with an “Update in progress” type of message and won’t let you finish booting windows. This fix will clear that bad update.
Problem: You run Windows Update and select your updates. Once they download everything they prompt you to restart your system. You do so, the computer turns off then on again and windows starts to boot until you see a screen saying: “Configuring updates 3 of 3. 0% complete.” No matter how long you wait and no matter how many times you restart the screen does not go away.
Fix: You need to delete the “pending.xml” file. The file has a list of updates and forces windows to install those updates at startup. By deleting the file you delete the list so Windows ignores the updates.
THE FIRST METHOD:
Microsoft has a fix for this problem up on their website (here) and we’ll take a look at that method first.
The Microsoft “fix” basically tells you to use restore points to send your computer back in time. How far back? Well just far enough so that your computer is in a state before the broken updates were downloaded. The closer this date is to the present the better. If you restore too far back you end up with programs that don’t work and have a confused computer.
So how do you restore without being able to boot into windows? Again, there are two methods:
- Take your Vista disc and insert it into the computer. Ensure that your booting with the CD and when the disc loads press “R” as soon as you see the option. Invoking this command will launch the repair section of the Windows CD which contains a System Restore program. Just select the closest time to the present and restore to that.
- Boot into safe mode.
- Click Start, a menu will pop up.
- Click Run from the menu. A window will pop up.
- Type in: “rstrui.exe” This will launch the system restore utility.
- Select the closest restore point to the present.
After the restore is done you will find that you can boot into windows once again! There is one more step that you need to do. Microsoft recommends installing an update to windows update, crazy eh? You can find that update here make sure that you download and install this right away.
THE SECOND METHOD:
Now in case for some reason the restore point solution doesn’t work for you there is a second method. I got this fix from a fellow tech and unlike the recovery points method this one just modifies the “pending.xml” file. What you basically need to do is delete “pending.xml”. It is not a file that can be deleted easily when you don’t have access to Windows. But of course our favorite tool comes in handy again-
Download and install a copy of The Ultimate Boot Disc for Windows it’s a useful tool to have for these and other kinds of windows problems. Boot from the disc and in the menu that pops up choose Ultimate Boot Disc for Windows (or something of the like.) The next step will take a few moments so get some coffee, or alcohol depending on your mood. There! You will see that we have loaded a modified version of Windows! One filled to the brim with cool tech tools!
Select the “Computer” or “My Computer” icon. This will launch a folder with a list of all of your drives. Select the drive that contains your windows installation.
- Click on the Windows folder.
- Click on the Winsxs folder.
- Find the file pending.xml.
- Right click>Properties.
- Go to the Permissions tab and give yourself full control over the file.
- Click Apply.
- Delete pending.xml.
Once we delete the “pending.xml” file windows no longer looks to it for instructions to install updates and we are free to boot into windows normally.
The next time you download updates that need to be installed Windows will recreate the pending.xml file with new correct updates and you’ll be good to go. Once you get into Windows don’t forget to download and install the windows update fix, it can be found here.
How to explain this problem to the client:This is caused by a bad update Mr. Customer, you know how Microsoft is (insert bonding laugh here.) I’ve usually seen it affect HP/Compaq AMD based unit mostly and you will now be safe from this error in the future. Hooray!
Good luck and tell me how it goes on the forums.
Pingback: Techie Haven » Post Topic » Vista update won’t complete 3 of 3 0% screen
Thanks for the post. I booted from the Vista media disc and did repair. Then I used the command prompt to delete the “Pending.xml” file. However when I restarted it still did this..
Wait! It just said welcome!!! Instead of Shutting Down! Thank you for all the help, Mr. Customer! :)
Whose Mr. Customer? :)
Glad I could help.
Cannot gain permission to erase file. Will not give me access to check full control. Any ideas?
You’ll have to change the permissions of the file by right clicking on the folder that the file is contained in a giving yourself full control.
If you don’t want to mess with permission you can always try a Knoppix boot disc that gives you full control right off the bat.
@ keith
after using the command line and running into your problem, i disabled automatic restart on system failure and things worked again.
Thanks for sharing your fix! It’ll help a lot of people!
THANKS MAN, you saving my life!
From Brazil!
Obrigado!!!
Hello,
When I try to use the first method it says that no system restore points exist. What are my options other than downloading the disk?
@Adam:
The only other option you have that I know of is listed in Method Two above. If I had another option I would write it in the post. ;)
If you stumble across another fix please report back so that I can add it to the post. Thanks!
There are many types of pending.xml files
Should I delete all of them of just a certain file???
PLEASE HELP!!!
There should only be one pending.xml in the Winsxs folder. Make sure you are limited your search to only that folder and are not searching the entire computer.
help i lost my vista cd what do i do?
You can always contact your local computer technician and have them burn you a copy (this will most likely cost you a fee).
You can also contact Microsoft and order a disc from them.
thanx…… but cant i just buy another cd or is there a diffrents?
You could buy another CD off the shelf but then you’re looking at over a hundred bucks if not more.
You can create a batch file to make this easier:
@echo off
cd “C:\Windows\WinSxS”
echo Taking ownership of pending.xml
takeown /f C:\Windows\WinSxS\pending.xml
echo;
echo;
echo Granting you permissions on pending.xml
cacls C:\Windows\WinSxS\pending.xml /G %Username%:F
echo;
echo;
echo Attempting to copy pending.xml as pendingbackup.xml
copy “C:\Windows\WinSxS\pending.xml” “C:\Windows\WinSxS\pendingbackup.xml”
echo;
echo;
echo Deleting pending.xml
del “C:\Windows\WinSxS\pending.xml”
———————-
This will delete pending.xml if it cannot copy it. I have never been able to copy it, most likely because I haven’t rebooted the server after taking ownership/granting permissions. I have however never suffered because of this. As the author of this article notes, it is recreated when updates are redownloaded.
I have a more complete version with a few other tweaks here: http://theboywonder.co.uk/2010/01/22/windows-update-multiple-fix-script/
..so if u don’t have the Windows CD, and/or Safe Mode doesn’t work either, and/or you don’t have the Administrator password, just use a Linux boot CD (fakegeek mentions a Knoppix CD, I did it with a PING CD, whatever). Boot from the CD, get a shell, then do something like this:
mkdir /mnt/stu
mount -t ntfs-3g /dev/sda1 /mnt/stu
mv /mnt/stu/Windows/winsxs/pending.xml /mnt/stu/Windows/winsxs/pending.stu
Then reboot (and eject boot CD). pending.xml is backed up in pending.stu (can be deleted if everything goes well). Problem should be fixed.
Note, my customer tried to use the “Repair Computer” option from a Vista SP1 CD, it said “this repair tool is not compatible with your computer” cos he did not have SP1. So grabbing a copy of the disc won’t work unless it’s the original Vista “SP0” CD. Better option is the Linux boot CD, free and u can download, also supports USB, FTP, NTS etc etc … ;)
Thanks for this comments – I have tried for almost one year to get rid of pending.xlm and I could not do it. The batch file worked perfectly. Thanks a lot.
If you have a laptop or different computer you can take the hard drive that is having the issue out and plug in to a EXT. USB bay and plug into your other comptuer to access the file and delete :)
Or you can slave the issue hard drive on a different PC and acccess that way!