Using dism & sfc with errors

54988485 96 Reputation points
2021-09-29T14:27:21.73+00:00

@Docs
I was advised to create a new thread for my issues trying to repair a hybrid mbr/uefi installation of Windows 10 updated up to 21H1 through windows update.

Windows in this scenario will not allow an in place upgrade using windows 21H1 setup iso giving the usual lame reason of unusual uefi configuration.

All the Dism advice to fix Windows 10 21H1 failed for me apart from these two used consecutively:

dism.exe /Online /Cleanup-Image /AnalyzeComponentStore

dism.exe /Online /Cleanup-Image /StartComponentCleanup

Running
sfc /scannow I get
C:\windows\system32>sfc /scannow

Beginning system scan. This process will take some time.

Beginning verification phase of system scan.
Verification 100% complete.

Windows Resource Protection found corrupt files but was unable to fix some of them.
For online repairs, details are included in the CBS log file located at
windir\Logs\CBS\CBS.log. For example C:\Windows\Logs\CBS\CBS.log.

Background - cloned a mbr with uefi bootloader from a sata hard disk to a sata ssd disk, had to do some adjusting so bootloader works with bcdboot command line after creating a fat32 esp partition.

Docs-4663 advised me to do this -

In the new thread post images or share links (one drive, drop box, or google drive) with these commands and results:

sfc /scannow
dism /online /cleanup-image /scanhealth
dism /online /cleanup-image /restorehealth
sfc /scannow

so since I did
sfc /scannow

I will complete with the rest i.e.
dism /online /cleanup-image /scanhealth
dism /online /cleanup-image /restorehealth
sfc /scannow

--- to be filled with results below... ---

C:\windows\system32>dism /online /cleanup-image /scanhealth

Deployment Image Servicing and Management tool
Version: 10.0.19041.844

Image Version: 10.0.19043.1237

[==========================100.0%==========================] The component store is repairable.
The operation completed successfully.

C:\windows\system32>dism /online /cleanup-image /restorehealth

Deployment Image Servicing and Management tool
Version: 10.0.19041.844

Image Version: 10.0.19043.1237

[==========================100.0%==========================]
Error: 0x800f081f

The source files could not be found.
Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see https://go.microsoft.com/fwlink/?LinkId=243077.

The DISM log file can be found at C:\windows\Logs\DISM\dism.log

---

So the question is where is the source file - I did change the policy so it will use windows update as source, but it does not seem to comply...

since the last command failed, is there a point in running sfc / scannow again?

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

Accepted answer
  1. 54988485 96 Reputation points
    2021-10-22T03:18:04.293+00:00

    Finally - October 12, 2021—KB5006670 (OS Builds 19041.1288, 19042.1288, and 19043.1288)
    Some update files are missing or have problems. We'll try to download the update again later. Error code: (0x80073712).

    System successfully updated to KB5006670 on 22/10/2021.

    I believe the repair package by Tweaking.com cleaned & repaired Windows Update for me.

    Next step - I will clone this installation to an SSD so I can run it on other more powerful compatible PCs whilst keeping all the features & settings of my main PC - which btw is not compatible with Windows 11, & no sorry I won't pay for yet another PC for the "privilege" to use Windows 11.
    The older cloned SSD I formatted because its installation was beyond repair.

    cc @Docs

    0 comments No comments

15 additional answers

Sort by: Most helpful
  1. Docs 15,761 Reputation points
    2021-09-29T22:52:48.503+00:00

    Open disk management > by default some of the columns are compressed > widen each Volume and Status and make sure that non of the characters are cutoff > view the disk 0 row > widen the row as needed so that no characters are cutoff >post an image or share link into this thread
    https://www.tenforums.com/tutorials/2503-how-post-screenshot-disk-management.html

    Download and install Minitool partition wizard (free version) > click launch > post an image or share link into this thread
    https://www.partitionwizard.com/

    Find a flash drive that you can format ( > or = 8 GB).

    Create a bootable Windows 10 iso 21H1:
    https://www.tenforums.com/tutorials/9230-download-windows-10-iso-file.html
    https://www.microsoft.com/en-us/software-download/windows10

    List any of these installed or recently uninstalled non-Microsoft software:
    a) antivirus
    b) firewall
    c) drive encryption

    .
    .
    .
    .
    .
    Please remember to vote and to mark the replies as answers if they help.

    On the bottom of each post there is:

    Propose as answer = answered the question

    On the left side of each post: Vote = a helpful post
    .
    .
    .
    .
    .

    1 person found this answer helpful.

  2. Docs 15,761 Reputation points
    2021-09-30T13:39:21.873+00:00

    The success and failure of an in place upgrade repair is not related to whether the BIOS is UEFI, UEFI with CSM, or Legacy BIOS.

    Changing from Legacy BIOS to UEFI BIOS is independent.

    It does not have to be done at this time and may add further confusion.

    At a later time instruction can be posted for MBR to GPT or GPT to MBR or Legacy to UEFI or UEFI to Legacy.

    .
    .
    .
    .
    .
    Please remember to vote and to mark the replies as answers if they help.

    On the bottom of each post there is:

    Propose as answer = answered the question

    On the left side of each post: Vote = a helpful post
    .
    .
    .
    .
    .

    1 person found this answer helpful.

  3. Docs 15,761 Reputation points
    2021-10-01T22:20:51.773+00:00

    When available please post the results from the earlier posts:

    disk management
    minitool partition wizard

    List each: (use none if applicable)
    antivirus
    firewall
    drive encryption

    Run the V2 log collector (it was designed for BSOD and can be applied to non-BSOD problems) and post a share link into this thread using one drive, drop box, or google drive

    https://www.windowsq.com/t/bsod-posting-instructions.17/
    https://www.windowsq.com/resources/v2-log-collector.8/
    https://www.tenforums.com/bsod-crashes-debugging/2198-bsod-posting-instructions.html

    Run setupdiag > post a share link into this thread using one drive, drop box, or google drive
    https://learn.microsoft.com/en-us/windows/deployment/upgrade/setupdiag

    .
    .
    .
    .
    .
    Please remember to vote and to mark the replies as answers if they help.

    On the bottom of each post there is:

    Propose as answer = answered the question

    On the left side of each post: Vote = a helpful post
    .
    .
    .
    .
    .

    1 person found this answer helpful.

  4. 54988485 96 Reputation points
    2021-10-01T10:29:51.53+00:00

    I just want to add here that in place upgrade worked for me on another install with 20H2, however I had to get the latest 21H1 iso & selected not to update files before upgrading.
    So overall not a seamless experience in all settings / configurations.

    Also Microsoft update upgraded the 21H1 cloned on SSD, maybe this has solved the shutdown issues I had & repaired the corrupt files neither SFC nor DISM could repair.

    So I would tentatively state for my intent & purpose the problem as somewhat solved.

    It is unlikely I will upgrade to Windows 11, & not sure even if I can with the hardware I got.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.