Error in updating windows
It downloads updates automatically, installs the ones it can, and saves others to install when you restart Windows. Here’s how to fix Windows Update when it gets stuck or frozen.
In the Control Panel list of troubleshooters, in the “System and Security” section, click “Fix problems with Windows Update.” In the Windows Update troubleshooting window, click “Advanced.” In the advanced settings, make sure that the “Apply repairs automatically” check box is enabled, click “Run as administrator” and then click Next.Most of the time, the troubleshooter can successfully remove a stuck update from the queue. Even if the troubleshooter says it couldn’t identify the problem, it’s possible that the actions of starting and stopping the service and clearing out the cache did the trick.