Page 1 of 1

Windows Update Scan Failed

Published: February 21, 2023 - 3:55 PM
by t.heroult
Good morning

On a server, when I run the update scan, I get this error after one minute:

Code: Select all

Ensure wuauserv Auto Update option is disabled
Scanning with windows updates rules:
{
 "direct_download":false,
 "default_allow":false,
 "include_potentially_superseded_updates":false,
 "filter":"Type='Software' or Type='Driver'",
 "download_scheduling":"None",
 "install_scheduling":"None",
 "install_delay":"None",
 "postboot_delay":"10m"
}
Looking for updates with filter: Type='Software' or Type='Driver'
   Connecting to local update searcher using offline wsusscn2 file...
re-enabling wuauserv previous state: 2
(-2147352567, 'Une exception s’est produite.', (0, None, None, None, 0, -2145124303), None)
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1907, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 710, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\enterprise.py", line 216, in _run
    self.result = wua.scan_updates_status(self.force)
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 914, in scan_updates_status
    for update in self.updates():
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 822, in updates
    search_job = self.update_searcher().BeginSearch(self.params.filter, scb_interface, None)
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 784, in update_searcher
    self._update_service = self.update_service_manager().AddScanPackageService("Offline Sync Service", self.wsusscn2)
  File "C:\Windows\TEMP\gen_py\3.8\B596CC9F-56E5-419E-A622-E01BB457431Ex0x2x0\IUpdateServiceManager2.py", line 36, in AddScanPackageService
    ret = self._oleobj_.InvokeTypes(1610743814, LCID, 1, (9, 0), ((8, 1), (8, 1), (3, 49)),serviceName
pywintypes.com_error: (-2147352567, 'Une exception s’est produite.', (0, None, None, None, 0, -2145124303), None)

0x80020009 (Une exception s’est produite.): 0x80240031 ((unable to get meaning for error code 0x80240031))
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1907, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 710, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\enterprise.py", line 216, in _run
    self.result = wua.scan_updates_status(self.force)
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 914, in scan_updates_status
    for update in self.updates():
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 822, in updates
    search_job = self.update_searcher().BeginSearch(self.params.filter, scb_interface, None)
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 784, in update_searcher
    self._update_service = self.update_service_manager().AddScanPackageService("Offline Sync Service", self.wsusscn2)
  File "C:\Windows\TEMP\gen_py\3.8\B596CC9F-56E5-419E-A622-E01BB457431Ex0x2x0\IUpdateServiceManager2.py", line 36, in AddScanPackageService
    ret = self._oleobj_.InvokeTypes(1610743814, LCID, 1, (9, 0), ((8, 1), (8, 1), (3, 49)),serviceName
pywintypes.com_error: (-2147352567, 'Une exception s’est produite.', (0, None, None, None, 0, -2145124303), None)
Any ideas?

Sincerely,
Tom

Re: Windows Update Scan Failure

Published: February 21, 2023 - 6:17 PM
by htouvet
Good evening,
The error would correspond to "One or more Windows Update components in the registry may become corrupted, damaged, or missing."

the order

Code: Select all

sfc /scannow
Launching the command in an administrator command prompt with elevated privileges may help resolve the issue.

Re: Windows Update Scan Failure

Published: February 24, 2023 - 2:21 PM
by dcardon
Hi Thomas,

did running sfc /scannow resolve the issue on the machine? (So we can close the thread)

Denis

Re: Windows Update Scan Failure

Published: March 2, 2023 - 2:29 PM
by t.heroult
I can't try it right now; the server is waiting to reboot, and `sfc /scannow` is waiting for the reboot to complete before running.
It might take a while...