Possible solution
Open an administrator command prompt. Run sfc /scannow
. If Windows Update files are damaged, this should fix them.
If you encounter an error with System File Checker
I've seen cases where sfc doesn't fix this, often but not always related to a recent malware infestation. If it can't fix a file, it will tell you that it could not repair the errors it found. If you get a message like this:
CD to an easy-to-access directory like "%userprofile%\Desktop"
, then run
findstr /c:"[SR]" %windir%\logs\cbs\cbs.log >sfcdetails.txt
to pull the log events for the sfc scan and add the contents of the sfcdetails.txt to your question.
Note that if you look in the sfcdetails.txt file you may find a line like the following:
Cannot repair member file [l:14{7}]"url.dll" of Microsoft-Windows-IE-WinsockAutodialStub, Version = 6.0.5752.0, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeN
In this example, the problem is with "url.dll". You can try using Windows Search to find the newest backup copy of the file and replace it yourself. However some files, like TrustedInstaller.EXE
are set so that they can only be modified by certain system processes, so you will either have to replace the file from a bootable linux disc OR reinstall. Some files will throw a fit later on if the permissions aren't correct, so if you have to use a linux boot disc to replace the file, I recommend backing up everything as soon as possible, because it may fail again eventually. If you have the time and a recent backup, I recommend doing an "in-place upgrade" reinstall by running setup from the Windows 7 disc while Windows is already running. If that doesn't work the only remaining option may be a clean reinstall.
If your log shows problems with the TrustedInstaller.exe file, you will need a linux boot disk to replace the bad copy with a good one from one of the hotfix backup folders, because Windows will only let TrustedInstaller.exe be modified by itself.
Edit: Since SFC found no problems
Since I've never actually seen a persistent issue with Windows Update that didn't cause SFC to report errors as well, I'm not sure if the following steps will help. I've done a bit more looking around and have found the following possible resolutions:
Firewall
If you are using a third-party firewall, try temporarily disabling it, then trying to update again. If it succeeds, you will need to find the setting in your firewall that is blocking Windows Update. The easiest way to fix this is to completely uninstall your firewall, then reinstall it.
Infection
Usually in my experience, malware infections interfere with Windows Update by corrupting Windows Update files. Since this isn't the case, it is still possible that malware is blocking updates any number of alternate methods, such as DLL injection or blocking the connection. A common technique malware uses is to change your proxy settings to use a program installed on your computer as a proxy.
To check this, click start, typing configure proxy settings
, then hit enter. Click LAN settings
. If the proxy server address is set to localhost
, 127.0.0.1
, or ::1
, uncheck the "Use proxy server" checkbox, click OK, then OK on the "Internet Properties" dialog, then try again.
-- Note: many web accelerators will set a proxy server like this, which is not a malware infection, but may still interfere with Windows Update. If you are using a web accelerator, uninstall it.
You should also run a full virus scan. Also, do a scan with Spybot Search&Destroy (you don't need to worry about any tracking cookies it tells you about unless you are paranoid about advertisers and your privacy, but it is a good idea to remove them anyway).
Built-in troubleshooter
If a virus and spyware scan returns nothing, and your firewall isn't the culprit, you can run the built-in troubleshooter to try to find another solution. Click the Action Center icon in the Notification Area

then click "Open Action Center".
Click "Troubleshooting"

then "System and Security"
Click "Windows Update" then follow the directions on the screen.
The Win 7 SP1 Windows Update offers is a "Stub installer", it will download the rest of hte service pack as it installs, whereas the one in the Download Center is (probably) the complete SP1 image.
Download the full version and try it.
Microsoft has a page devoted to Windows 7 SP1 install problems: http://windows.microsoft.com/troubleshootwindows7sp1
Here's some advice on things to try to increase the chances of SP1 installing properly.
Blurb:
- Check your available disk space - For now the best information available is as follows:
- Run Disk Cleanup.
- Create a new System Restore point just prior to installing SP1.
- If at all possible create an Image Backup of the Windows drive or partition.
- Install the Windows 7 device drivers for your make and model of computer, graphics adapter and other add-in cards.
- Disable AV Software.
- Run the
SFC /SCANNOW
command.
- Run the System Update Readiness Tool.
- Rename the 'Software Distribution folder'
- Check your Power Plan configuration.
- Perform a “Clean Boot” to prevent other programs for interfering with the installation process.
- Laptop users should connect their computer to AC power.
Lastly, MS provides free support for installation problems with SP1. Check out your support options with MS, here.
Best Answer
In the first releases of KB947821, Microsoft warned customer on the information page about it that it would appear to be stuck: it still does that, but their warning seems to have disappeared.
I'm running it on my system at this very instant and it looks like it's stuck, but it isn't. Do not worry: just start it before you go to bed and forget it. If it still seems to be stuck when you wake up, then it really is stuck. You probably are going to want to run System Restore, to any time prior to when your daughter had the computer, since you don't know what happened when she was using it.
But before doing anything, even the KB947821, run a quick scan with whatever security program you are using. Then run checkdisk, but run the complete scan (it will be a 5 step process):
command
into the Start menu search box, then right click on "Command prompt" when it comes up and select "Run as administrator").sfc /scannow
, then hit Enter, and let that run. It may take a couple of hours.Then and only then get the latest KB947821 (keep a copy on your desktop or on a removable hard drive; they just released a new version) and run it, as you have done. And run a complete system scan with your security program, then get Malwarebytes free version, download it, update it, and scan your system with it. That's your "second opinion" on security. I get a "third opinion" also on occasion, one of the online free scans, Trend Micro's House Call.
All of this will take a day. If your system isn't working at that point, you need to try System Restore. If that doesn't work, you will have to repair Windows one way or another, by doing a repair install or something of the sort. You may have to use the recovery console to get System Restore or even
sfc
to work.