Solved CBS Check Utility.


hader

Well-known member
Power User
VIP
Local time
9:24 PM
Posts
664
Location
Zuid-Holland, NL
OS
Win 11 Pro 26H2 Build 26300.9550, Zorin OS Pro
When MS made a change inside their CBS Engine with 26200.8655 a bug was also introduced. (And it is still there with 25H2 26200.9950 and 26H2 26300.9550) DISM /Online /Cleanup-Image /RestoreHealth keeps on downloading 2x 276Mb (1 real, a 2nd time retry bogus attempt because the download server just says: "You got it already...") It does not matter if something is not right or it is alright. The "repair" time went up from ~4 min to ~14 min. (Depending how fast your system is)

So everybody started to use the /ScanHealth option instead.
OK. Nothing wrong with that. It does only the checking fase while /RestoreHealth does the checking and repairing fase.

But....
It happens that /ScanHealth reports "No component store corruption detected. The operation completed successfully." So no errors.
But on some occasions (generally after an update) when you examine the CBS.log file you can see that it found corrupted items...
That's why we need to run /RestoreHealth to fix those issues.

I made an .ps1 script that will search inside the CBS.log for these endresult(s) of /ScanHealth report. It will search for it and displays the result to the user.
When that result is not there in the current CBS.log (because on regular basis the CBS.log makes a new one in order not to grow too large) it will give you the opportunity to run DISM /Online /Cleanup-Image /ScanHealth to produce a report. It will then check the CBS.log again and only finds 1 occurrence and it will display the report to the user.

When you have independently run this command several times it will find and display all these reports. The only one that is actual is always the last one.
If you see corruptions the program will not correct it but just gives you advise to run a DISM /Online /Cleanup-Image /RestoreHealth as shown at the end of the script.

I converted the basic .ps1 script into an .exe (using PS2EXE) so it that can be started from any location on your disk.
It is just a quick check. The file (CBS Check Utility.exe) is attached with this post in a .7z archive if you want to use it.
You may run (when it is extracted) through a anti4us scanner or look inside the .exe (The .ps1 script is visible in there) for inspection.

I made this script because it saves me a lots of time by scrolling through the entire CBS.log file which can be very large. (>100Mb)
It will run as well on 32bit as 64bit systems. I left out that option to make it general.
 
Windows Build/Version
26H2 26300.9950

Attachments

My Computers My Computers

  • At a glance

    Win 11 Pro 26H2 Build 26300.9550, Zorin OS ProIntel® Core™ i7-12700KF 12th Gen. (S1700)32GB DDR5 5600-36 Vengeance (2x16)PCIe4.0 Asus NVIDIA RTX3060Ti
    OS
    Win 11 Pro 26H2 Build 26300.9550, Zorin OS Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self built
    CPU
    Intel® Core™ i7-12700KF 12th Gen. (S1700)
    Motherboard
    ASUS Prime Z690-A, BIOS v4505 (Z690 Intel Chipset)
    Memory
    32GB DDR5 5600-36 Vengeance (2x16)
    Graphics Card(s)
    PCIe4.0 Asus NVIDIA RTX3060Ti
    Sound Card
    Onboard; Realtek
    Monitor(s) Displays
    34" LG 34UC79G-B Curved 21:9 144Hz
    Screen Resolution
    2560x1080 (No HDR)
    Hard Drives
    250Gb Samsung 870PRO NVMe (Win 11 Pro)
    1Tb Samsung 980PRO NVMe
    1Tb Samsung 970EVO NVMe
    2Tb Samsung 990PRO NVMe with heatsink.
    4Tb WDC WD40EZRZ Blue SATA (Int.)
    4Tb WDC WD40EZRZ Blue SATA (Int.)
    3Tb WDC WD30EFRZ Red SATA (Int.)
    256Gb Samsung 840PRO SSD (RHEL 9,5)
    256Gb Samsung 850PRO SSD (Zorin OS Pro 18)
    PSU
    Coolermaster 850W V2 Gold with internal 12cm exaust fan
    Case
    Be-Quiet Pure Base 600.
    Cooling
    3x Be-Quiet! 12/14cm "Silent Wings 4" casefans, 1x Arctic Freezer i35 CPU towerblock with fan.
    Keyboard
    Steelseries APEX 7 keyboard.
    Mouse
    Logitech G-502 Hero
    Internet Speed
    1Gb
    Browser
    Brave
    Antivirus
    F-Secure
    Other Info
    No Noise system.
    256Gb Kingston Travler USB 3.0 drive.
    64Gb Sandisk USB 3.2 drive. (Ventoy)
    8Gb Philips USB 3.0 drive. (Win. Inst.)
    8Gb Philips USB 3.0 drive. (Rescue disk)
    2Tb WD USB 3.0 Passport drive.
    USB Ext. 500Gb WD SATA drive.
    External USB 3.0 C.A. CD/DVD* burner.
  • At a glance

    Windows 11 Pro 26H2Intel® Core™ i7-6700K 6th Gen. (S1151)32Gb DDR4 2400 Corsair Vengeance (4x8)ASUS GeForce GTX1080
    Operating System
    Windows 11 Pro 26H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Selfbuild
    CPU
    Intel® Core™ i7-6700K 6th Gen. (S1151)
    Motherboard
    ASUS Maximus VIII Ranger (Intel Chipset Z170)
    Memory
    32Gb DDR4 2400 Corsair Vengeance (4x8)
    Graphics card(s)
    ASUS GeForce GTX1080
    Sound Card
    Onboard; Realtek
    Monitor(s) Displays
    LG IPS277L 27" WideLED, IPS
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung 850 Pro SSD
    PSU
    Zalman ZM600-HP with internal exhaust fan. Heatpipes & Modular cables.
    Case
    Cooler Master Aero
    Cooling
    Scythe Mugen 4 dual fan towerblock.
    Keyboard
    Red Dragon
    Mouse
    Red Dragon
    Internet Speed
    1Gb
    Browser
    Brave
    Antivirus
    F-Secure
You should post the original script for reference, some AV's flag any executable created by PS2EXE.
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7

Latest Support Threads

Back
Top Bottom