This is an old revision of the document!
Fixing Troublesome Windows Updates
Servers
Windows Server 2012 R2
https://serverfault.com/questions/625332/windows-update-not-working-on-windows-2012-r2-standard
Stop the Windows Update service.
net stop wuauserv
Delete the Windows Update cache directory C:\Windows\SoftwareDistribution.
Remove-Item -Recurse -Force C:\Windows\SoftwareDistribution
Restart the computer. (On one machine it required several restarts to actually get everything deleted from this directory, so keep trying if necessary.)
Run Windows Update manually again. It will fail almost instantly and offer to run a diagnostic tool. Download the tool and allow it to run.
The tool will find and fix some problems. At this point, run Windows Update manually again. Windows Update worked fine at this point.
Workstations
Take these steps to reliably fix troublesome Windows Updates:
Turn off automatic updating
Reboot
Search the Internet for “Windows XX latest update client”
Download and install the latest update client for your version of Windows
Install Windows Updates