- May 19, 2011
- 20,524
- 15,331
- 136
I'm posting an informative post because I've been trying to find a solution for this myself and routinely found wrong information on the Internet (the fact that the Windows 10/11 ISO does not contain install.wim).
Various sources suggest trying various dism switches (/startcomponentcleanup, etc) but if those don't work then you need to specify a source because Windows claims not to have one.
You need a valid Windows ISO for your Windows install; if in doubt then use Microsoft's Media Creation Tool off the Internet to download the correct ISO for you.
Next, mount / double-click on the ISO, so it gets its own drive letter.
Open an admin command prompt.
Then run:
You'll then get an output of the various Windows editions that ISO caters for, so pick yours out (e.g. Win10 Pro) and make a note of the index number.
Copy that esd file to a location (say C:\Backup), CD to that location.
I don't know whether the compression option is necessary but it kicked an i5-6600's ass.
I may add to this because despite me getting the commands right, I'm still getting the same error
)
Various sources suggest trying various dism switches (/startcomponentcleanup, etc) but if those don't work then you need to specify a source because Windows claims not to have one.
You need a valid Windows ISO for your Windows install; if in doubt then use Microsoft's Media Creation Tool off the Internet to download the correct ISO for you.
Next, mount / double-click on the ISO, so it gets its own drive letter.
Open an admin command prompt.
Then run:
Code:
dism /Get-WimInfo /WimFile:path\to\ISO\sources\install.esd
You'll then get an output of the various Windows editions that ISO caters for, so pick yours out (e.g. Win10 Pro) and make a note of the index number.
Copy that esd file to a location (say C:\Backup), CD to that location.
Code:
dism /export-image /SourceImageFile:install.esd /SourceIndex:IndexNumber /DestinationImageFile:install.wim /Compress:max /CheckIntegrity
I don't know whether the compression option is necessary but it kicked an i5-6600's ass.
Code:
DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:c:\Backup\install.wim:indexnumber_you_noted_earlier /LimitAccess
I may add to this because despite me getting the commands right, I'm still getting the same error