Head to the Microsoft Download Center to reinstall a failed Windows update
QUESTION My desktop PC runs Windows 7. Every time I log out or shut down it reports that two updates are in progress and tells me not to turn off the PC. This has occurred repeatedly for eight days. Am I doing something wrong or do I need to take some other action? Westgolf
HELPROOM ANSWER Windows updates can fail to install properly, causing Windows to try repeatedly to install them each time it's shut down.
You can try to fix this problem using Microsoft's System Update Readiness Tool (32bit version or the 64bit version). It will take a few minutes to run, but will then attempt to fix any problems that may be preventing your updates from automatically installing.
If it's unable to fix your problem, you'll need to investigate your update history and search for a failed update.
You can identify which updates are failing and manually install them. Go to Control Panel, Windows Update, ‘View Update History'. This will bring up a list of installed updates. Most of the updates in the Status column should be marked as successful; scroll down until you find one that has failed.
Look at the update description and jot down the KnowledgeBase number at the end, for example KB2676562. Next, head to the Download Center and enter the code into the search box.
The page you are taken to will allow you to manually download and install the update. Following a successful installation, Windows will no longer try to install the update at shutdown.
Repeat this process for any other failed updates you find. They may need to be installed in a particular order or require other updates to be installed first, which the KnowledgeBase article will alert you to.
Another answer can be found here: Unsuccessful Windows update stops PC shutting down.