I have a Windows 10 machine that does not boot into Windows, not even Safe Mode, after a reboot following a Windows Update and which none of the standard Windows repair options, or SFC /SCANNOW
, are able to fix, hence I am falling back to DISM
.
I have a USB stick containing a Windows 10 Pro ISO for 19043.985 amd64 (which is what DISM
reports the image as being), created via uupdump.net
:
...within which there is a WIM install file, but DISM
is never able to find replacements for any of the corrupt entries when executed from the Win PE command console:
X:\Sources>dism /Image:c:\ /Cleanup-Image /RestoreHealth /LimitAccess /Source:e:\sources /Scratchdir:c:\temp
Deployment Image Servicing and Management tool
Version: 10.0.19041.1
Image Version: 10.0.19043.985
[==========================100.0%==========================]
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.
I have read How to execute DISM from Windows 10 PE on Win 10 system with Windows Update / Microsoft as source only? and Windows 10 DISM cannot find files, even with ISO mounted but have been unable to find any clues.
The whole DISM
log file can be found here; it seems that it is at least loading the source from USB:
2024-02-18 09:44:02, Info CBS Exec: Addsource called, Session: 672_2522140, Client: DISM Package Manager Provider, from GPO: No, Path: e:\sources
2024-02-18 09:44:02, Info DISM DISM Package Manager: PID=672 TID=948 CBS session options=0x20000! - CDISMPackageManager::Internal_Finalize
2024-02-18 09:44:02, Info CBS Client specifies manual store corruption detect or repair.
What might I be doing wrong?
/Source:
has to either be a ESD/WIM with index specified, an offline Windows image (e.g. a non-booted to Windows OS that's not the one being fixed - Windows is referred to as an "image" when servicing), or a Component Store [Windows\WinSxS
], all of which must match the version of the offline image attempting to be repaired. Please see this answer for how to do so. Also, normally/Image:
must be<partition>:\Windows
, andC:
is usually never the Windows partition in WinPE/WinRE - to ascertain:DiskPart
→lis vol
→exit
install.<esd|wim>
on an Install USB is located atsources/install.<esd|wim>
/Source:wim:e:\sources\install.wim:1
(having verified that Windows Pro is at index 1) the log saysCannot add wim: file source because it is not supported during offline servicing.
<mountpoint>\Windows\WinSxS
as the source? Create a directory for themount
directory, thenDism /Mount-Image /ImageFile:e:\sources\install.wim /Index:1 /MountDir:<mountpoint>\mount /ReadOnly
, using<mountpount\mount\Windows
or<mountpount\mount\Windows\WinSxS
as the source, and if that doesn't work, try copying outWindows\WinSxS
, then using the new path to it as the source.DiskPart
→lis vol
→exit
(C:
is rarely the OS partition in WinPE since drive letters in WinPE are assigned in numerical order of the HDD0, partitions 1 - x, HDD1, partitions 1 - x, etc. and the OS partition will always be at least the second partition and therefor never assignedC:
)