Windows Update Scan Failed

Share your tips or issues concerning the WAPT Console or WAPT Agent here
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

February 21, 2023 - 3:55 PM

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
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

February 21, 2023 - 6:17 PM

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.
Tranquil IT
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

February 24, 2023 - 2:21 PM

Hi Thomas,

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

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

March 2, 2023 - 2:29 PM

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...
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
Locked