It is all explained in the documentation I referred you to in this thread Info on the Windows components store - Windows 10 Forums but basically you can use dism to service any offline image using /image (and yes you can specify which index before you ask ) based on the source specified on /source
In fact anything you can do to your online image you can do an offline image - but not the other way around - only a subset are available online as described in the documentation:
DISM Global Options for Command-Line Syntax - Windows 10 hardware devIf you are servicing a running computer, you can use the /Online option instead of specifying the location of the offline Windows image. The commands and options that are available for servicing an image depend on which Windows operating system you are servicing. They also depend on whether the image is offline or a running operating system. All commands work on an offline Windows image. Subsets of the commands are available for servicing a running operating system.
The source (if specified) has to contain the components required so you can't specify a source that has a different version but really you need not specify source unless Windows update doesn't work.
Repair a Windows Image - Windows 10 hardware devIf you do not specify a /Source for the repair files, the default location for Features on Demand is used. For more information, see Configure a Windows Repair Source. If you specify more than one /Source, the files are copied from the first location where they are found and the rest of the locations are ignored. You can use /LimitAccess to prevent the DISM tool from using Windows Update as a repair source or as a backup repair source for online images.
If something you are trying is not working please post the command you used and the results from %windir%\Logs\DISM\dism.log
Dism /Image:C:\offline /Cleanup-Image /RestoreHealth /Source:c:\mount\windows
Hi. I just finished downloading a Windows 10 ISO for the purpose of repairing a corrupted Windows 10 image (reported by DISM), but during the download I realized that there was no information regarding the build number. Can you help me with that or do I need to go to Microsoft, or is it not even an issue. The build number installed on my laptop is 10240, if that helps. (In case you're wondering why I didn't already have an ISO for backup purposes, it's because I used I used Lenovo's OneKey Recovery feature, which doesn't seem to produce any image files.)
You can check the version as follows:
- mount the ISO and note and note the letter. In my case it is k
- From elevated cmd prompt dism /get-wiminfo /wimfile:k:\sources\install.wim
- If there is more than one index pick the one you want dism /get-wiminfo /wimfile:k:\sources\install.wim /index:1
Code:Microsoft Windows [Version 10.0.10576] (c) 2016 Microsoft Corporation. All rights reserved. C:\Windows\system32>dism /get-wiminfo /wimfile:k:\sources\install.wim Deployment Image Servicing and Management tool Version: 10.0.10576.0 Details for image : k:\sources\install.wim Index : 1 Name : Windows 10 Pro Description : Windows 10 Pro Size : 13,736,528,128 bytes Index : 2 Name : Windows 10 Home Description : Windows 10 Home Size : 13,635,081,189 bytes The operation completed successfully. C:\Windows\system32>dism /get-wiminfo /wimfile:k:\sources\install.wim /index:1 Deployment Image Servicing and Management tool Version: 10.0.10576.0 Details for image : k:\sources\install.wim Index : 1 Name : Windows 10 Pro Description : Windows 10 Pro Size : 13,736,528,128 bytes WIM Bootable : No Architecture : x64 Hal : acpiapic Version : 10.0.10240 ServicePack Build : 16384 ServicePack Level : 0 Edition : Professional Installation : Client ProductType : WinNT ProductSuite : Terminal Server System Root : WINDOWS Directories : 18986 Files : 94284 Created : 10/7/2015 - 14:25:50 Modified : 10/7/2015 - 14:26:24 Languages : en-US (Default) The operation completed successfully. C:\Windows\system32>
I followed your instructions for checking the ISO's build number, and all of the fields which had any meaning to me match my OS, but I have two further issues regarding the tutorial. The "elevated command prompt" link goes to the wrong article (which at least contains a link to the right article), and the correct instruction for the next step seems to be "Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:<Full Path to install.wim file>:1". My issue is with that "1" at the end. Since the correct index in my case is 2, should I change that "1" to a "2"? (Trial and error sounds rather dangerous in this case, otherwise I'd have already found the answer.)
That's right - change the 1 to a 2. It isn't dangerous - it will just say "source not found" if you use the wrong index (or wrong wim) and it wants to repair something.
You can also keep it as index 1
There is No need to change index to 2
I'm happy to report that running DISM with the correct RestoreHealth and Source options yielded two "...completed successfully" messages and subsequently running it with ScanHealth found no corruption.