Windows 8 and 8.1 Forums

'dism' error message

  1. #1

    'dism' error message

    I have two Windows PC's both running Windows 8.1 - they both have an issue that apparently needs to be corrected with 'dism'.

    After doing the "SFC /scannow" repeatedly, they always find an error.

    I did:
    dism /online /cleanup-image /checkhealth then
    dism /online /cleanup-image /checkhealth and finally
    dism /online /cleanup-image /restorehealth

    After all this, on both machines, I get an error message "The source files could not be downloaded.", and then "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 "".

    Then it tells me where the log file can be found.


    Here are my questions. I have read that dism's first choice is to download new versions of the corrupted files, using "Windows Update". Is this correct?

    Next, if the above is true, why can't dism do this from Windows Update when I can manually download other updates?

    Finally, I have found a lot of information that I don't understand regarding using the "source" option, but noplace can I find a clear set of instructions for how to do this.

    Are the needed files still someplace on my PC? If so, where, and once I know where, what would I type in the following, which I think is what I need to do:
    dism /online /cleanup-image /source???????? /restorehealth

    And last, can I simply insert the Windows CD in my computer, and find the needed files there?

    I have read threads here with the same question, but they were resolved by the user posting the log files, and someone here sorting out what the errors are. I plan to do that later tonight, but from everything I've read, 'dism' is supposed to find out what the files are, then download un-corrupted versions of them, then replace the bad files with correct files. It is supposed to get them from "Windows Update". I would prefer to learn how to do it this way, so I'll be able to help with other people's computers with a similar issue.

    (It's a year old version of Windows 8.1 on one PC, and a reasonably up to date version on the other. One is at work, the other at home.)

      My System SpecsSystem Spec

  2. #2

    Harrisonburg, Va.
    Posts : 10,488
    Windows 8.1.1 Pro with Media Center

    See this---

    Repair Corrupt Windows Image - Error 0x800f0906

    See pictures---

    Click image for larger version

    Press Enter.

    Click image for larger version

    Click image for larger version
      My System SpecsSystem Spec

  3. #3

    Thanks! Am trying that now. (I'm in Madurai, by the way!)
    I tried turning off my firewall, but that made no difference.

    Earlier today, at the hospital, I tried this:
    Repair Corrupt Windows Image - Error 0x800f0906
    Didn't make any difference.

    I'm now working on the Win-8 laptop, in 'safe mode'. Apparently System Update isn't running, but can I do the other steps you posted while in 'safe mode'?
      My System SpecsSystem Spec

  4. #4

    Addition later - read through everything you posted, twice, slowly - sounds like you have now set things back to what they "should" have been as the default setting!!!! Am trying this now. Thank you!!!

    Every source I've read so far implies that the settings you've just showed are already the 'default', and people can specify a different 'source' if they wish to - but the default settings actually seem to deliberately prevent this!! (Even the documents I read from Microsoft are incorrect.)
      My System SpecsSystem Spec

  5. #5

    Hmm.... everything you suggested sounds perfectly logical, but I get exactly the same error message. I did this twice (but I'm still in Safe Mode). I know Windows Update isn't running in Safe Mode - I guess I can either turn on those services, or re-boot in normal mode.

    Reading all the text in the "Specify settings for optional component installation and component repair", the very last line says "If you disable or do not configure this policy setting, or if the required files cannot be found at the locations specified in this policy setting, the files will be downloaded from Windows Update, if that is allowed by the policy settings for the computer.

    Is there another file for computer policy settings I need to edit as well as this one?
      My System SpecsSystem Spec

  6. #6

    Posts : 2,690
    Windows 3.1 > Windows 10

    Then it tells me where the log file can be found

    the dism log will state the ERROR and file - missing or corrupt (open with notepad)
      My System SpecsSystem Spec

  7. #7

    I used the computer at the hospital to see if the above suggestions would help there. First I deleted the old dism.log file. Without making the changes using 'gpedit' I ran the 'dism' utility, then copied and saved the error message.

    I then deleted that log file, did make the changes shown for 'gpedit', and ran 'dism' again, then saved that to another log file.

    If I knew how to use UNIX tools on Windows, I could compare the two log files and see if anything is different, but under Windows I don't have a utility to do that.

    I could post those two log files here, but I'm guessing that is overkill. If I just post the lines for each file including "error", presumably that would identify which files are corrupted, but without fixing 'dism' so it works, I don't know how I would correct them - I thought that is what 'dism' is supposed to do.

    Quick question - I know that the default for 'dism' is supposed to be to get files from Windows Update, but even with the above fix I have no way to know if it's really looking in that correct location for the files. Is there a way to use the /source selection to specifically tell it to look at Windows Update, just in case that is still broken?

    There has to be a mistake somewhere in the settings for 'dism' such that two completely separate computers, in different locations, and different everything else, behave exactly the same way. 'Guru' found one set of errors in the way Microsoft provided the software; maybe there are more?

    In the meantime, I will filter our everything but the "ERROR" lines from the log files.
      My System SpecsSystem Spec

  8. #8

    These are the lines with "Error" in them, along with a little before and after.

    2015-05-09 16:31:39, Info DISM DISM Package Manager: PID=5036 TID=3304 CBS session options=0x48100! - CDISMPackageManager::Internal_Finalize

    2015-05-09 17:27:39, Info DISM DISM Package Manager: PID=5036 TID=5000 Error in operation: source for package or file not found, ResolveSource() unsuccessful. (CBS HRESULT=0x800f081f) - CCbsConUIHandler::Error
    2015-05-09 17:27:39, Error DISM DISM Package Manager: PID=5036 TID=3304 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x800f081f)
    2015-05-09 17:27:39, Error DISM DISM Package Manager: PID=5036 TID=3304 The source files could not be found; their location must be specified using the /source option to restore the feature. - GetCbsErrorMsg
    2015-05-09 17:27:39, Error DISM DISM Package Manager: PID=5036 TID=3304 Failed processing package changes with session option CbsSessionOptionRepairStoreCorruption - CDISMPackageManager::RestoreHealth(hr:0x800f081f)
    2015-05-09 17:27:39, Error DISM DISM Package Manager: PID=5036 TID=3304 The source files could not be found; their location must be specified using the /source option to restore the feature. - GetCbsErrorMsg
    2015-05-09 17:27:39, Error DISM DISM Package Manager: PID=5036 TID=3304 Failed to restore the image health. - CPackageManagerCLIHandler::ProcessCmdLine_CleanupImage(hr:0x800f081f)
    2015-05-09 17:27:39, Error DISM DISM Package Manager: PID=5036 TID=3304 Failed while processing command cleanup-image. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x800f081f)
    2015-05-09 17:27:39, Info DISM DISM Package Manager: PID=5036 TID=3304 Further logs for online package and feature related operations can be found at %WINDIR%\logs\CBS\cbs.log - CPackageManagerCLIHandler::ExecuteCmdLine

    Is this in any way useful, or do I somehow need to find a reference here to other lines in the log files, that will show the damaged files? I'll post this, and then see if I can find a way to link to the complete log file. Presumably I can use "manage attachments" to upload it somehow.
      My System SpecsSystem Spec

  9. #9

    This will hopefully include the uploaded log file, as an attachment....
    'dism' error message Attached Files
      My System SpecsSystem Spec

  10. #10

    San Jose - California
    Posts : 2,847
    8.1x64PWMC Ubuntu14.04x64 MintMate17x64

    If you wish, you can try to fix this error by using the Windows 8.1 installation disk if available. If not, download the ISO for your Windows version from the link below:
    Create installation media for Windows 8.1 - Windows Help
    1. Create a bootable USB using: Rufus - Create bootable USB (skip this step if you've already have the Installation disk)
    2. Keep the bootable USB plugged in
    3. Create a folder: mount under C:\
    4. Download DISM GUI - Download: DISM GUI 4.0 , right click and run as Administrator
    5. On the fist tab, click on Choose Wim and navigate to the USB, under Source folder, select install.wim
    6. Click on choose folder and type: C:\mount and then click on Mount WIM
    7. From Admin Command prompt, type:
      Dism /Online /Cleanup-Image /CheckHealth
      Dism /Online /Cleanup-Image /RestoreHealth /Source:c:\mount\windows /LimitAccess
    8. Click on Dismount WIM when done
    Last edited by topgundcp; 10 May 2015 at 00:20.
      My System SpecsSystem Spec

Page 1 of 3 123 LastLast
'dism' error message
Related Threads
Solved DISM error: 0x80240021 in Performance & Maintenance
Please help! I've been trying to run dism for a couple of days now and all I'm getting is this: "DISM failed. No operation was performed. Error: 0x80240021" Already tried the Start Component Cleanup then the Restore health but to no avail. I already ran chkdsk but still failed to fix...
Solved DISM Giving 0x800f081f Error in Performance & Maintenance
Running DISM because sfc failed. DISM is telling me the operation failed that either the repair source was not found or the component store cannot be repaired. Any ideas? Thanks! Rob
Windows 8.1 - DISM returns error 50 in Performance & Maintenance
Hi! Im trying run: DISM.exe /Cleanup-image /AnalyzeComponentStore But i get: Version: 6.3.9600.17031 Error: 50 DISM does not support servicing Windows PE with the /Online option.
DISM and SFC error, 0x800f0906 in Performance & Maintenance
Heya all! Recently I got problems when running SFC or DISM to repair my system. As far as I know it concerns the shortcuts in the folder Administrative Tools, there I changed under Properties the Run option to Maximised Windows and since then SFC and DISM have shown this error that the services...
Hi, I've been having many problems with my comp, and I think many of them can be attributed to my HDD. Not sure whether or not it's corruption or a failing disk or what have you, but I tried to do the sfc /scannow command and the Dism /Online /Cleanup-Image /RestoreHealth command and neither...
dism error 87 in General Support
every time I get this "DISM.exe / Image: F: \ 7work \ WIM / Add-Package / Package Path: F: \ 7work \ LP \" try to run I get an error situation. error 87? What should I do now. I have so many looked on google but I'm desperate. thanks (google translate)
Solved SFC and DISM Fail. Error 0x800f081f in Performance & Maintenance
Hey Everyone, I have a similar issue to others on this forum, but posted solutions do not work. Both SFC and DISM fail to complete. I'm stuck...need a new set of eyes here; solution cannot include an OS refresh or reset. Here's the detail: Windows Update works. Everything below is done in...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook