sfc /scannow, DISM and Windows 11 Installation not working after KB5058502 failure

Anonymous
2025-06-07T00:01:24+00:00

I'm running Windows 11 and today the update KB5058502 attempted to install. However, an error occurred during the update which let to the system get stuck on "Undoing changes made to your computer", which would never actually complete. Through the use of Windows 11 install media on a USB stick, I was able to change the boot from "Windows Rollback" back to "Windows 11". The system mostly functions (Windows Explorer seems to behave normally and most applications seem to work fine), with a few exceptions:

  • Some applications fail to open with the error "The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail."
  • Steam fails to open with the error "The code execution cannot proceed because C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controIs_6595b64144ccf1df_6.0.22621.5262_none_6ebff4ba87ff320e\COMCTL32.dll was not found. Reinstalling the program may fix this problem."
  • sfc /scannow fails with the message "Windows Resource Protection could not start the repair service." (I checked and trustedInstaller is running)
  • DISM /Online fails with the message "Error: 193 An error occurred while attempting to start the servicing process for the image located at C:. For more information, review the log file."
  • Windows 11 Installation Assistant (trying to repair the Windows install) errors with "Installation failed", followed by "Something went wrong | Select Try again, and if that doesn't work, contact Microsoft support for help. Error code 0x800700c1"
  • Installing the KB5058502 update with the standalone installer fails with the message "This update is not applicable to your computer".

I'm assuming this is all because of corrupted files due to the update failing to install (apart from maybe the Windows 11 installation assistant failing, surely that shouldn't even be using installed files...?) Checking the CBS log, I've found that the following error is repeated over and over: "Failed to create CBS worker - waiting for a second and trying again".

OS Version 10.0.22631 Build 22631

Thanks!

Ben

Windows for home | Windows 11 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Ramesh Srinivasan 88,100 Reputation points Independent Advisor
2025-06-09T02:42:19+00:00

Hi,

The new errors are related to Store apps, and DISM can't fix them.

  1. Download Windows 11 Media Creation Tool (MCT) from this link:

https://go.microsoft.com/fwlink/?linkid=2156295

  1. Run MCT and download the ISO it recommends for your system. Do *not* uncheck "Use the recommended options for this PC".
  2. Right-click on the downloaded ISO and choose "Mount." This assigns the ISO a drive letter.
  3. Run setup.exe from the ISO drive. This starts the 24H2 in-place upgrade.

(Your files, settings and applications will be preserved if you use the ISO recommended for your system by the Media Creation Tool.)

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

48 additional answers

Sort by: Oldest
  1. Ramesh Srinivasan 88,100 Reputation points Independent Advisor
    2025-06-07T10:58:05+00:00

    Please run the following command from admin Command Prompt:

    chkdsk c: /f

    Press Y when you see this prompt:


    The type of the file system is NTFS.

    Cannot lock current drive.

    Chkdsk cannot run because the volume is in use by another

    process. Would you like to schedule this volume to be

    checked the next time the system restarts? (Y/N)


    Restart Windows and let chkdsk finish the scan and repairs.

    After rebooting the system, please post the results of the last chkdsk operation. To query the results from the event log, open admin Command Prompt and run:

    wevtutil qe "Application" /q:"*[System[Provider[@Name='Microsoft-Windows-Wininit']]]" /c:3 /f:text /rd:true
    

    Post the output.

    Was this answer helpful?

    0 comments No comments
  2. Ramesh Srinivasan 88,100 Reputation points Independent Advisor
    2025-06-07T11:11:55+00:00

    Note:

    Please update the BIOS for your device. You can get it from the following link:

    Z370XP SLI (rev. 1.0) Support | Motherboard - GIGABYTE Global:

    https://www.gigabyte.com/Motherboard/Z370XP-SLI...

    Standard Disclaimer: There is a link to a non-Microsoft website. The page appears to provide accurate, safe information. Thoroughly research any product advertised on the site before you decide to download and install it.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2025-06-07T20:51:13+00:00

    When available pleas update the progress with the steps in the prior post.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2025-06-07T21:23:21+00:00

    Chkdsk result:

    Event[0] 
    
      Log Name: Application 
    
      Source: Microsoft-Windows-Wininit 
    
      Date: 2025-06-07T14:15:53.1260000Z 
    
      Event ID: 1001 
    
      Task: N/A 
    
      Level: Information 
    
      Opcode: N/A 
    
      Keyword: Classic, 
    
      User: N/A 
    
      User Name: N/A 
    
      Computer: BEN-PC 
    
      Description: 
    
    Checking file system on C: 
    
    The type of the file system is NTFS. 
    
    Volume label is HD8. 
    
    A disk check has been scheduled. 
    
    Windows will now check the disk. 
    
    Stage 1: Examining basic file system structure ... 
    
      1248256 file records processed. 
    
    File verification completed. 
    
     Phase duration (File record verification): 9.91 seconds. 
    
      19270 large file records processed. 
    
     Phase duration (Orphan file record recovery): 5.60 milliseconds. 
    
      0 bad file records processed. 
    
     Phase duration (Bad file record checking): 0.92 milliseconds. 
    
    Stage 2: Examining file name linkage ... 
    
      29962 reparse records processed. 
    
      1601512 index entries processed. 
    
    Index verification completed. 
    
     Phase duration (Index verification): 25.59 seconds. 
    
      0 unindexed files scanned. 
    
     Phase duration (Orphan reconnection): 4.87 seconds. 
    
      0 unindexed files recovered to lost and found. 
    
     Phase duration (Orphan recovery to lost and found): 582.90 milliseconds. 
    
      29962 reparse records processed. 
    
     Phase duration (Reparse point and Object ID verification): 60.53 milliseconds. 
    
    Stage 3: Examining security descriptors ... 
    
    Cleaning up 5046 unused index entries from index $SII of file 0x9. 
    
    Cleaning up 5046 unused index entries from index $SDH of file 0x9. 
    
    Cleaning up 5046 unused security descriptors. 
    
    CHKDSK is compacting the security descriptor stream 
    
    Security descriptor verification completed. 
    
     Phase duration (Security descriptor verification): 143.25 milliseconds. 
    
      176629 data files processed. 
    
     Phase duration (Data attribute verification): 0.99 milliseconds. 
    
    CHKDSK is verifying Usn Journal... 
    
      35606928 USN bytes processed. 
    
    Usn Journal verification completed. 
    
     Phase duration (USN journal verification): 164.42 milliseconds. 
    
    Correcting errors in the Volume Bitmap. 
    
    Windows has made corrections to the file system. 
    
    No further action is required. 
    
     115866922 KB total disk space. 
    
     100008456 KB in 893515 files. 
    
        637572 KB in 176632 indexes. 
    
             0 KB in bad sectors. 
    
       1363158 KB in use by the system. 
    
         65536 KB occupied by the log file. 
    
      13857736 KB available on disk. 
    
          4096 bytes in each allocation unit. 
    
      28966730 total allocation units on disk. 
    
       3464434 allocation units available on disk. 
    
    Total duration: 41.38 seconds (41387 ms). 
    
    Internal Info: 
    
    00 0c 13 00 4c 54 10 00 d4 1d 19 00 00 00 00 00  ....LT.......... 
    
    d4 00 00 00 36 74 00 00 00 00 00 00 00 00 00 00  ....6t..........
    

    Was this answer helpful?

    0 comments No comments