[RESOLVED] WAPTWUA on 24H2

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
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

January 3, 2025 - 11:39

So, a message for those who might not be reading this:

The Windows Update problems on 24h2 are resolved thanks to this:
https://learn.microsoft.com/en-us/windo ... ber-update

With 24h2, you need to install the kb5048667 cab (the December cab) via a WAPT package:
https://catalog.sf.dl.delivery.mp.micro ... 0c9f93.msu

Note that the Microsoft Windows website is currently still providing the ISO containing the bug because the kb5048667 cab is not integrated...

For those currently on version 2.6, make sure you have the latest version of WAPT 2.6.0.16714 because certain bugs in Windows Update had indeed been identified and are now fixed.
smandel
Messages: 111
Registration: May 5, 2022 - 11:30

January 9, 2025 - 12:03

Hello,

despite manually installing the December cumulative update, several workstations remain stuck in WAPT.
The update doesn't appear as installed in the WAPT console, and consequently, no other updates are installing.
I tried uninstalling and reinstalling the WAPT agent, but the result is the same; the KB still appears as uninstalled in the console.
I tried running "sfc /scannow," but without success.
Do you have any idea how to resolve this issue?

Thank you.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

January 20, 2025 - 10:21

Hello

, actually the problem isn't solved.

I have the impression that the copytocache function is broken on a 24h2 server

(https://learn.microsoft.com/en-us/windo ... ledupdates).

It's the cumulative CAB files that are no longer working... (we're working on it).
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

January 20, 2025 - 5:55 PM

Good morning

We found a workaround...

The new CAB cumulative update 24h2 has changed. The download URLs now directly provide an MSU file from Microsoft.

This had never happened before.

We were able to perform a quick test. When installing a CAB package, if it contains an MSU file, then we directly run the following command:

Code: Select all

wusa.exe "{msufile}" /quiet /norestart
Rather than using Microsoft's traditional API. We had to guess this because Microsoft hasn't communicated about it.

I'll look into releasing a patch (either as a package or as a single release)

Microsoft KB support recommends installing MSUs via wusa/dism: https://support.microsoft.com/en-us/top ... BD=Catalog
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

January 21, 2025 - 10:43

Hello everyone,

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

def install():
    pass

def audit():
    t = WAPT.waptwua()

    stored_updates = t.stored_updates()
    stored_updates_localstatus = t.stored_updates_localstatus()

    do_install={}

    for u in stored_updates_localstatus:
        if u['allowed']:
            if not u['installed']:
                do_install[u['update_id']]=None

    for u in stored_updates:
        if not u['update_id'] in do_install:
            continue
        kbids = u['kbids'][0]
        for f in u['download_urls']:
            end_filename = f.split('/')[-1]
            if not  str( 'kb' + kbids) in end_filename.lower():
                continue
            if not end_filename.endswith('.msu'):
                continue
            msupath = makepath( WAPT.packages_cache_dir,end_filename)
            print(msupath)
            if isfile(msupath):
                with EnsureWUAUServRunning():
                    run('wusa.exe "{}" /quiet /norestart'.format(msupath), accept_returncodes=[0, 3010, 2359302, -2145124329], timeout=1800)
    return "OK"

I've put together a small package for a quick patch for Windows 11 24h2 machines. The UUP bundle is missing certain .cab files that are normally included, and these files are replaced by .msu files. This is probably related to the fact that the Windows Update engine has been broken several times in recent months (at least the October and November updates), and Microsoft prefers to rely on a separate .msu file to fix everything.

So, when you have an MSU file in the download URLs, you directly launch the wusa.exe command. This deviates from using the Windows Update API, which doesn't normally work with MSU files, but it updates the machine, and the Windows Update engine doesn't seem to be malfunctioning afterward (as has often been the case since the release of version 24h2). However, for MSU files, you need to use wusa.exe or dism.exe, or a cmdlet to integrate this type of file.

I would like an official communication from Microsoft, but well... In fact there is an implication in the announcement of the January 2025 KB [1], but they just say to do it this way, not that it is the only way to do it (you can check that in the announcements of previous versions they did not say this).

We'll see about integrating this patch directly into Wapt

[1] https://support.microsoft.com/en-us/top ... BD=Catalog
smandel
Messages: 111
Registration: May 5, 2022 - 11:30

January 29, 2025 - 1:50 PM

Hello,

thank you for the package template!
That helps... but there are still many 24H2 instances where the update installs, but in WAPT it shows as "ERROR" and no other updates install.
I have to create packages for all the updates that won't install...
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

January 29, 2025 - 5:29 PM

smandel wrote: Jan 29, 2025 - 1:50 PM Hello,

thank you for the package template!
That solves the problem... but there are still many 24H2 instances where the update is installed, but in WAPT it shows as "ERROR" and no other updates install.
I have to create packages for all the updates that won't install...
We have a nightly build which should soon be a release that includes this patch.

However, in some cases the engine really doesn't want to install it... sometimes it works better with DISM directly.
Sometimes you need to install the previous cab...
smandel
Messages: 111
Registration: May 5, 2022 - 11:30

February 13, 2025 - 4:31 PM

Hello,

I'm experiencing a strange issue this morning...
All agents are trying to download updates from Windows Update even though they were successfully downloaded from the WAPT server.
The agents are correctly configured not to check Windows Update...

Thank you.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

February 13, 2025 - 6:01 PM

Is the Windows Update service running?

We recently discovered that we need to add additional registry keys:

"DisableDualScan"=1 and
"DoNotConnectToWindowsUpdateInternetLocations"=1.

We are currently working on a project provided by Microsoft called Upsync:
https://github.com/microsoft/update-ser ... c/releases

. Within this project, we noticed the "DualScan" requirement.

We added it to the latest version of WAPT...
smandel
Messages: 111
Registration: May 5, 2022 - 11:30

February 14, 2025 - 10:29

The problem seems to continue occurring in 2.6.0.16937...
The Windows Update service is disabled on the machines.
Locked