[SOLVED] Windows Server 2022 (21H2) Monthly Updates Failing

JSaw

Active member
Joined
Jan 18, 2024
Posts
25
Location
United Kingdom
Both of Januarys updates are failing to update. Iv done the usual, clearing ccmcache and softwaredistribution, ran sfc and dism command but its still failing.

KB5050187
KB5049983
 

Attachments

Hi @JSaw,

Welcome to Sysnative Forums!

If you haven't already, please review the posting instructions here, and attach the requested log files. Without log files, our helpers will not be able to assist, and this will slow down fixing your machine.

If logs have been already been provided, our team of volunteers will analyse the provided log files to build a fix for your system. Please be aware that this may take several days from your initial post, due to the high volume of threads that we receive.


- Sysnative Windows Update Team
 
Hi,

Which error appears when you try to update?

Export the Windows Update log
  • Right-click on the Start button and click Windows PowerShell (Admin).
  • Copy and paste the following command into it, press enter afterwards
Code:
Get-WindowsUpdateLog
  • Wait for the message "WindowsUpdate.log written to C:\Users\<username>\Desktop\WindowsUpdate.log".
  • Attach the logfile WindowsUpdate.log to your next reply.
 
Hi Maxstar,

The failed error codes from software centre for each KB are:

KB5050187 - The software change returned error code 0x80070057(-2147024809).
KB5049983 - The software change returned error code 0x80070057(-2147024809).

Kind regards
J
 
Hi,

Please run the following command in an elevated PowerShell prompt as requested in post #3 instead of posting the *.etl files.
Code:
Get-WindowsUpdateLog
 
It seems the issue is related to the SCCM configuration: 80246007 - WU_E_DM_NOTDOWNLOADED, because the CBS logs are clean.

So please try the following first. When the update can be successfully installed is must be an SCCM issue.

Follow these instructions to install an update with DISM.
  • Open the Start menu of Windows and type CMD.
  • When you see Command Prompt on the list, select the option Run as administrator.
  • Copy and paste the following command into it, and press enter. (Leave the CMD window open!)
Code:
MD C:\WUTemp
  • Now, download the following update (KB5049983) to: C:\WUTemp - Or copy this file from the download directory to C:\WUTemp. (Important!)
    Downloadlink: KB5049983
  • Copy and paste the following commands one at a time into the command prompt and press enter after each.
Code:
CD C:\WUTemp
EXPAND.exe windows10.0-kb5049983-x64_504225784e5acb6fac71e101f342a0c66cb4a10d.msu -f:* C:\WUTemp
DISM.exe /Online /Add-Package /PackagePath:C:\WUtemp\Windows10.0-KB5049983-x64.cab
  • Let me know if it says it was successful or if there are any errors. Or take a screenshot of the command prompt window and paste it into your next reply.
 
Hi Maxstar,

The first time it appeared to complete and asked me to restart, however I forgot to take a screenshot. When it rebooted I checked update history and it doesn't appear to have installed.

I tried again and it seems to have "completed" but it doesn't look the same compared to the first time it completed. Ill attach ss below.

Kind regards
J
 

Attachments

  • WinUpdate2.webp
    WinUpdate2.webp
    40 KB · Views: 3
  • WinUpdate1.webp
    WinUpdate1.webp
    39.2 KB · Views: 3
Hi,

Open an elevated prompt and run the following command, attach Updatelist.txt to your next post.
Code:
wmic qfe list brief /format:texttablewsys > "%userprofile%\Desktop\UpdateList.txt"
 
Looks like it did install?

I notice when I try to download the other KB, it comes in 2 parts? Do I do the same as before? If so in which order?

Regards
J
 

Attachments

Thanks Maxstar,

Just to be certain, iv ran this command and got this result, would this indicate I need to install KB5049617?

Regards,
J
 

Attachments

  • NetVersion.webp
    NetVersion.webp
    98.8 KB · Views: 3
Please run the following script in an elevated PowerShell prompt, this will show some more information about the installed .NET versions in table style.
Code:
Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -recurse |
Get-ItemProperty -name Version,Release -EA 0 |
Where { $_.PSChildName -match '^(?!S)\p{L}'} |
Select PSChildName, Version, Release
 
I would start installing KB5049617 first, when you try to install the other update you will see a message like: 'not applicable to this system etc..."
 
Thanks for your help Maxstar, all appears to be looking good. I guess I just need to fix the SCCM side for next time right?
 

Attachments

  • UpdateList.webp
    UpdateList.webp
    21.8 KB · Views: 2
  • Net481.webp
    Net481.webp
    51.3 KB · Views: 2
  • Net480.webp
    Net480.webp
    66.1 KB · Views: 2
You're welcome. And yes it seems to be an SCCM issue, but I have no experience with such configurations. But I can ask a colleague if he has time to help you with this?
 
That would be amazing if you could please :-).

My initial thought would be to re run the ccmsetup.exe within "C:\Windows\ccmsetup" and ensure the log shows "Ccmsetup is exiting with return code 0"

I'd be curious to know if your colleague has any further advice.

Kind regards,
J
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top