sodcalculator

10 Tech How-To

KB5120233 Install Error: What Windows Logs Reveal

Guide 10-20642 · Updated · Step by step

If you are seeing a KB5120233 install error on Windows, the event logs and setup logs on your system can tell you exactly why the update failed, which component is at fault, and what to try next. This article explains which logs to open, what to look for in each, and how to interpret the most common error codes and patterns.

Background: What Is KB5120233?

KB5120233 is a Windows update identifier used by Microsoft for a cumulative update or a servicing stack update, depending on the Windows version you are running. These updates are delivered through Windows Update and can fail for many reasons: corrupted system files, conflicting drivers, insufficient disk space, or a stalled Windows Update service. The update itself is not special; it follows the same installation pipeline as every other patch, which means the logs that record its progress are the same logs you would inspect for any other failed update.

Where Windows Writes Update Logs

Windows records update activity in several places, and each one tells a different part of the story:

  • Windows Update log (Windows 10/11): Located at C:\Windows\Logs\WindowsUpdate\WindowsUpdate.log. This is the primary log for the update client and shows the download, staging, and installation phases.
  • Setup log (CBS log): Located at C:\Windows\Logs\CBS\CBS.log. This log records component-based servicing operations, which is where the actual file changes happen during an update.
  • Setup log (DISM): Located at C:\Windows\Logs\DISM\dism.log. This is used when you manually repair or install updates using DISM commands.
  • Event Viewer: Open Event Viewer (eventvwr.msc) and look under Windows Logs > System for events from source WindowsUpdateClient or Microsoft-Windows-WindowsUpdateClient. These events contain the update GUID, result code, and a human-readable message.
  • Setup log (Windows Update Medic Service): Located at C:\Windows\Logs\WUMedicSvc\WUMedicSvc.log. This log records the actions of the Windows Update Medic Service, which automatically repairs corrupted update components.

For a KB5120233 install error, the two logs you will most often need are WindowsUpdate.log and CBS.log. The WindowsUpdate.log tells you whether the failure happened during download, during staging, or during installation. The CBS.log tells you which specific component or file could not be processed.

How to Read WindowsUpdate.log

The WindowsUpdate.log is a plain text file that you can open with Notepad. Each line has a timestamp, a process ID, a thread ID, and a message. To find the relevant section for KB5120233, search for the update title or its GUID. The log will show a sequence like this:

  1. Search: The update is found and its metadata is downloaded.
  2. Download: The update payload (the .cab and .psf files) is downloaded to C:\Windows\SoftwareDistribution\Download.
  3. Staging: The update is prepared for installation.
  4. Install: The update is applied to the system.

If the failure occurs during any of these steps, the log will contain an HRESULT error code. Common ones include:

  • 0x80070005 – Access denied. The update service does not have permission to write to a file or registry key.
  • 0x80070020 – The process cannot access the file because it is being used by another process. Often a third-party antivirus or a running service is locking a file.
  • 0x800f081f – The update is not applicable to your system. This usually means the update is not intended for your Windows version or you are missing a prerequisite update.
  • 0x800f0984 – The update requires a newer servicing stack update.
  • 0x8024200d – The update failed to install because the system is in a state that prevents it, such as a pending reboot or a previous update still in progress.

If you see 0x800f081f or 0x800f0984, the log is telling you that the update is not the problem; your system is missing something else. Check whether you have installed the latest servicing stack update (SSU) and whether your Windows version matches the update’s requirements.

How to Read CBS.log

The CBS.log is more verbose and can be intimidating, but you only need to search for the timestamp around the failure. Look for lines that contain Error or Failed. A typical entry looks like:

2025-04-01 10:23:45, Error CSI 00000008 (F) Failed to install update [update GUID]

You will often see a CSI (Component Servicing Infrastructure) error code. The most common is 0x800f0900, which means a corrupt file was detected during the update. The CBS.log will usually name the exact file that failed, such as a .dll or .sys file. If you see a specific file name, you can use the System File Checker (sfc /scannow) or DISM /RestoreHealth to repair it.

Another common pattern is a poqexec failure. The Pending.xml file in C:\Windows\WinSxS lists pending operations. If the CBS.log shows an error while processing pending operations, the update may have been left in a partially installed state. In that case, you may need to remove the pending operations or use the Windows Update Troubleshooter to reset the update components.

What the Logs Tell You About the Root Cause

By cross-referencing the WindowsUpdate.log and CBS.log, you can narrow down the root cause:

  • If the failure is in WindowsUpdate.log but not in CBS.log: The problem is likely with the update client itself, such as a corrupted download or a stalled service. Try clearing the SoftwareDistribution folder and running Windows Update again.
  • If the failure appears in both logs with the same file name: The update is trying to replace a file that is either missing, corrupted, or locked. Run sfc /scannow first, then DISM, and if the file is still problematic, check if a third-party program is interfering.
  • If the failure appears only in CBS.log with a 0x800f0900 error: The system file store is corrupted. Use DISM with the /RestoreHealth option to repair the component store before retrying the update.
  • If the failure appears as 0x80070005 (access denied): Check the permissions on the C:\Windows\SoftwareDistribution folder and the C:\Windows\WinSxS folder. Sometimes a security policy or a third-party security tool restricts access.

One common misconception is that the error code in the Windows Update Settings page (e.g., 0x800f081f) is enough to diagnose the problem. It is not. The code only tells you the category of failure. The logs give you the exact file and operation that failed, which is what you need to fix it.

How to Use the Logs to Fix the Error

Once you have identified the root cause from the logs, here are the steps you can take, in the order you should try them:

  1. Restart the Windows Update service and clear the download cache. Open Command Prompt as Administrator and run:
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 retry the update. This fixes most download and staging failures.

  1. Run the System File Checker and DISM. In an elevated Command Prompt, run:
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth

This repairs corrupted system files that the CBS.log may have flagged.

  1. Use the Windows Update Troubleshooter. Go to Settings > System > Troubleshoot > Other troubleshooters and run the Windows Update troubleshooter. It automatically resets update components and clears temporary files.
  2. Manually download the update from the Microsoft Update Catalog. If the logs show a download failure, go to the Microsoft Update Catalog website, search for KB5120233, and download the standalone installer. Run it as Administrator. This bypasses the Windows Update client entirely.
  3. Check for pending operations. If the CBS.log shows a pending operation error, you may need to use the Component Cleanup tool or manually delete the Pending.xml file after backing it up. This is an advanced step and should be done with caution.

Frequently Asked Questions

What is the difference between WindowsUpdate.log and CBS.log?

WindowsUpdate.log tracks the update client’s actions: searching, downloading, and staging. CBS.log tracks the actual servicing operations that modify system files. If the update fails during download, you will see it in WindowsUpdate.log. If it fails while applying files, you will see it in CBS.log.

Can I delete the WindowsUpdate.log file?

Yes, you can delete or rename it. Windows will recreate it the next time you run Windows Update. However, if you delete it before collecting the error information, you will lose the diagnostic data you need. Copy it to another location first if you plan to share it with a support forum.

Why does the error code 0x800f081f appear even though I have the latest Windows version?

0x800f081f means the update is not applicable. This can happen if the update is a preview or a cumulative update that requires a specific servicing stack update (SSU) that you do not have. Check the update’s prerequisites in the Microsoft Update Catalog and install the required SSU first.

How do I find the exact error code in the logs?

Search the WindowsUpdate.log for the update title or GUID, then look for lines containing HRESULT or Error. The code will be in hexadecimal format, like 0x80070005. In CBS.log, search for Error and look for the CSI error code.

Is it safe to manually install KB5120233 from the Microsoft Update Catalog?

Yes, if you download the correct version for your Windows architecture and version. The Update Catalog lists the exact file names and prerequisites. Running the installer as Administrator is safe, but if the logs indicate a system file corruption, you should repair that first before manually installing.

What if the logs show no error at all?

If the logs show the update was successfully staged but the installation never started, the problem is likely a pending reboot or a conflict with another update. Restart your computer and try again. If the logs show nothing at all, the update may not have been offered to your system, and you should check your Windows Update settings and the update history for related failures.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →