Based on my knowledge, You're encountering Windows Update Error 0x8007000d on Windows Server 2022 (21H2, OS Build 20348.3453), which is preventing installation of KB5058920—a critical update needed to resolve compatibility issues with CIS-CAT Pro Assessor, which is failing with "AUDIT_SUCCESS_FAILURE: Premature end of file"
.
I will provide you a step-by-step fix instructions, you can try it and let me know the situation :
Step 1: first you need to run Windows Update Troubleshooter
- Open Settings > Update & Security > Troubleshoot > Additional troubleshooters.
- Select Windows Update > Run the troubleshooter.
- Apply any fixes it suggests and restart.
Step 2: you will need to reset Windows Update Components manually
Open Command Prompt as Administrator, and run these commands one by one:
- net stop wuauserv
- net stop cryptSvc
- net stop bits
- net stop msiserver
- ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
- ren C:\Windows\System32\catroot2 catroot2.old
- net start wuauserv
- net start cryptSvc
- net start bits
- net start msiserver
Then try running Windows Update again or install the KB manually.
Step 3: Try to download and install KB5058920 manually
- Visit the Microsoft Update Catalog.
- Search for KB5058920.
- Download the version that matches your OS architecture (likely Windows Server 2022 x64).
- Run the .msu file to install the update manually.
If it fails again:
- Use the DISM command to repair Windows before retrying, open CMD as Admin and paste these commands bellow one by one:
- DISM /Online /Cleanup-Image /RestoreHealth
- sfc /scannow