Windows Updates Fail and cause Corruption in the CBS log. How to Repair and Analyze (2024)

Windows Updates Repair and Choices in troubleshooting

Windows updates can fail and ultimately show System Corruption. Be on the lookout and try to fix these problems earlier rather than later. The windows updates may not complete perfectly. Check the CBS log after ever update and mitigate with Interweb searches of the errors.

The article provides some guidance on diving into the waters of repair. Each Microsoft KB has specific guidance. See those documents as primary documentation.

This guidance is a summary of recently experienced issues. This is meant to be used as a reference to how to proceed in a general way. Official Microsoft documentation is the primary reference: Windows Update issues troubleshooting - Windows Client | Microsoft Learn

Before beginning, try some basic things to work around:


#1 look for missing or corruption files.

The tools used for this work include:

C:\windows\logs\cbs\cbs.logDism /online /cleanup-image /checkhealthDism /online /cleanup-image /restorehealth

Try to match errors of the CBS log to specific Updates. It is possible to supply the missing update files add keep the OS in repair.

#2 Other messages that show the update client is having problems.

  • Follow this guide for other issues and resolution: Client Repair Guide
  • Try running this and check the CBS log after for results.
  • Then run the same repair commands
Dism /online /cleanup-image /checkhealthDism /online /cleanup-image /restorehealth

Example repair commands:

#outside the OSsfc /scannow /offbootdir=d:\ /offwindir=d:\windowsdism /Online /Cleanup-Image /restorehealth /source:wim:C:\Users\*\Desktop\install.wim:1 /limitaccess

#3 Additional precipitators
Corruption may be due toanti-virus or Defender. These causes can result in a permanent failure condition. A repair install or a clean install of windows may be less labor intensive.

Decide about how much time to spend. Be forewarned steps below maybe tedious and may have a diminishing return on success.

The expected path forward is to do several small incremental changes and then do the same repair steps. The repair install is recommended if:

  • The server is not a domain controller
  • And if the shares can be readily re-created.
  • And if the Steps do not resolve in a reasonable time.

Fltmc shows the filter drivers and how many instances are running. More than 10 would be suspicious. Open a command windows cmd -> fltmc. Remove defender or anti-virus and try steps 1 to 3 again.

Install defender again after the procedure is complete.

#4 Advanced and Microsoft recommended steps

Perform steps which make sense for what is perceived and not damaging to the OS or Data.
Steps 1 to 3 may be repeated after any of the advanced steps. Run any of the steps from the links below.
And keep checking the CBS log for results. Go back to steps 1 to 3 to complete any repair.

#5 Corruption Hidden and public locations

This section covers the locations where the corruption exists. This is educational only. See the following section for ideas about troubleshooting.

  • Component Hive
  • Component Store
  • Component Manifest

Component Hive
Corruption can result from a window update failure. Issues may be resolved by checking the components are correct and match. This section explains what the locations are repaired.
Logical replacement of bad data in these locations could correct the updates issue. Changes to the registry could result in a broken machine. Dell Technologies does not recommend making changes. This is explained for educational purposes only.
Take ownership of the loaded hive and ensuring permissions to this component hive is sufficient to show process monitor results on where a failure is occurring.

The Hive can be mounted and steps 1 to 3 can be run. It may be possible to see where changes occur.

The Component Hive is in C:\Windows\System32\config.

  • Ensure Permissions to the Components file in this folder.
  • Open Regedit as Administrator
  • Choose HKLM
  • File -> Load Hive
  • Open the Component file
  • Use an alternate name like comp1 (see figure 1.)

Windows Updates Fail and cause Corruption in the CBS log. How to Repair and Analyze (1)
Figure 1. Component store in registry

Run this command from an admin prompt and load the hive. Then perform steps 1-3 again.

reg load HKLM\COMPONENTS C:\WINDOWS\SYSTEM32\CONFIG\COMPONENTS

This loads the hive and perhaps makes it accessible to the repair. Document changes and use PERFMON to document failures. A manual edit would be possible.

Other Options such as replacing the Components with a working components would be possible. It would be best to merge only corrupt folders. Keep a backup and restore if any undesired affects result.

Component Manifest

The Goal is to compare the Hive, Manifest, and Store. Try to find differences. Try to make them match. Try to eliminate corruption from the three logical components.
Component Store

  • Windows update component store is inc:\Windows\WinSxS

#6 Fix cases for Corrupt Updates

The following fix examples proceed in order of less to more impactful. Any of the A-E steps can be mixed with the 1 to 6 steps. Removing updates is the last resort, but it is the last step in these instructions.

The order presented below is in the most conservative order. Remove a bad KB first, followed by a cleanup. This may or may not be the needed order. Analysis of the three stores to find the best steps.

Winsxs is cleaned by Dism. SSU is checked for integrity by SFC. But SSU and LCU are not cleaned out by either.

The component store is missing something is most likely. This is true because only the WINSXS is cleared. The corruption is likely reported against a mismatch in the component manifest or the component Hive. The Hive and manifest data may be called corrupt because the component store does not updates installed, but not reflected in that store. The ability to remove a KB depends on the data being "called corrupt."

Only if the removal is not possible, the Hive and Component manifest truly become corrupt and require removal. Remove the KB, followed by the Component manifest.

The plan is to set the update to removable and do a cleanup after removal. That is the documented solution below. IT is at the end as a last resort step.

The Steps here move from least obtrusive to most complexity.

A. Free Tool available
Synative is a company which seems to be keeping up with the issues. This tool is not a perfect fix.
It does cover some of the complexity. It can be run under the admin’s own responsibility. Dell Technologies does not recommend using anything besides Official Microsoft Tools for repair.
Synative is a Microsoft MVP. Contact them for support.
SFCFix Official Download - Repair Windows Update | Sysnative Forums

B. Try Defender repair.

"%PROGRAMFILES%\Windows Defender\MPCMDRUN.exe" -RemoveDefinitions -All"%PROGRAMFILES%\Windows Defender\MPCMDRUN.exe" -SignatureUpdateUninstall-WindowsFeature -Name Windows-DefenderUninstall-WindowsFeature -Name Windows-Defender-Guiinstall-WindowsFeature -Name Windows-Defenderinstall-WindowsFeature -Name Windows-Defender-Gui

C. Component Cleanup
To clean out the WINSXS folderrun component cleanup. This may work after steps A and B.

dism /online /cleanup-image /startcomponentcleanup

D. Remove Last update.
If success has been avoided, it may be fair to just remove the last working update. This is generally a good way to get back to when updates worked. You may still use a script or manually remove any offending updates.
Here is an example:

 wusa /uninstall /kb:3177467 /quiet /norestart


E. Language issues

Language issues may cause a repair install to fail. Verify that the language settings are correct for the default language of the install.

If you find language pack errors in the CBS log. Use the steps to remove the language pack and then go back to the top of the article and perform steps 1-3. Keep moving to the advanced steps if the repair fails.

bcdedit /set {current} locale en-USbcdedit /set {bootmgr} locale en-US

The install language key below should also be checked. Use the proper code for your language.
https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-lcid/70feba9f-294e-491e-b6eb-56532684c37f

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\LanguageInstallLanguage

It is still possible to use the media creation tool and do a repair install. This may or may not work with any given version of the OS. Check the OS-specific documentation.

Download the official MediaCreationTooland run it. Choose theUpgrade this PCoption:

Other language links are available. Here are some examples:

Walkthrough: Create a Windows RE Image.

http://technet.microsoft.com/en-us/library/dd744525(v =ws.10).aspx

Adding Languages

http://technet.microsoft.com/en-us/library/hh825125.aspx#BKMK_AddLanguagePacks

Language pack showing as problem in CBS log Remove Language Pack
Cannot remove language pack after April 2018 Update - Microsoft Community.

F. Updates that will not remove.
Editing the MUM file in the C:\Windows\servicing\Packages folder can allow an update to be removed. This case would be when the update was suspect to be the problem.
Considerations:

  • Cross-check the Manifest, Component Hive and Component store first.
  • Consider adding a missing update instead if appropriate.
  • The Manifest and component store would be the last place to delete a KB.
    1. If a kb is deleted, and is installed, it will not be removable any longer.

The order of operations should be:
1. Find CBS log referencing specific KB.
2. Add references to locations, if possible, to attempt to correct corruption.
3. If an update must be removed, export registry and backup OS first.
4. Remove a KB as a last resort.

Process to remove update
Based from this document
https://docs.microsoft.com/en-us/answers/questions/283013/how-to-uninstall-kb5001078.html

To uninstall the unremovable updates- use the Manifest file and change (powershell example)

# as adminNotepad.exe #Open C:\Windows\servicing\Packages - find here your update (name or/and kb number) # need .mum file#Example : C:\Windows\servicing\Packages\Package_for_KB5001078~randomnubmers~.mum || or can contain name without kb number)Find and replace | permanence="permanent" | TO -> | permanence="removable" | in all files with your update name/numbersDo | wusa /uninstall /kb:5001078 | in powershell.


IN conclusion, The goal is to look at the three components and cause them to match. Using edit find to locate.
Errors in the logs may help zero in on a corrupt item. Search the mounted Component Hive, The Component Store andManifest. Correct, delete, or change the needed items.

The article is laid out with 6 major sections and five letter A-E sections. Run the repair in sections 1 to 6 as each of the A-E sectionsare reviewed. The steps can be run in perpetuity until the corruption is resolved. If the shorter path of repair install makesmore sense, then begin that process.

For a repair install, Back up any print server, Be prepared to re-create shares. Do not perform on a domain controller of SQL or Exchange Server.

To perform the repair install, Insert the Original Media and see the screen below. If this screen does not show, thena repair install is not possible. Proceed with a regular install of Windows.

Windows Updates Fail and cause Corruption in the CBS log. How to Repair and Analyze (2)
Figure 2. Repair Install

 
Windows Updates Fail and cause Corruption in the CBS log. How to Repair and Analyze (2024)

FAQs

Windows Updates Fail and cause Corruption in the CBS log. How to Repair and Analyze? ›

Run DISM

If your PC is malware-free, but you're still stuck with the same error, we suggest running DISM alongside the System File Checker (SFC) utility. The Deployment Image Servicing and Management (DISM) tool should fix all system corruption with ease. Once done, verify if this works as a fix for the corrupt CBS.

How to repair corrupt files in CBS log? ›

Run DISM

If your PC is malware-free, but you're still stuck with the same error, we suggest running DISM alongside the System File Checker (SFC) utility. The Deployment Image Servicing and Management (DISM) tool should fix all system corruption with ease. Once done, verify if this works as a fix for the corrupt CBS.

How to fix failed Windows Update? ›

Table of Contents:
  1. Update and confirm BIOS / drivers with the latest version on your device.
  2. Using Troubleshooting tool in Windows.
  3. Manually install the standalone Windows update package.
  4. Use the System File Checker tool to repair missing or corrupted system files.
  5. Restore the system from restore point.
  6. Reset the system.
Jul 8, 2024

How to analyse CBS log? ›

Why and How to Read CBS. log
  1. Step 1: Press Windows + R to open Run window.
  2. Step 2: Input cmd and press Ctrl + Shift + Enter to run Command Prompt as administrator.
  3. Step 3: Type the following command line and press Enter to execute it: findstr /c:”[SR]” %windir%LogsCBSCBS.log >”%userprofile%Desktopsfclogs.txt.
Dec 8, 2021

What is C:\Windows Logs CBS CBS Log? ›

CBS. log file contains entries that some files aren't repaired after you successfully run the SFC utility - Windows Server | Microsoft Learn. Access curated resources to upskill your team and close skills gaps.

Does CHKDSK fix corruption? ›

Does CHKDSK fix corrupt files? No. CHKDSK is not a data recovery tool and will not repair corrupted files or recover lost or damaged files. But it does check if the state of the information on your disk is safe and consistent, and CHKDSK can help you repair formatting issues with your hard drive.

What to do when Windows Update is corrupted? ›

Using DISM to repair Windows Update corruptions
  1. Open an elevated command prompt. ...
  2. Type the following command, and then press Enter. ...
  3. Type the sfc /scannow command and press Enter. ...
  4. Close the command prompt, and then run Windows Update again.
Jun 14, 2024

How to clean up failed Windows updates? ›

To completely uninstall an update that keeps failing, you can try the following steps:
  1. Open Control Panel.
  2. Open Programs, then open Uninstall a program.
  3. Click View installed updates.
  4. Locate and select the update in the list.
  5. Click Uninstall.
Jan 19, 2024

How to repair Windows 10 after a failed update? ›

Check the system drive for errors and attempt repairs. Run the Windows Update troubleshooter. Attempt to restore and repair system files. Update Windows so that all available recommended updates are installed, and ensure the computer is rebooted if it is necessary to complete installation of an update.

Is it OK to delete CBS logs? ›

1 Answer. You can safely delete logs in c:\windows\logs\CBS, but don't touch WinSxS, your server won't boot if you mess with the folder's content.

How to repair corrupted files? ›

How to Fix Corrupted Files
  1. Perform a check disk on the hard drive. Running this tool scans the hard drive and attempts to recover bad sectors. ...
  2. Use the CHKDSK command. This is the command version of the tool we looked at above. ...
  3. Use the SFC /scannow command. ...
  4. Change the file format. ...
  5. Use file repair software.
Jun 12, 2024

How do I shrink CBS log? ›

Simplest solution is to stop the Windows Modules Installer (TrustedInstaller) service and delete the \cbs. log Then a new file will automatically be created.

Is it OK to clear Windows logs? ›

Doing some more research on cleaning up space on my C drive, and one article suggested that I clear out my event logs-is this ok to do? Yes, but it won't free much space. You'd be better off running something like Treesize and finding out what is taking up the space.

How do I clear audit logs in Windows? ›

Answer:
  1. Open Event Viewer and select the Windows log you wish to clear.
  2. Right-click on the log and select Clear Log.
  3. Select Save and Clear.
  4. Browse to a folder where you want to save the log file to and click Save.

How to clear logs in Windows cmd? ›

Clear All Event Logs in Windows 10 using Command Prompt
  1. Open an elevated command prompt.
  2. Type or paste the following command: for /F "tokens=*" %1 in ('wevtutil.exe el') DO wevtutil.exe cl "%1"
Feb 25, 2017

How do I fix corrupted files? ›

How to Fix Corrupted Files
  1. Perform a check disk on the hard drive. Running this tool scans the hard drive and attempts to recover bad sectors. ...
  2. Use the CHKDSK command. This is the command version of the tool we looked at above. ...
  3. Use the SFC /scannow command. ...
  4. Change the file format. ...
  5. Use file repair software.
Jun 12, 2024

Is it safe to delete CBS log files? ›

1 Answer. You can safely delete logs in c:\windows\logs\CBS, but don't touch WinSxS, your server won't boot if you mess with the folder's content.

How do I recover corrupted data files? ›

Here are some steps to help you recover data from a corrupted hard drive on Windows 11:
  1. Step 1: Diagnose the Problem. The first step is to determine if the hard drive is physically damaged or if it is just a software issue. ...
  2. Step 2: Use CHKDSK. ...
  3. Step 3: Use a Data Recovery Software. ...
  4. Step 4: Restore from Backup.

What command fixes corrupt system files? ›

The sfc /scannow command will scan all protected system files, and replace corrupted files with a cached copy that is located in a compressed folder at %WinDir%\System32\dllcache.

Top Articles
Rj01024127
Into Algebra 1 Journal And Practice Workbook: 9780358055334 | HMH
Spasa Parish
Rentals for rent in Maastricht
159R Bus Schedule Pdf
Sallisaw Bin Store
Black Adam Showtimes Near Maya Cinemas Delano
Espn Transfer Portal Basketball
Pollen Levels Richmond
11 Best Sites Like The Chive For Funny Pictures and Memes
Things to do in Wichita Falls on weekends 12-15 September
Craigslist Pets Huntsville Alabama
Paulette Goddard | American Actress, Modern Times, Charlie Chaplin
Red Dead Redemption 2 Legendary Fish Locations Guide (“A Fisher of Fish”)
What's the Difference Between Halal and Haram Meat & Food?
R/Skinwalker
Rugged Gentleman Barber Shop Martinsburg Wv
Jennifer Lenzini Leaving Ktiv
Justified - Streams, Episodenguide und News zur Serie
Epay. Medstarhealth.org
Olde Kegg Bar & Grill Portage Menu
Cubilabras
Half Inning In Which The Home Team Bats Crossword
Amazing Lash Bay Colony
Juego Friv Poki
Dirt Devil Ud70181 Parts Diagram
Truist Bank Open Saturday
Water Leaks in Your Car When It Rains? Common Causes & Fixes
What’s Closing at Disney World? A Complete Guide
New from Simply So Good - Cherry Apricot Slab Pie
Drys Pharmacy
Ohio State Football Wiki
Find Words Containing Specific Letters | WordFinder®
FirstLight Power to Acquire Leading Canadian Renewable Operator and Developer Hydromega Services Inc. - FirstLight
Webmail.unt.edu
Tri-State Dog Racing Results
Navy Qrs Supervisor Answers
Trade Chart Dave Richard
Lincoln Financial Field Section 110
Free Stuff Craigslist Roanoke Va
Wi Dept Of Regulation & Licensing
Pick N Pull Near Me [Locator Map + Guide + FAQ]
Crystal Westbrooks Nipple
Ice Hockey Dboard
Über 60 Prozent Rabatt auf E-Bikes: Aldi reduziert sämtliche Pedelecs stark im Preis - nur noch für kurze Zeit
Wie blocke ich einen Bot aus Boardman/USA - sellerforum.de
Infinity Pool Showtimes Near Maya Cinemas Bakersfield
Dermpathdiagnostics Com Pay Invoice
How To Use Price Chopper Points At Quiktrip
Maria Butina Bikini
Busted Newspaper Zapata Tx
Latest Posts
Article information

Author: Manual Maggio

Last Updated:

Views: 6534

Rating: 4.9 / 5 (69 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Manual Maggio

Birthday: 1998-01-20

Address: 359 Kelvin Stream, Lake Eldonview, MT 33517-1242

Phone: +577037762465

Job: Product Hospitality Supervisor

Hobby: Gardening, Web surfing, Video gaming, Amateur radio, Flag Football, Reading, Table tennis

Introduction: My name is Manual Maggio, I am a thankful, tender, adventurous, delightful, fantastic, proud, graceful person who loves writing and wants to share my knowledge and understanding with you.