I have Windows Server 2012 that went somewhat stale update-wise (the most recent installed update dates back to June 2016). I am trying to get it patched up. The problem is that for some reason Windows Update refuses to acquire new updates. When I
click on "check for updates", it shows the green scrolling bar under "Checking for updates..." and it can sit there for hours doing nothing (there even seems to be no disk activity.)
In the Windows Update log, I see this (no idea if this is at all relevant)
2017-03-01 16:14:40:211 5476 1688 CltUI FATAL: CNetworkCostChangeHandler::RegisterForCostChangeNotifications: CoCreateInstance failed with error 80004002
2017-03-01 16:14:40:212 5476 1688 CltUI WARNING: RegisterNetworkCostChangeNotification: Error 80004002
and the last thing it ever writes before going idle is
2017-03-01 16:14:44:015 1232 167c AU Triggering AU detection through DetectNow API
2017-03-01 16:14:44:015 1232 167c AU Additional Service {117CAB2D-82B1-4B5A-A08C-4D62DBEE7782} with Approval type {Pre-install notify} added to AU services list
2017-03-01 16:14:44:015 1232 167c AU Will do the detection after current detection completes
If I interrupt it after a while, it follows up with:
2017-03-01 16:20:16:089 1232 1958 Agent * WARNING: Failed to filter search results, error = 0x8024000B
2017-03-01 16:20:16:089 1232 191c AU ########### AU: Uninitializing Automatic Updates ###########
2017-03-01 16:20:16:105 1232 1958 Agent *********
2017-03-01 16:20:16:105 1232 1958 Agent ** END ** Agent: Finding updates [CallerId = AutomaticUpdates]
2017-03-01 16:20:16:105 1232 1958 Agent *************
2017-03-01 16:20:16:105 1232 1958 Agent *************
2017-03-01 16:20:16:105 1232 1958 Agent ** START ** Agent: Finding updates [CallerId = AutomaticUpdates]
2017-03-01 16:20:16:105 1232 1958 Agent *********
2017-03-01 16:20:16:105 1232 1958 Agent * Online = No; Ignore download priority = No
2017-03-01 16:20:16:105 1232 1958 Agent * Criteria = "IsInstalled=0 and DeploymentAction='Installation' or IsPresent=1 and DeploymentAction='Uninstallation'
or IsInstalled=1 and DeploymentAction='Installation' and RebootRequired=1 or IsInstalled=0 and DeploymentAction='Uninstallation' and RebootRequired=1"
2017-03-01 16:20:16:105 1232 1958 Agent * ServiceID = {117CAB2D-82B1-4B5A-A08C-4D62DBEE7782} Third party service
2017-03-01 16:20:16:105 1232 1958 Agent * Search Scope = {Machine & All Users}
2017-03-01 16:20:16:105 1232 1958 Agent * Caller SID for Applicability: S-1-5-18
2017-03-01 16:20:16:105 1232 1958 Agent * WARNING: Exit code = 0x8024000B
2017-03-01 16:20:16:105 1232 1958 Agent *********
2017-03-01 16:20:16:105 1232 1958 Agent ** END ** Agent: Finding updates [CallerId = AutomaticUpdates]
2017-03-01 16:20:16:105 1232 1958 Agent *************
2017-03-01 16:20:16:105 1232 1958 Agent WARNING: WU client failed Searching for update with error 0x8024000b
I tried to roll back to a month-old backup and it seems to be broken already.
I tried to purge the Windows Update cache by stopping relevant services, deleting %WINDIR%/SoftwareDistribution and %WINDIR%/System32/catroot2, and restarting services. It still does not work, though this time log messages are different.
2017-03-01 16:21:33:849 1232 438 Service ** START ** Service: Service startup
2017-03-01 16:21:33:849 1232 438 Service *********
2017-03-01 16:21:33:849 1232 438 Agent * WU client version 7.8.9200.17185
2017-03-01 16:21:33:849 1232 438 Agent * Base directory: C:\windows\SoftwareDistribution
2017-03-01 16:21:33:849 1232 438 Agent * Access type: No proxy
2017-03-01 16:21:33:849 1232 438 Service UpdateNetworkState Ipv6, cNetworkInterfaces = 4.
2017-03-01 16:21:33:849 1232 438 Service UpdateNetworkState Ipv4, cNetworkInterfaces = 1.
2017-03-01 16:21:33:849 1232 438 Agent * Network state: Connected
2017-03-01 16:21:33:849 1232 438 Setup WARNING: SelfUpdate is in an error state
2017-03-01 16:21:33:849 1232 438 Service UpdateNetworkState Ipv6, cNetworkInterfaces = 4.
2017-03-01 16:21:33:849 1232 438 Service UpdateNetworkState Ipv4, cNetworkInterfaces = 1.
2017-03-01 16:21:34:068 1232 438 DtaStor Default service for AU is {00000000-0000-0000-0000-000000000000}
2017-03-01 16:21:34:068 1232 438 DtaStor Default service for AU is {9482F4B4-E343-43B6-B170-9A65BC822C77}
2017-03-01 16:21:34:068 1232 438 DtaStor Data store successfully created
2017-03-01 16:21:34:068 1232 438 Agent WARNING: Failed to add and register service 117cab2d-82b1-4b5a-a08c-4d62dbee7782 to the data store 0x8007007a
2017-03-01 16:21:34:068 1232 438 Agent WARNING: Service Recovery: Attempting to add pending registration for service 117cab2d-82b1-4b5a-a08c-4d62dbee7782 to the data store
2017-03-01 16:21:34:068 1232 438 Agent WARNING: Failed to add and register service 7971f918-a847-4430-9279-4a52d1efe18d to the data store 0x8007007a
2017-03-01 16:21:34:068 1232 438 Agent WARNING: Service Recovery: Attempting to add pending registration for service 7971f918-a847-4430-9279-4a52d1efe18d to the data store
2017-03-01 16:21:34:068 1232 438 Agent WARNING: Failed to add and register service 7971f918-a847-4430-9279-4a52d1efe18d to the data store 0x8007007a
2017-03-01 16:21:34:068 1232 438 Agent WARNING: Service Recovery: Attempting to add pending registration for service 7971f918-a847-4430-9279-4a52d1efe18d to the data store
2017-03-01 16:21:34:068 1232 438 Agent *********** Agent: Initializing global settings cache ***********
2017-03-01 16:21:34:068 1232 438 Agent * Endpoint Provider: 00000000-0000-0000-0000-000000000000
2017-03-01 16:21:34:068 1232 438 Agent * WSUS server: <NULL>
2017-03-01 16:21:34:068 1232 438 Agent * WSUS status server: <NULL>
2017-03-01 16:21:34:068 1232 438 Agent * Target group: (Unassigned Computers)
2017-03-01 16:21:34:068 1232 438 Agent * Windows Update access disabled: No
(...snip...)
2017-03-01 16:21:42:576 5476 114c CltUI FATAL: CNetworkCostChangeHandler::RegisterForCostChangeNotifications: CoCreateInstance failed with error 80004002
2017-03-01 16:21:42:576 5476 114c CltUI WARNING: RegisterNetworkCostChangeNotification: Error 80004002
2017-03-01 16:21:44:686 1232 734 AU Triggering AU detection through DetectNow API
2017-03-01 16:21:44:686 1232 734 AU Additional Service {117CAB2D-82B1-4B5A-A08C-4D62DBEE7782} with Approval type {Pre-install notify} added to AU services list
2017-03-01 16:21:44:686 1232 734 AU Piggybacking on an AU detection already in progress
2017-03-01 16:22:15:891 1232 80c Misc Validating signature for C:\windows\SoftwareDistribution\SelfUpdate\wsus3setup.cab with dwProvFlags 0x00000080:
2017-03-01 16:22:15:891 1232 80c Misc Microsoft signed: NA
2017-03-01 16:22:15:891 1232 80c Misc Infrastructure signed: Yes
2017-03-01 16:22:15:953 1232 80c Setup Determining whether a new setup handler needs to be downloaded
2017-03-01 16:22:15:953 1232 80c Setup SelfUpdate handler is not found. It will be downloaded
2017-03-01 16:22:15:953 1232 80c Setup Evaluating applicability of setup package "Package_for_KB2887537~31bf3856ad364e35~amd64~~6.2.1.6"
2017-03-01 16:22:15:969 1232 80c Setup Setup package "Package_for_KB2887537~31bf3856ad364e35~amd64~~6.2.1.6" is not applicable
2017-03-01 16:22:15:969 1232 80c Setup Evaluating applicability of setup package "Package_for_KB2887536~31bf3856ad364e35~amd64~~6.2.1.6"
2017-03-01 16:22:18:063 1232 80c Setup Setup package "Package_for_KB2887536~31bf3856ad364e35~amd64~~6.2.1.6" is not applicable
2017-03-01 16:22:18:063 1232 80c Setup Evaluating applicability of setup package "Package_for_KB2887535~31bf3856ad364e35~amd64~~6.2.1.10"
2017-03-01 16:22:19:422 1232 80c Setup Setup package "Package_for_KB2887535~31bf3856ad364e35~amd64~~6.2.1.10" is not applicable
2017-03-01 16:22:19:438 1232 80c Setup SelfUpdate check completed. SelfUpdate is NOT required.
2017-03-01 16:22:19:578 1232 80c PT +++++++++++ PT: Synchronizing server updates +++++++++++
2017-03-01 16:22:19:578 1232 80c PT + ServiceId = {7971F918-A847-4430-9279-4A52D1EFE18D}, Server URL = https://fe2.update.microsoft.com/v6/ClientWebService/client.asmx
2017-03-01 16:22:19:656 1232 80c PT WARNING: Cached cookie has expired or new PID is available
2017-03-01 16:22:19:719 1232 80c Agent Reading cached app categories using lifetime 604800 seconds
2017-03-01 16:22:19:719 1232 80c Agent Read 0 cached app categories
2017-03-01 16:30:44:365 1232 80c Misc WARNING: WinHttp: httpRead failed. error 0x80072ee2
2017-03-01 16:30:44:365 1232 80c Misc WARNING: WinHttp: DoFileDownload PerformDownload failed. error 0x80072ee2
2017-03-01 16:52:59:430 1232 80c Misc WARNING: WinHttp: httpRead failed. error 0x80072ee2
2017-03-01 16:52:59:430 1232 80c Misc WARNING: WinHttp: DoFileDownload PerformDownload failed. error 0x80072ee2
2017-03-01 16:55:24:131 1232 80c Driver Matched driver to device PCI\VEN_8086&DEV_8D3A&SUBSYS_35C88086&REV_05
2017-03-01 16:55:24:131 1232 80c Driver Status: 0x4180200a, ProblemNumber: 00000000
2017-03-01 16:55:24:131 1232 80c Driver Matched driver to device PCI\VEN_8086&DEV_6FD1&SUBSYS_6FD18086&REV_01
2017-03-01 16:55:24:131 1232 80c Driver Status: 0x1802000, ProblemNumber: 00000000
2017-03-01 16:55:24:131 1232 80c Driver Matched driver to device PCI\VEN_8086&DEV_6FD1&SUBSYS_6FD18086&REV_01
2017-03-01 16:55:24:131 1232 80c Driver Status: 0x1802000, ProblemNumber: 00000000
(...snip...)
2017-03-01 16:55:24:178 1232 80c Driver Status: 0x180200a, ProblemNumber: 00000000
2017-03-01 16:55:24:178 1232 80c Driver Matched driver to device PCI\VEN_8086&DEV_8D26&SUBSYS_35C88086&REV_05
2017-03-01 16:55:24:178 1232 80c Driver Status: 0x180200a, ProblemNumber: 00000000
2017-03-01 16:55:54:476 1232 80c PT +++++++++++ PT: Synchronizing extended update info +++++++++++
2017-03-01 16:55:54:476 1232 80c PT + ServiceId = {7971F918-A847-4430-9279-4A52D1EFE18D}, Server URL = https://fe2.update.microsoft.com/v6/ClientWebService/client.asmx
2017-03-01 16:55:58:116 1232 80c DtaStor WARNING: Attempted to add URL http://download.windowsupdate.com/msdownload/update/common/2012/10/6077712_67539bbaa7052f0026b6e124063192bc96ea9e1d.cab
for file Z1ObuqcFLwAmtuEkBjGSvJbqnh0= when file has not been previously added to the datastore
2017-03-01 16:55:58:116 1232 80c DtaStor WARNING: Attempted to add URL http://download.windowsupdate.com/msdownload/update/common/2012/04/4970296_ca03258c4140d420d28973ac55f091a93e1a9efd.cab
for file ygMljEFA1CDSiXOsVfCRqT4anv0= when file has not been previously added to the datastore
2017-03-01 16:55:58:116 1232 80c DtaStor WARNING: Attempted to add URL http://download.windowsupdate.com/msdownload/update/common/2012/04/4967244_b9018351a069cc0f006a57879dcfb1c488f78621.cab
for file uQGDUaBpzA8AaleHnc+xxIj3hiE= when file has not been previously added to the datastore
(...a few hundred more "DtaStor WARNING"s...)
2017-03-01 16:55:58:194 1232 80c DtaStor WARNING: Attempted to add URL http://download.windowsupdate.com/c/msdownload/update/others/2017/02/24214705_43024f1f23f8c8f93ea6c4b16759d1d643949e92.cab
for file QwJPHyP4yPk+psSxZ1nR1kOUnpI= when file has not been previously added to the datastore
2017-03-01 16:55:58:194 1232 80c DtaStor WARNING: Attempted to add URL http://download.windowsupdate.com/c/msdownload/update/others/2017/02/24106723_b9df018bea94e879f8b03daf86c9e918ed3155fa.cab
for file ud8Bi+qU6Hn4sD2vhsnpGO0xVfo= when file has not been previously added to the datastore
2017-03-01 20:01:47:783 5476 114c CltUI FATAL: CNetworkCostChangeHandler::RegisterForCostChangeNotifications: CoCreateInstance failed with error 80004002
2017-03-01 20:01:47:783 5476 114c CltUI WARNING: RegisterNetworkCostChangeNotification: Error 80004002
As of this writing, the last entry is 4 hours old and the service has not been doing anything all this time. Judging by timestamps, last thing it did was to download an EULA for Silverlight, at 16:56.
It is not apparent to me what exactly is going wrong and how to get it all fixed, short of a clean reinstall.
Any suggestions?