KB5041054 Install on Server 2022 Failed, Repair Not Possible

On June 21, I told N-able Patch Management to install the out-of-band KB5041054 on a Server 2022 Hyper-V host. Here’s the Microsoft details on that patch:

https://support.microsoft.com/en-us/topic/june-20-2024-kb5041054-os-build-20348-2529-out-of-band-b746ffbd-934e-42ac-9c66-ed0636edf7f1

Patch installation failed at some point and the server rebooted into the Repair mode console (Windows PE):

KB5041054 01

Alas, as explained in the patch article, this is a combined update, a CU plus a Service Stack patch, so you can’t uninstall the update as a whole:

KB5041054 02

Unfortunately, the option suggested in the article for uninstalling just the CU (“dism /remove-package”) is not available from the Repair mode command line:

KB5041054 03

In other words, the patch is created in such a way that you can’t remove it if it fails.

I’m not aware of another way to back out a failed patch. I even tried installing the OS on top of itself, but that only works if you start the installer from inside Windows. I wound up doing a Veeam bare-metal restore of the system volume, which worked fine.

I will note that the same patch installed on other, nearly identical machines without incident. But there should always be a way to uninstall a patch without having to resort to a disaster recovery plan.

Make sure you have disaster plans in place before installing patches.

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.