Found my way here from a thread on SysNative.net. Had the same problem as Daryl in an earlier comment, where my trial edition of 2022 was converted to a full copy using:
DISM /Online /Set-Edition:ServerStandard /ProductKey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx /AcceptEula
This problem has, unfortunately, been going on for over a year - but this is the first time I've managed to find other threads about it. I followed the troubleshooting steps for Windows update in page 2 of the previously linked thread to no avail. This is after running chkdsk c:\ /b
, DISM /Online /Cleanup-Image /RestoreHealth
and sfc /scannow
, where the latter two were given multiple passes to be safe. Though, while running through the troubleshooting steps from SysNative, I saw references to %SystemRoot% - this did not exist on my system, so I added it to my environment variables. (Not sure if relevant, but adding in to be safe.)
Alongside KB5031364, was also KB5030998 that was failing. Attempting to manually install the latter KB led to me discovering that it was split into two smaller KBs - one for .NET 4.8 and .NET 4.8.1. The manual install for the 4.8.1 KB failed, claiming a system incompatibility (despite the overarching KB showing up in Windows Update). Installing .NET 4.8.1 allowed this portion of the KB to patch it to go through. Pausing and unpausing updates finally cleared this from the list.
This left KB5031364 failing on status 0x8007054f . This is fascinating, as this wasn't the error code it was previously throwing; however, the update history no longer shows the prior failure code, so I'm not sure where to find that. At this point, I attempted to use the built-in Windows Update troubleshooter, as well as following Microsoft's Windows Update troubleshooting steps.
As of now, KB5031364 still refuses to budge.