Windows Server 2022 with failing Windows Updates.

Hi,

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.
 
Rich (BB code):
2025/02/13 20:05:45.3934358 9288  4632  DownloadManager PurgeExpiredFiles::Deleting expired file at C:\Windows\SoftwareDistribution\Download\3e968e9cc0950bfa90b6e751562b0ddc71dbdcc5.
2025/02/13 20:05:45.3980170 9288  4148  Agent           *FAILED* [80248007] file = onecore\enduser\windowsupdate\client\engine\agent\clientcallrecorder.cpp, line = 2516

Hi,

Please run the following commands in an elevated prompt and post the result.
Code:
net stop wuauserv
net stop bits
ren %systemroot%\SoftwareDistribution SoftwareDistribution.old
net start wuauserv
net start bits
 
Great, please attempt to update again and post the result. If it fails attach a new copy of the CBS logs and the WindowsUpdate log.
 
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 (KB5051979) to: C:\WUTemp - Or copy this file from the download directory to C:\WUTemp. (Important!)
    Downloadlink: KB5051979
  • 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-kb5051979-x64_8b40fef9cafae506c09275c96e3aa883a9e3ae39.msu -f:* C:\WUTemp
DISM.exe /Online /Add-Package /PackagePath:C:\WUtemp\Windows10.0-KB5051979-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.
 
Hmm, please run the following DISM command and post the result. If it fails attach a new copy of the CBS log.
Code:
DISM /online /cleanup-image /RestoreHealth
 
Hi,

Export CBS (Component Based Servicing) hive
  • Click on the Start button and type regedit
  • When you see regedit on the list, right-click on it and select Run as administrator.
  • When regedit opens, using the left pane, navigate to the following registry key and select it by clicking on it once.
    Code:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing
  • Once selected, click File > Export....
  • Change the Save as type: to Registry Hive Files (*.*).

    622dbef75cd3a-Export-CBS-hive.png

  • Name this file ComponentBasedServicing (with no file extension) and save it to your Desktop.
  • Right-click on the saved file and choose Send > Compressed (zipped) Folder.
  • Attach the .ZIP file to your next post.
  • If the file is too large to upload here, upload the file to www.wetransfer.com and post the link in your next reply.
 
Hi,

  • Click the Start button and in the search box, type Command Prompt
  • When you see Command Prompt on the list, right-click on it and select Run as administrator.
  • When command prompt opens, copy and paste the following command into it, press enter afterwards.
    Code:
    chkdsk
  • Wait for this to complete.

Download
6198cd309385f-58a60a47ed1bd-ListChkdskResult.PNG
ListChkdskResult.exe and save it on your desktop.
  • Rightclick ListChkdskResult.exe and select Run as administrator.
  • Notepad will open the file ListChkdskResult.txt on completion. (This logfile ListChkdskResult.txt is also saved on your desktop.)
  • Post the logfile ListChkdskResult.txt as attachment in your next reply.
 
Please run the following DISM command again and let it run till it fails and attach a new copy of the CBS log.
Code:
DISM /online /cleanup-image /RestoreHealth
 

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

Back
Top