Windows Update not working on Windows 2012 R2 Standard
I recently inherited the management of a Windows 2012 server at a remote site.
I checked Windows Update and it has not been updating since March. When I tell Windows to check for updates, it acts like it is checking, but it seems to say that for hours. If I attempt to restart the windows update service, it seems to never be able to shut down. My only remedy seems to be rebooting to get back to the point where I can tell Windows Update to check for new updates.
The last successful check for updates says March 20.
The last time updates were installed says March 17 (failed).
The update history shows that one update failed for March 17, a printer driver update, but the history shows 13 failed updates for Feb 17.
Not sure what else to try.
Solution 1:
Two of my three 2012R2 machines exhibited this behavior last April. They would hang at Checking for updates... forever.
I never learned exactly what caused the problem, but I did get it resolved by doing the following:
-
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.
Solution 2:
i found this great answer here and it worked beautifully for me. Just want to share in case someone is searching:
Try this at an elevated command-prompt:
netsh winhttp import proxy source=ie
and reboot
another solution which worked for me as well was to set update mode to "Never check for updates"
Solution 3:
My fix on a newly Installed on Windows Server 2012 R2 on Citrix 6.5 VM, and as Marcus Greasly posted, disable IE Enchanced Security... worked immediately...
To disable IE enhanced security in windows server 2012 R2, launch the Server Manager, on the left hand side click on Local Server. On the right hand side click on the On link next to IE Enhanced Security Configuration. You will now see the Internet Explorer Enhanced Security Configuration box.
https://prajwaldesai.com/disable-ie-enhanced-security-in-windows-server-2012-r2/