The install.wim file (Windows Image File) is a compressed file which contains a set of many files and associated file system metadata and is included in any Windows installation Media under the "sources" folder (sources\install.wim). Sometimes when Windows 10 or 8 crashes, due to corrupted system files or for any other reason, there is a need to repair the Windows file system, by using the install.wim file, as the repair source.
- DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:X:\Sources\install.wim
But, an install.wim file may contain several install.wim files (each one for different Windows 10 Edition e.g. Pro, Home, etc.), which are referenced either by their numerical index or by their unique name. For that reason there is the need to extract the install.wim and get a valid (according to the installed Windows Edition), install.wim file, in order to repair Windows 10 or Windows 8. (e.g. by using DISM).
In this tutorial you 'll find detailed instructions on how to extract an install.wim file, that contains install.wim files for different Windows 10 (or Windows 8) Editions (e.g. Windows 10 Pro, Windows 10 Home, Windows 10 Education, etc.).
How to extract an install.wim file that contains more than one install.wim files.
1. Attach or mount* the Windows installation media on your system.
* Note: If you are using Windows 8/8.1, then read this article on: How to mount ISO files.
- dism /Get-WimInfo /WimFile:X:\sources\install.wim
* Note: Replace the "X" drive letter according to your case. At this example the Windows installation media is located at drive H:, so the command will be:
dism /Get-WimInfo /WimFile:H:\sources\install.wim
4. According to your Windows installed Edition take note of the index number. *
* e.g.: If you have installed the Windows 10 Home edition on your system, then the Index number is "2".
5. Then give the command below to extract the corresponding to your Windows version "install.wim" file (Index number): *
- dism /export-image /SourceImageFile:H:\sources\install.wim /SourceIndex:IndexNumber /DestinationImageFile:C:\install.wim /Compress:max /CheckIntegrity
* Note: Replace the IndexNumber according to your Windows 10 installed version or the Windows version that your want to extract from the source INSTALL.WIM file.
e.g. For this example (for a Windows 10 Home based computer) we want to extract the install.wim file with Index number=2. So, the command will be:
- dism /export-image /SourceImageFile:H:\sources\install.wim /SourceIndex:2 /DestinationImageFile:C:\install.wim /Compress:max /CheckIntegrity
7. When the process is completed you should have a valid Windows 10 Home install.wim on the drive C: (C:\install.wim).
That's it! Let me know if this guide has helped you by leaving your comment about your experience. Please like and share this guide to help others.