DISM /Online /Cleanup-Image /RestoreHealth command says "Error: 0x800f081f ; The source files could not be found."

Anonymous
2023-03-05T18:58:21+00:00

Hello Everybody,

I am not able to execute the command
DISM /Online /Cleanup-Image /RestoreHealth

smoothly to completion.

Why am I running this command? Actually, the reason why I ran this command for the first time in my life was some other problem that I had faced in windows 10, and that problem had gotten solved when I ran this command for the first time in my life. And the DISM /Online /Cleanup-Image /RestoreHealth command had run smoothly to its completion when I had executed this command for the first time in my life.

And the reason why I'm running this command now is different. Windows XP, Vista & 7 used to provide two options for checking a drive for errors: "1)" or "1) + 2)". Here "1)" is "Automatically fix file system errors"; and "2)" is "Scan for and attempt recovery of bad sectors". Windows 10 provides just one option in the windows explorer GUI: "1)". Nevertheless, "1) + 2)" can be executed by starting command prompt as administrator and issuing this command: CHKDSK C: /F /V /R /offlinescanandfix

About an year ago, I faced some problem and to solve it I had to use the commands DISM and SFC. Since then, I replaced this old* sequence of mine

{

Windows Update

CHKDSK C: /F /V /R /offlinescanandfix

Windows Defender Full System Virus Scan
Windows Defender Boot-time Virus Scan

Disc Cleanup
Ccleaner Cleanup

Windows Update
CHKDSK C: /F /V /R /offlinescanandfix
Windows Update

}

of tasks that I execute for the sake of maintenance, by the following sequence:

{

Windows Update

CHKDSK C: /F /V /R /offlinescanandfix

DISM /Online /Cleanup-Image /StartComponentCleanup
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
SFC /scannow

Windows Defender Full System Virus Scan
Windows Defender Boot-time Virus Scan

Disc Cleanup
Ccleaner Cleanup

Windows Update
CHKDSK C: /F /V /R /offlinescanandfix
Windows Update

}

* the oldest version of this sequence included some other things, (like disc defragmentor) between Disc Cleanup and Ccleaner Cleanup, that I - with experience - started to prefer to not execute at all at any moment, after installing the Operating System.

The first three DISM commands ( StartComponentCleanup, CheckHealth & ScanHealth ) are (only this time, unlike the earlier times when the entire sequence used to run smoothly) saying: "The component store is repairable."

And the

DISM /Online /Cleanup-Image /RestoreHealth

command says:

"

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

"

I followed the link https://go.microsoft.com/fwlink/?LinkId=243077 and read that webpage. I downloaded the software "MediaCreationTool22H2.exe" from the website https://www.microsoft.com/en-in/software-download/windows10 and then used that software to download the 4.45 GB iso image file of Windows 10 OS DVD. I mounted the iso file as F drive and then executed the command

DISM /Online /Cleanup-Image /RestoreHealth /Source:F:\sources\sxs

The problem still persists.

Will any of the good people here please help me?

Windows for home | Windows 10 | 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
{count} votes
Answer accepted by question author
  1. Igor Leyko 110.3K Reputation points Independent Advisor
    2023-03-05T20:06:44+00:00

    Hi,

    My name is Igor, it's a pleasure for me to help others and I'll do all my best to help you.

    Unfortunately, there is no /Source option in DISM command, some time ago it was replaced with /Image option. Moreover, this option cannot use ESD images, thou modern builds are packed not as WIM but ESD format.

    Please tell what Windows version you have and what version was downloaded.

    Run command prompt as administrator, run

    DISM /Online /Cleanup-Image /RestoreHealth

    command and show a screenshot with a command and its result.

    60 people found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2023-03-07T02:33:30+00:00

    try running cmd prompt as admin cmd " sfc /scannow " run that then try "dism /online /cleanup-image /restorehealth" it worked for me

    20 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2023-03-05T20:19:59+00:00

    Please perform the following steps in sequence:

    1. Run HD Tune (free or trial version) https://www.hdtune.com/ Post images or share links into this thread displaying the results on these tabs:

    a) Health

    b) Benchmark

    c) Full error scan

    1. Plan to run this step overnight while sleeping:

    Open administrative command prompt and type or copy and paste:

    chkdsk /b /v

    C:\WINDOWS\system32>chkdsk /b /v

    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)

    Type: Y

    Reboot

    1. Uninstall any of these non-Microsoft software:

    a) antivirus

    b) firewall

    c) drive encryption

    1. Place the computer into clean boot: https://www.tenforums.com/tutorials/41804-perform-clean-boot-windows-10-troubleshoot-software-conflicts.html
    2. Perform an in place upgrade repair while in clean boot: https://www.tenforums.com/tutorials/16397-repair-install-windows-10-place-upgrade.html
    3. Run this bat script and post a share link into this thread using one drive, drop box, or google drive

    https://www.tenforums.com/attachments/bsod-crashes-debugging/360137d1645183388-batch-files-use-bsod-debugging-tuneup_plus_log.bat

    3 people found this answer helpful.
    0 comments No comments