Windows 10: DISM Source files could not be found, sfc /scannow found corrupt files Solved

Page 1 of 2 12 LastLast

  1. Posts : 3
    Windows 10 Professional
       14 Feb 2017 #1

    DISM Source files could not be found, sfc /scannow found corrupt files


    Custom build for a friend.
    OS: Windows 10 Pro, 64-bit
    MB: MSI Z170-A Pro
    Graphics Card: GeForce GTX 680
    CPU: Intel i5 6600K @ 3.50GHz
    RAM: 8g

    Installed OS through bootable USB, as the build has no CD drive.

    On completion of build I had some driver issues which were causing occasional BSoD - however on reading the logs and searching the internet, I finally decided to update to Mobo to the latest driver.
    This solved all the issues, and the PC is now running like a dream.

    However, on doing a routine scan of sfc /scannow it found corrupt files, but weren't able to fix them.
    So I tried "Dism /Online /Cleanup-Image /RestoreHealth", this resulted in:
    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 Configure a Windows Repair Source.

    So I downloaded the Media Creation Tool and made an ISO, mounted it as a virtual drive and did "Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:G:\sources\install.wim:1 /limitaccess"

    Same error code, same description - this is because the ISO from the MCT has the file install.esd instead of install.wim
    Looking around, I was unable to find the TechBench download which supposedly had the correct files, all the links I found lead to dead ends.
    Example: https://www.microsoft.com/en-us/soft...load/techbench
    Leads to: https://www.microsoft.com/library/er...marterror.aspx

    Has it been moved, or am I just blind?

    The PC runs without fault, but I'd hate to hand the PC over, only for him to run into issues down the road due to something I failed to fix.
      My ComputerSystem Spec

  2.    14 Feb 2017 #2

    You can use an ESD file, and the corresponding DISM command is

    Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:H:\sources\install.esd:1 /limitaccess

    The ISO file and the Windows on your system must match. You can determine the ISO version using the following command:

    dism /Get-WimInfo /WimFile:H:\sources\install.esd /index:1

    where H is the mounted drive for the ISO.

    See also:
    https://www.tenforums.com/tutorials/...html#option1s7
    Last edited by Brink; 14 Feb 2017 at 16:03. Reason: added tutorial link for more info
      My ComputerSystem Spec


  3. Posts : 1,864
    Windows 3.1 to Windows 10
       14 Feb 2017 #3

    you should also delete windows\logs\dism\dism.log prior to running command
    then read the dism.log after running the command to determine the files causing corruption issue

    Or use Image-Health (link also in sig below)
    Windows 10 Recovery Tools - Bootable Rescue Disk
      My ComputerSystem Spec


  4. Posts : 3
    Windows 10 Professional
    Thread Starter
       14 Feb 2017 #4

    Thank you both!
    Using the ESD file still gives the following error.

    C:\Windows\system32>Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:H:\sources\install.esd:1 /limitaccessDeployment Image Servicing and Management toolVersion: 10.0.14393.0Image Version: 10.0.14393.0[===========================86.6%================== ]Error: 0x800f081fThe 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 http://go.microsoft.com/fwlink/?LinkId=243077.The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

    Looking through the dism.log the following errors were encountered:

    2017-02-14 21:35:50, Warning DISM DISM OS Provider: PID=5308 TID=7200 Unable to set the DLL search path to the servicing stack folder. C:\Windows may not point to a valid Windows folder. - CDISMOSServiceManager::Final_OnConnect

    2017-02-14 21:35:50, Warning DISM DISM Provider Store: PID=5308 TID=7200 Failed to Load the provider: C:\Users\Mikkel\AppData\Local\Temp\812DDDE9-0868-4FA6-B263-869A6E4D56AE\PEProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)

    2017-02-14 21:35:50, Warning DISM DISM Provider Store: PID=5308 TID=7200 Failed to Load the provider: C:\Users\Mikkel\AppData\Local\Temp\812DDDE9-0868-4FA6-B263-869A6E4D56AE\EmbeddedProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)

    2017-02-14 21:35:52, Warning DISM DISM Package Manager: PID=5308 TID=7200 CBS AddSource failed with HRESULT=0x8007007b! - CDISMPackageManager::Internal_Finalize


    2017-02-14 21:38:12, Error DISM DISM Package Manager: PID=5308 TID=7200 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x800f081f)2017-02-14 21:38:12, Error DISM DISM Package Manager: PID=5308 TID=7200 The source files could not be found; their location must be specified using the /source option to restore the feature. - GetCbsErrorMsg2017-02-14 21:38:12, Error DISM DISM Package Manager: PID=5308 TID=7200 Failed processing package changes with session option CbsSessionOptionRepairStoreCorruption - CDISMPackageManager::RestoreHealth(hr:0x800f081f)2017-02-14 21:38:12, Error DISM DISM Package Manager: PID=5308 TID=7200 The source files could not be found; their location must be specified using the /source option to restore the feature. - GetCbsErrorMsg2017-02-14 21:38:12, Error DISM DISM Package Manager: PID=5308 TID=7200 Failed to restore the image health. - CPackageManagerCLIHandler::ProcessCmdLine_CleanupImage(hr:0x800f081f)2017-02-14 21:38:12, Error DISM DISM Package Manager: PID=5308 TID=7200 Failed while processing command cleanup-image. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x800f081f)

    I'll give Image-Health a shot tomorrow, thank you both for the suggestions.
      My ComputerSystem Spec

  5.    15 Feb 2017 #5

    Did you make sure the ISO and your Windows are the same version? This sounds like they may not be. Just sayin'
      My ComputerSystem Spec

  6.    15 Feb 2017 #6

    Hi,

    That plus DISM really does not work well if at all with .ESD files. I'd try with a .WIM file of the correct version and language instead .

    Cheers,
      My ComputersSystem Spec

  7.    15 Feb 2017 #7

    Good advice ...
      My ComputerSystem Spec


  8. Posts : 3
    Windows 10 Professional
    Thread Starter
       15 Feb 2017 #8

    Yes, I realized I was using a wrong version of the ISO, after about two cups of coffee and an hour of intense staring at the screen.
    Turns out I was just being blind and overthinking the problem.

    Anyway, using the correct ISO magically solved all the 'weird' issues I were facing.
    Thank you all for your swift and on-point advice!
      My ComputerSystem Spec

  9.    16 Feb 2017 #9

    Glad it worked ... you are most welcome.
      My ComputerSystem Spec


  10. Posts : 1,715
    Windows 10 x86 14383 Insider Pro and Core 10240
       16 Feb 2017 #10

    It will work fine with the Install.esd from the MCT if you give the correct index number for the source image file.

    However, unless you look inside the install.esd, it is difficult to know how the file is arranged.

    At a guess, the correct syntax is probably:

    C:\Windows\system32>Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:H:\sources\install.esd:4 /limitaccess

    but without checking the specific install.esd, it could be different.

    Install.wim files also can contain multiple indexed images, and may fail in the same way.


    See here: Windows 10 ISO Download

    If you use 7-zip to open the image you will see what it contains and the [1].xml will detail the index numbers for the image you want to use as source.
      My ComputersSystem Spec


 
Page 1 of 2 12 LastLast

Related Threads
Solved SFC /ScanNow Corrupt Files & DISM fails in Performance & Maintenance
Hi all, Recently updated to windows 10 I've tried a scannow to resolve another issue and I get a failure message with files being corrupted. I've tried a reset keeping my files but I've got no idea where to look next. Attached is my log file from...
Dism source files not found in Performance & Maintenance
I have several problems on my pc and want fix win10 without reinstalling all apps. When I run: DISM.exe /Online /Cleanup-image /ScanhealthI get Error 87. With: DISM.exe /Online /Cleanup-image /CheckHealthI get a message, that it can be...
Hello all, I will try to explain my problem as clear as I can. I am not super tech savvy, so I need your help. I found a thread that seemed to have the same problem but it did not fix mine. Before I upgraded from Windows 8.1 to 10, everything...
I have done an SFC /scannow at least two dozen times now on my Windows 10 tablet, resulting in "Found corrupt files but was unable to fix them" message Several posts on this site alone tell me to do a "dism /online /cleanup-image /restorehealth"...
Solved SFC scannow cannot fix corrupt files, Dism? in Performance & Maintenance
Hi guys. I know this may be old news to some of you guys, but posting anyway. So I installed a game which did some net framework installing and after that had a hang. Removed the game, did sfc and found corrupt files. ...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:55.
Find Us