I've used DISM many times, but have never been able to get the /source option to work. I've an immediate example to illustrate it.
I have a Windows 10 computer that won't boot in standard mode, though it will in Safe Mode. I've done a number of things to try to resolve it without success and am trying to use DISM.
My first attempt was to use the following from an elevated prompt (in Safe Mode):
dism /online /cleanup-image /restorehealth
It gets to 97% and then exits with an error 0x800f0906 and a message: The source files could not be downloaded.
It includes more info about how I should use the /sources switch.
I'm presuming that this means the recovery files are not intact so I need to provide a new set.
I grabbed a Win 10 ISO and copied it to the computer. I mounted it to drive e: and ran the following:
dism /get-wiminfo /wimfile:e:\sources\install.wim
It responded that it was version 10.0.14393.0
I then tried to use this source by typing:
dism /online /cleanup-image /restorehealth /source:e:\sources\install.wim
It responded with:
Image Version: 10.0.14393.0
It then ran to 97% and gave me the same error number and message as before.
I take it from the Version and Image Version display that the installed Win 10 and the source Win 10 that I'm trying to use are the same version.
I tried extracting the files from the ISO and pointing to that folder but got the same results.
This is typical of what I've run into when trying to use /source. Clearly I'm missing something about how to use the /source switch on DISM. Any help to point me to what it is would be greatly appreciated.