Solved 'dism' error message

Ravi

Member
Member
Messages
18
Location
USA, and India
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 "http://go.microsoft.com/fwlink/?LinkId=243077".


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 Computer

System One

  • OS
    Windows 8
    System Manufacturer/Model
    Compaq Presario
See this---

Repair Corrupt Windows Image - Error 0x800f0906

See pictures---

screenshot_266.jpg

Press Enter.

screenshot_266.jpg

screenshot_266.jpg
 

My Computer

System One

  • OS
    Windows 8.1.1 Pro with Media Center
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Gateway
    CPU
    AMD K140 Cores 2 Threads 2 Name AMD K140 Package Socket FT1 BGA Technology 40nm
    Motherboard
    Manufacturer Gateway Model SX2110G (P0)
    Memory
    Type DDR3 Size 8192 MBytes DRAM Frequency 532.3 MHz
    Graphics Card(s)
    ATI AMD Radeon HD 7310 Graphics
    Sound Card
    AMD High Definition Audio Device Realtek High Definition Audio USB Audio Device
    Monitor(s) Displays
    Name 1950W on AMD Radeon HD 7310 Graphics Current Resolution 1366x768 pixels Work Resolution 1366x76
    Screen Resolution
    Current Resolution 1366x768 pixels Work Resolution 1366x768 pixels
    Hard Drives
    AMD K140
    Cores 2
    Threads 2
    Name AMD K140
    Package Socket FT1 BGA
    Technology 40nm
    Specification AMD E1-1200 APU with Radeon HD Graphics
    Family F
    Extended Family 14
    Model 2
    Extended Model 2
    Stepping 0
    Revision ON-C0
    Instruction
    Browser
    Opera 24.0
    Antivirus
    Avast Internet Security
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 Computer

System One

  • OS
    Windows 8
    System Manufacturer/Model
    Compaq Presario
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 Computer

System One

  • OS
    Windows 8
    System Manufacturer/Model
    Compaq Presario
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 Computer

System One

  • OS
    Windows 8
    System Manufacturer/Model
    Compaq Presario
Then it tells me where the log file can be found

Windows\logs\dism\dism.log

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

My Computer

System One

  • OS
    Windows 3.1 > Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Dell XPS 8700
    CPU
    I7
    Memory
    24 GB
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 Computer

System One

  • OS
    Windows 8
    System Manufacturer/Model
    Compaq Presario
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 Computer

System One

  • OS
    Windows 8
    System Manufacturer/Model
    Compaq Presario
This will hopefully include the uploaded log file, as an attachment....
 

Attachments

  • dism.log
    34.5 KB · Views: 146

My Computer

System One

  • OS
    Windows 8
    System Manufacturer/Model
    Compaq Presario
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:

My Computer

System One

  • OS
    8.1x64PWMC Ubuntu14.04x64 MintMate17x64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Home Brewed
    CPU
    I7 4970K OC'ed @4.7 GHz
    Motherboard
    MSI-Z97
    Memory
    16 GB G-Skill Trident X @2400MHZ
    Graphics Card(s)
    NVIDIA GeForce GTS 450
    Sound Card
    X-Fi Titanium Fatal1ty Professional Series
    Monitor(s) Displays
    Dual HP-W2408
    Screen Resolution
    1920X1200
    Hard Drives
    256 GB M2 sm951, (2) 500GB 850EVO, 5TB, 2 TB Seagate
    PSU
    Antec 850W
    Case
    Antec 1200
    Cooling
    Danger Den H20
    Keyboard
    Logitech
    Mouse
    Logitech Performance Mouse MX
    Internet Speed
    35/12mbps
    Browser
    Firefox
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. .........
  2. From Admin Command prompt, type:
    Dism /Online /Cleanup-Image /CheckHealth
    Dism /Online /Cleanup-Image /RestoreHealth /Source:c:\mount\windows /LimitAccess


Topgundcp, for the hospital computer, they have the original installation CD, which they will give me on Monday. Would one of the following two methods have the same result:

a) dism /online /cleanup-image /restorehealth /source:H:\WinSxs /limitaccess (assuming I copied all the WinSxS files onto a removable drive, which in the above example would be drive H ?

b) use a similar command setting the source to the DVD drive, with the install CD in it?


------------------------------------------------------------------------------------

As a separate question, from reading, and re-reading, and re-re-reading all the above, I am running 'scanhealth' again.
Presumably that should tell me the exact names of any corrupted files. (Will find out when it finishes). Either is there any way to specifically download those specific files from Windows Update, and save them in a folder? Or, is it acceptable to copy them from the WinSxS folder on a different Windows 8.1 computer?


A side note: It's fascinating that all the "tech people" I talk to in person tell me to just re-install Windows and be done with it. To me, that's a very last resort - it sounds like the above tools should work. I'm beginning to think they're not really "tech" people, and they would rather replace than fix.

..........and I should add that even if this does work, I would like to know why 'dism' fails to access Windows Update. David Bailey posted one area in Windows that had incorrect settings. Maybe there are others?
 

My Computer

System One

  • OS
    Windows 8
    System Manufacturer/Model
    Compaq Presario

My Computer

System One

  • OS
    Windows 8.1 Pro 64-bit
    Computer type
    Laptop
    System Manufacturer/Model
    Acer V3 771G-6443
    CPU
    i5-3230m
    Motherboard
    Acer VA70_HC (U3E1)
    Memory
    8GB DDR3 PC3-12800 (800 MHz)
    Graphics Card(s)
    HD4000 + GeForce GT 730M
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    17" Generic PnP Display on Intel HD Graphics 4000
    Screen Resolution
    1600x900 pixels
    Hard Drives
    Samsung SSD 850 EVO 250 GB
    ADATA SSD SP900 128GB
    PSU
    90 watt brick
    Mouse
    Bluetooth
    Antivirus
    Comodo
    Other Info
    Asus RT-AC56R dual-band WRT router (Merlin firmware). Intel 7260.HMWWB.R dual-band ac wireless adapter.
Possible solution to the issue on my Compaq C740EM laptop

Progress. This is on my laptop, not the hospital computer. The 'scanhealth' completed, and if I understand what I'm doing, this is the only reference to 'corruption':

==========================================================
TID=2476 <----- Starting corruption detect/repair info -----> -
Checking System Update Readiness.

(p) CSI Payload Corrupt amd64_prncacla.inf_31bf3856ad364e35_6.3.9600.17415_none_95dd5540d57f8c01\Amd64\CNBJ2530.DPB

Summary:
Total Detected Corruption: 1
CSI Payload Corruption: 1
Ending corruption detect/repair info -----> -
==========================================================

If I am following the above advice correctly, on my laptop, apparently the file listed above in red is corrupt, and maybe the reason why Windows Update can't replace the file, as it is from AMD and not Microsoft? Does this make sense?



Edit: added later.... Is this the appropriate next step?
http://www.eightforums.com/performance-maintenance/57944-sfc-scannow-unable-fix-error.html
 

My Computer

System One

  • OS
    Windows 8
    System Manufacturer/Model
    Compaq Presario
According to this post by Microsoft, WinSxS has many duplicated files. The files are are *not* copies, but are instead “hard links” that point to the same data, and thus do not take up any extra space. Microsoft says a typical WinSxS folder contains around 400 MB of data.

Having said that, I am not sure that your question a) above will work since most of the files are hard linked to WinSxS even though I have tried the command and it was successfully executed but I have no way of telling if it does any repair since my PC does not have the same problem as yours.

It is best to use the steps I suggested above which DISM GUI does the dirty job of composing the DISM command with appropriate options and swiches.

question b) Instead of using the DISM GUI to mount the install.wim, you can in fact use the command below from CD directly:
DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:X:\Sources\Install.wim:1 /LimitAccess
Where X is the drive letter of the installation CD

EDIT: Make sure the CD is the same version of Windows 8 in your laptop.
 

My Computer

System One

  • OS
    8.1x64PWMC Ubuntu14.04x64 MintMate17x64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Home Brewed
    CPU
    I7 4970K OC'ed @4.7 GHz
    Motherboard
    MSI-Z97
    Memory
    16 GB G-Skill Trident X @2400MHZ
    Graphics Card(s)
    NVIDIA GeForce GTS 450
    Sound Card
    X-Fi Titanium Fatal1ty Professional Series
    Monitor(s) Displays
    Dual HP-W2408
    Screen Resolution
    1920X1200
    Hard Drives
    256 GB M2 sm951, (2) 500GB 850EVO, 5TB, 2 TB Seagate
    PSU
    Antec 850W
    Case
    Antec 1200
    Cooling
    Danger Den H20
    Keyboard
    Logitech
    Mouse
    Logitech Performance Mouse MX
    Internet Speed
    35/12mbps
    Browser
    Firefox
Hmmm....

DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:X:\Sources\Install.wim:1 /LimitAccess
where X is the drive letter of the installation CD

The IT person at the hospital who originally worked with me to set up this computer tells me he has the original CD. There aren't that many computers at the hospital running Windows 8, so he probably does have the right disk. This PC was an experiment to find out if others at the hospital would be able to use Windows 8.


Now that I know a bit more about the 'dism' command, where is a good place to try to understand "/source:WIM:X:\Sources\Install.wim:1" ? I expected to see something starting with "X:" (the drive letter of the DVD drive) pointing down to the appropriate folder on the CD. I've never seen something yet that looks like what you just wrote.


===================================================


Regarding mylaptop, unless people here think the AMD file can be corrected using Windows Update for the source for 'dism', I will start another thread about how to replace my corrupted file with a good version:
amd64_prncacla.inf_31bf3856ad364e35_6.3.9600.17415_none_95dd5540d57f8c01\Amd64\CNBJ2530.DPB
If my file did come from Microsoft, the 'dism' command should now be able to replace it. If it came from AMD, then either I follow the advice in the other thread I linked to above, or contact AMD for advice.


Thank you again!
 

My Computer

System One

  • OS
    Windows 8
    System Manufacturer/Model
    Compaq Presario
that "prncacla.inf" is found in the folder "\SystemRoot\WinSxS\amd64_prncacla.inf_31bf3856ad364e35_6.2.9200.16430_none_fdce12188b615b12"
it references a Canon printer driver with a hash mismatch

amd64 refers to x64 arch - not AMD
 

My Computer

System One

  • OS
    Windows 3.1 > Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Dell XPS 8700
    CPU
    I7
    Memory
    24 GB
Oops.... "amd64" ...bad assumption on my part. Since I don't have a Canon printer, is there an way I can delete, or rename that single file on my laptop? I doubt Windows will let me do that.....
------------------------------------------------------------------------

Back to the hospital PC. They didn't have the original DVD from way back when, but they did have an ISO image that they think is for this computer. I burned it to a DVD, and tried the above command:

DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:F:\Sources\Install.wim:1 /LimitAccess

The good news is that 2/3 of the way through the 'dism' operation, it did access drive F, the DVD. Unfortunately, I still got the exact same error message.

Here are the lines about the error from the earlier scan....


Checking System Update Readiness.
(p) CSI Payload Corrupt amd64_microsoft-windows-skydrive-exehost_31bf3856ad364e35_6.3.9600.17230_none_77e98b2afe9223f9\SkyDrive.exe
(p) CSI Payload Corrupt amd64_adobe-flash-for-windows_31bf3856ad364e35_6.3.9600.16456_none_1c80b64f3d6c763f\FlashUtil_ActiveX.dll
(p) CSI Payload Corrupt amd64_prncacla.inf_31bf3856ad364e35_6.3.9600.16384_none_9590ba64d5b91f79\Amd64\CNBJ2530.DPB

Summary:
Total Detected Corruption: 3
CSI Payload Corruption: 3
Ending corruption detect/repair info


Tomorrow, I'll open the log file, and look for any ERROR instances. Maybe that will indicate whether the 'dism' utility is looking in the proper place. (Maybe I should try this in Safe Mode?)


The IT technician at the hospital told me he had a similar problem with Widows Update on a server. His "fix" was to download the update, save it on a drive, and (somehow) tell Windows Update to use that file. We may try that tomorrow, but I doubt it will fix the above problem (unless it was a Windows problem from the beginning).
 

My Computer

System One

  • OS
    Windows 8
    System Manufacturer/Model
    Compaq Presario
If nothing else, can I boot into Safe Mode with DOS only, navigate to the files, and rename them? Since they're already corrupted, renaming them can't cause any more damage to anything, as I see it.


1) - Boot into Safe Mode with command prompt.


2) - Navigate to the directory with the file:
cd /windows/WinSxS/amd64_prncacla.inf_31bf3856ad364e35_6.2.9200.16430_none_fdce12188b615b12


3) First, use 'takedown' to give my user name, 'mike' full ownership of the file:
takeown /f prncacla.in


4) Second, use 'cacls' to give user 'mike' full control:
cacls prncacla.in /G mike:F


5) Last, rename the file:
ren prncacla.in prncacla.in.old​


My understanding of DOS is from 1980 or so. Searching around the internet I was looking for ways to rename a system file. The worst that can happen, is I need to re-install Windows, which is what several people think I should have done from the beginning.



Edit: no-go. Even when I put that long directory path in double quotes, I get "The system cannot find the path specified".
 
Last edited:

My Computer

System One

  • OS
    Windows 8
    System Manufacturer/Model
    Compaq Presario
Thanks to everyone for all your help.

I couldn't rename the original problem file, even after a DOS restart, and when I went to look at the corrupted file later, it was no longer there. Dism now reports three corrupted files; different files than what I remember from earlier.

I moved all my data from the laptop to a USB device, then deleted all of my installed software (other than Chrome, Malwarebytes, and Vipre). I ran the disk utility to free up space, then ran Ccleaner. After all this, a final restart. I ran 'dism' again - no change. I will run all three dism commands later today, and verify that the reported errors haven't changed.

What I've learned from all this, especially the help in this forum is:
  • How to understand log files, and find errors (never could do that before).
  • Now that I understand the log files, I'll avoid removing them after each session.
  • Always make a Windows Repair Disk, and keep it with that specific computer "just in case".
  • Run 'SFC' and 'DISM' on a monthly basis, to monitor the computer.
  • Never enter a thread here that refers to more than one computer.
  • Finally, organize my records better, so if DISM changes its listing of what it thinks is wrong, I'll know it.

Again, thank you to everyone here.
(I will still try to find a fix for the laptop until this evening. At that point, I'll give up, and install the latest version of Windows 10 Trial, which I downloaded last night.)


Added an hour later, after running the DISM tools again:

"The restore operation completed successfully. The compoment store corruption was repaired. The operation completed successfully." !!!!!


I am happy, but lost. Maybe someone here has an explanation of why cleaning out all MY programs and files allowed 'dism' to fix the SYSTEM files?
 
Last edited:

My Computer

System One

  • OS
    Windows 8
    System Manufacturer/Model
    Compaq Presario
One more update to this story....

After following the above steps to allow 'dism' to work properly, I just ran 'SFC /scannow'. While it did find corrupted files, it also successfully repaired them.

Summary:

  • 'dism' works now.
  • 'sfc /scannow' works now.
  • Windows Update works now.

(In a way it feels to me like "throwing the baby out along with the wash water"... To clean up the system, I had to remove most of what I use and do on the latop. Of course, I can put them back now, and then re-test.)
 

My Computer

System One

  • OS
    Windows 8
    System Manufacturer/Model
    Compaq Presario
Back
Top