[RESOLVED] WaptWUA: Some PCs remain in READY with a scan error

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
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

July 12, 2024 - 10:48

Good morning
Since the last patch Tuesday, I have several dozen PCs whose scans are failing with the following result:

Code: Select all

Ensure wuauserv Auto Update option is disabled
Download all updates
Scanning with windows updates rules:
{
 "direct_download":false,
 "default_allow":false,
 "include_potentially_superseded_updates":false,
 "filter":"Type='Software' or Type='Driver'",
 "download_scheduling":"2d",
 "install_scheduling":"2d",
 "install_delay":"20d",
 "postboot_delay":"10m",
 "user_locale":1033
}
Downloading wsusscn2.cab file from https://srvwapt.MonDomaine/waptwua/wsusscn2.cab
3145728 / 687267824 (0%) (2269 KB/s)
(...)
684720128 / 687267824 (100%) (3119 KB/s)
  -> download finished (3127 KB/s)
   Connecting to local update searcher using offline wsusscn2 file...
   Offline Update searcher ready...
Some windows updates have been installed/uninstalled since last scan
Looking for updates with filter: Type='Software' or Type='Driver'
Waiting for WUA search to complete
WUA Search completed !
Done searching
Updates scan done.
re-enabling wuauserv previous state: 0
(-2147319765, 'Élément introuvable.', None, None)
Traceback (most recent call last):
  File "<string>", line 1939, in run
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 737, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\enterprise.py", line 254, in _run
    self.result = wua.download_updates(self.force, uuids=self.uuids)
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 1609, in download_updates
    self.scan_updates_status()
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 1228, in scan_updates_status
    self.store_cached_update_property(update, 'IsDownloaded', update.IsDownloaded)
  File "C:\Program Files (x86)\wapt\lib\site-packages\win32com\client\__init__.py", line 485, in __getattr__
    return self._ApplyTypes_(*args)
  File "C:\Program Files (x86)\wapt\lib\site-packages\win32com\client\__init__.py", line 478, in _ApplyTypes_
    self._oleobj_.InvokeTypes(dispid, 0, wFlags, retType, argTypes, *args),
pywintypes.com_error: (-2147319765, 'Élément introuvable.', None, None)

0x8002802b : Élément introuvable.
Traceback (most recent call last):
  File "<string>", line 1939, in run
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 737, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\enterprise.py", line 254, in _run
    self.result = wua.download_updates(self.force, uuids=self.uuids)
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 1609, in download_updates
    self.scan_updates_status()
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 1228, in scan_updates_status
    self.store_cached_update_property(update, 'IsDownloaded', update.IsDownloaded)
  File "C:\Program Files (x86)\wapt\lib\site-packages\win32com\client\__init__.py", line 485, in __getattr__
    return self._ApplyTypes_(*args)
  File "C:\Program Files (x86)\wapt\lib\site-packages\win32com\client\__init__.py", line 478, in _ApplyTypes_
    self._oleobj_.InvokeTypes(dispid, 0, wFlags, retType, argTypes, *args),
pywintypes.com_error: (-2147319765, 'Élément introuvable.', None, None)
Any idea what's wrong?

Sincerely
Tom
Last edited by t.heroult on July 12, 2024 - 13:33, edited 1 time.
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 :

July 12, 2024 - 11:04

Good morning,
There is indeed a bug on Microsoft's side regarding the Windows Update service API interfaces since the last patch on Windows 11.
Other "third-party" patching tools also appear to be affected.
See for example: https://www.reddit.com/r/DattoRMM/comme...t/lcjisr0/
For a bit more in depth explanation of the issue: Normally if you search for updates using the IUpdateSearcher COM object, the ISearchResult object that is returned contains an IUpdateCollection object, which in turn contains the IUpdate objects that hold the actual update information.

However, on affected devices, the IUpdateCollection contains only blank COM objects. These objects have no properties or methods beyond those they inherit, so if you try to get the properties of the update, there is nothing found, and so it throws the 0x8002802B error we've been seeing, aka TYPE_E_ELEMENTNOTFOUND.
We hope Microsoft will respond.

On our end, we are currently working on redeveloping our waptwua module using a lower-level API, which, according to our tests, is not affected by this MS bug. However, it will take us 2 to 3 weeks to develop and integrate it to replace the current Python module.
Tranquil IT
User avatar
dcardon
WAPT Expert
Messages: 1930
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

July 12, 2024 - 11:47

Hi Thomas,

to add to Hubert's answer, the regression in the latest Microsoft update impacts all Windows Update calls that rely on the TLB (Type Library), therefore all scripting languages, including Python (which WAPT uses), but also PowerShell Windows Update calls and many other languages ​​and patching solutions like Datto rmm or Altiris.

Regards,

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
jacky35
Messages: 23
Registration: Sep 17, 2020 - 5:51 p.m.

July 12, 2024 - 12:09

Things are starting to get really ridiculous at Microsoft.
The number of problems we're forced to deal with today because of their unreliability.

Jacky
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

July 12, 2024 - 1:30 PM

Thanks Denis and Hubert for this information.

Well, we'll make do until a fix is ​​released!

Best regards,
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
dcardon
WAPT Expert
Messages: 1930
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

July 15, 2024 - 5:58 PM

Hello everyone,

Microsoft has published an article regarding this issue: https://learn.microsoft.com/en-us/windo ... pdate-apis

The fix requires creating a group policy (GPO). We are currently working on creating the appropriate WAPT package.

Regards,

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

July 16, 2024 - 11:29

Thanks for the feedback.
I'd be happy to receive the package; the Microsoft procedure is problematic for creating the GPO with the invalid WMI filter...
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
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

July 16, 2024 - 5:30 PM

The package is available here:

https://wapt.tranquil.it/store/fr/tis-f ... date-issue

Note that a reboot is required. ;)
Locked