Convert ESD file to WIM using DISM in Windows 10

    Convert ESD file to WIM using DISM in Windows 10

    How to Convert ESD file to WIM using DISM in Windows 10
    Published by
    21 Oct 2017
    Designer Media Ltd

    Published by


    Kari's Avatar
    Finnish but not finished


    Location: A Finnish expat in Germany
    Posts: 12,960

    Show Printable Version 


    information   Information
    Servicing an offline image, mounting an image, committing changes, it all sounds a bit complicated to an average Windows user. However, it's just geek speak meaning modifying default Windows install image, the install.wim file. It is a straight forward procedure. When changes have been committed (written, saved) to image, the modified install.wim can be used to deploy Windows or to replace original install.wim on existing install media.

    Servicing an offline image is done with DISM (Deployment Image Servicing and Management), a native Windows tool. DISM command options allow all kind of changes, changing the way Windows will be installed. Drivers can be added or removed, language packs applied to create a multilingual Windows install media, Windows Updates applied to get a new Windows installation to be up to date straight after installation, and so on.

    A default Windows install media created with Windows Media Creation Tool (from here on MCT) contains an encrypted and compressed install.esd file instead of install.wim file. An MCT ISO is fully functional, the official way chosen by Microsoft to deliver Windows 10 install media. Windows has no issues in installing from an ESD file, but to service it offline the ESD file needs to be decrypted and converted to WIM format. If you try to mount an ESD file as offline image, you will get an error:
    Click image for larger version. 

Name:	image.png 
Views:	29 
Size:	216.0 KB 
ID:	157707

    This tutorial will show how to use DISM to convert an ESD based MCT install media to WIM format. The same method can of course be used to convert any other ESD file to WIM, too





    Convert ESD file to WIM using DISM in Windows 10 Contents Convert ESD file to WIM using DISM in Windows 10
     Use links below to go to any step, back button of your browser to return to this list.


    Step One: Preparations
    Step Two: Convert ESD to WIM
    Step Three: Create updated ISO




    Convert ESD file to WIM using DISM in Windows 10 Step One Convert ESD file to WIM using DISM in Windows 10
     Preparations

    1.1) Create a folder on hard disk, name it as you wish. In this example I use folder D:\ISO_Files. From here on D:\ISO_Files folder refers to whatever folder you set up for this

    1.2) If you have MCT install media already on USB flash drive, copy \Sources\install.esd to D:\ISO_Files folder.

    1.3) If you have a dual architecture USB install media, copy the install.esd file for correct bitversion to D:\ISO_Files. It is located in \x86\Sources folder for 32 bit Windows, and in \x64\Sources folder for 64 bit Windows

    1.4) If you have MCT install media as an ISO image, mount the ISO as virtual DVD (right click ISO > select Mount) and copy its content (all files and folders from ISO) to D:\ISO_Files folder





    Convert ESD file to WIM using DISM in Windows 10 Step Two Convert ESD file to WIM using DISM in Windows 10
     Convert ESD to WIM

    2.1) Open an elevated PowerShell (tutorial)

    2.2) Check which Windows editions the install.esd image contains with one of the following commands:

    - If you copied an ESD file from USB to D:\ISO_Files as told in steps 1.2 or 1.3:

    dism /Get-WimInfo /WimFile:D:\ISO_Files\install.esd

    - If you copied ISO contents to D:\ISO_Files as told in step 1.4:

    dism /Get-WimInfo /WimFile:D:\ISO_Files\Sources\install.esd
    Note   Note
    In case that your MCT ISO is dual architecture, the ISO contents you copied to D:\ISO_Files contains both 32 bit and 64 bit Windows images. In that case you need to change the above command accordingly:

    To check editions in 32 bit install.esd:

    dism /Get-WimInfo /WimFile:D:\ISO_Files\x86\Sources\install.esd

    To check editions in 64 bit install.esd:

    dism /Get-WimInfo /WimFile:D:\ISO_Files\x64\Sources\install.esd

    2.3) Note the index number for your preferred edition. In this example I want to use PRO edition, noting its index number 1:
    Click image for larger version. 

Name:	image.png 
Views:	46 
Size:	350.7 KB 
ID:	157711

    2.3) Enter following command to convert ESD to WIM:

    Code:
    dism /Export-Image /SourceImageFile:D:\ISO_Files\Sources\install.esd /SourceIndex:1 /DestinationImageFile:D:\ISO_Files\Sources\install.wim /Compress:Max /CheckIntegrity

    2.4) Be sure to use correct SourceIndex number (green highlight in sample command in step 2.3 above)

    2.5) Command sample in step 2.3 is valid only if you copied ISO contents from a single architecture (32 or 64 bit) MCT ISO image to D:\ISO_Files folder as told in step 1.4.

    If you instead copied an ESD file alone from USB as told in steps 1.2 and 1.3, or if you copied contents of dual architecture ISO image in step 1.4, change SourceImageFile and DestinationImageFile paths (red highlight in sample command in step 2.3 above) accordingly:
    • If you copied an ESD file from USB to D:\ISO_Files as told in steps 1.2 or 1.3, both paths should be D:\ISO_Files\install.esd
    • If you copied dual architecture ISO contents to D:\ISO_Files as told in step 1.4, both paths should be
      D:\ISO_Files\x86\Sources\install.esd to convert 32 bit install.esd, or D:\ISO_Files\x64\Sources\install.esd to convert 64 bit install.esd.

    2.6) Convertion will take a few minutes. When done, you'll find both original install.esd and new install.wim file in D:\ISO_Files\Sources folder:
    Click image for larger version. 

Name:	image.png 
Views:	22 
Size:	435.3 KB 
ID:	157719

    2.7) If you were working with MCT single bit architecture ISO content copied to D:\ISO_Files, continue from step 3.1

    2.8) If you were working with MCT dual bit architecture ISO content copied to D:\ISO_Files, you should now repeat the process for the other not yet converted bit version. For instance if you have now converted the 64 bit install.esd, do the same for 32 bit version

    2.9) If you were working with install.esd file copied from USB to D:\ISO_Files, delete the ESD file on USB Sources folder and replace it with new install.wim file

    2.10) Before creating new ISO from ISO_Files folder, delete the install.esd file in Sources folder (or x86\Sources / x64\Sources)





    Convert ESD file to WIM using DISM in Windows 10 Step Three Convert ESD file to WIM using DISM in Windows 10
     Create updated ISO

    3.1) The D:\ISO_Files folder on HDD now contains all files needed to create an updated ISO image. See Part Five in following tutorial for instructions in creating the ISO: Create Windows 10 ISO image from Existing Installation Installation Upgrade Tutorials


    That's it! If you have any issues with this, do not hesitate to post in this thread.

    Kari


  1.    13 Oct 2017 #1
    Join Date : Jul 2015
    Posts : 3,709
    10 Pro

    This bit (Section 3.1) is deserving a tutorial all of its own - it is that useful.
    See Part Five in following tutorial for instructions in creating the ISO: Create Windows 10 ISO image from Existing Installation Installation Upgrade Tutorials in following tutorial for instructions in creating the ISO: Create Windows 10 ISO image from Existing Installation Installation Upgrade Tutorials
    It is very useful indeed - I spent ages trying to figure out Oscdimg before stumbling across it (just yesterday in fact) as all searches for "Make ISO from USB" seem to take you to "Make USB from ISO".

    Thanks.
      My ComputerSystem Spec
  2.    13 Oct 2017 #2
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,960
    Windows 10 Pro
    Thread Starter

    Quote Originally Posted by lx07 View Post
    It is very useful indeed - I spent ages trying to figure out Oscdimg before stumbling across it (just yesterday in fact) as all searches for "Make ISO from USB" seem to take you to "Make USB from ISO".
    Yes, OSCDIMG as told Part Five in the tutorial in question can be used not only to make custom ISO but also to make ISO from any USB flash drive or DVD containing any version and edition of Windows. It can sometimes be a useful feature.
      My ComputerSystem Spec
  3.    16 Oct 2017 #3
    Join Date : Oct 2016
    Posts : 134
    Microsoft Windows 10 x64

    Hello

    thanks for the tuto

    typo mistake here : dism /Get-WimInfo /WinFile: => dism /Get-WimInfo /WimFile:
      My ComputerSystem Spec
  4.    16 Oct 2017 #4
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,960
    Windows 10 Pro
    Thread Starter

    Quote Originally Posted by D4ni3l View Post
    typo mistake here :
    Typo fixed, thanks.
      My ComputerSystem Spec
  5.    4 Weeks Ago #5
    Join Date : Dec 2015
    Posts : 5,907
    Windows10

    Great tutorial, but it is worth noting if you spoof your browser to be an android device or use an android device, and go to

    Download Windows 10

    you can download the iso direct, and this has install.wim built in, not install.esd.
      My ComputerSystem Spec
  6.    4 Weeks Ago #6
    Join Date : Feb 2015
    Bamberg Germany
    Posts : 17,580
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu

    I needed to recreate one today, and the tutorial worked great @Kari!!!(as usual)
    I know how important it is to follow your steps exactly, one recommendation, highlight:

    1.4) If you have MCT install media as an ISO image, mount the ISO as virtual DVD (right click ISO > select Mount) and copy its content (all files and folders from ISO) to D:\ISO_Files folder
    As it took me a couple of tries to get it to work, as I somehow had eye to brain problems, catching those important steps for an ISO

    Anyhow it works perfect:
    Code:
    Good morning Cliff S. The time is 09:25 (9:25 AM)
    33 days to go until your Birthday!
    PS D:\ISO_Files>
    >> dism /Get-WimInfo /WimFile:D:\ISO_Files\Sources\install.esd
    >>
    Deployment Image Servicing and Management tool
    Version: 10.0.16299.15
    Details for image : D:\ISO_Files\Sources\install.esd
    Index : 1
    Name : Windows 10 S
    Description : Windows 10 S
    Size : 15,748,508,043 bytes
    Index : 2
    Name : Windows 10 S N
    Description : Windows 10 S N
    Size : 14,682,635,068 bytes
    Index : 3
    Name : Windows 10 Home
    Description : Windows 10 Home
    Size : 15,567,580,753 bytes
    Index : 4
    Name : Windows 10 Home N
    Description : Windows 10 Home N
    Size : 14,496,690,559 bytes
    Index : 5
    Name : Windows 10 Home Single Language
    Description : Windows 10 Home Single Language
    Size : 15,569,063,438 bytes
    Index : 6
    Name : Windows 10 Education
    Description : Windows 10 Education
    Size : 15,746,024,004 bytes
    Index : 7
    Name : Windows 10 Education N
    Description : Windows 10 Education N
    Size : 14,680,122,009 bytes
    Index : 8
    Name : Windows 10 Pro
    Description : Windows 10 Pro
    Size : 15,746,775,851 bytes
    Index : 9
    Name : Windows 10 Pro N
    Description : Windows 10 Pro N
    Size : 14,680,828,085 bytes
    The operation completed successfully.
    PS D:\ISO_Files> dism /Export-Image /SourceImageFile:D:\ISO_Files\Sources\install.esd /SourceIndex:8 /DestinationImageFile:D:\ISO_Files\Sources\install.wim /Compress:Max /CheckIntegrity
    Deployment Image Servicing and Management tool
    Version: 10.0.16299.15
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    PS D:\ISO_Files>
    Click image for larger version. 

Name:	Image 003.png 
Views:	14 
Size:	222.0 KB 
ID:	159351
      My ComputersSystem Spec
  7.    4 Weeks Ago #7
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,960
    Windows 10 Pro
    Thread Starter

    Quote Originally Posted by Cliff S View Post
    As it took me a couple of tries to get it to work, as I somehow had eye to brain problems, catching those important steps for an ISO
    In all its simplicity, here's that step in two screenshots:

    Click image for larger version. 

Name:	CopyISO_1.png 
Views:	7 
Size:	241.1 KB 
ID:	159358

    Click image for larger version. 

Name:	CopyISO_2.png 
Views:	8 
Size:	206.4 KB 
ID:	159359


    BTW, I edited step 2.9 and added step 2.10 just now. Here's how 2.9 it was before edits:

    2.9) If you were working with install.esd file copied from USB to D:\ISO_Files, you are done!. You can now delete the install.esd file in Sources folder (or x86\Sources / x64\Sources) on USB replacing it with new install.wim file
    And here 2.9 and 2.10 after edits:

    2.9) If you were working with install.esd file copied from USB to D:\ISO_Files, delete the ESD file on USB Sources folder and replace it with new install.wim file


    2.10) Before creating new ISO from ISO_Files folder, delete the install.esd file in Sources folder (or x86\Sources / x64\Sources)
    Also worth to remember is that after ESD to WIM conversion, new ISO only contains a single edition which always has index number 1. Using your CODE sample as an example, you made W10 PRO single edition WIM from W10 multi edition ESD. In original ESD the PRO edition is / was index 8, in new WIM file it's index 1.

    Kari
      My ComputerSystem Spec
  8.    4 Weeks Ago #8
    Join Date : Feb 2015
    Bamberg Germany
    Posts : 17,580
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu

    I just needed to do it to grab the Winre from a newer ESD ISO(the official one from the release date, instead of the one I had the Friday before).

    Just so others know, you need to do these steps if you wish to replace missing or corrupt Windows system files and libraries(.dll)(not so sure about replacing folders though).

    It must come from a Install .wim and not .esd
      My ComputersSystem Spec

 


Similar Threads
Tutorial Category
dism /Online /?dism /online /cleanup- does not work, Error: 0x800f0950
140589
Performance & Maintenance
DISM: How long should the DISM scan take to complete ?
Normally when a tests completes without reporting anything wrong I'm happy camper. I have been wanting to ask a question about the DISM "scan" completing rather quickly. I seem to remember the command taking some time to finish, but for a while...
Performance & Maintenance
Convert UUP to ISO
how can I convert UUP to ISO?
Windows Insider
Windows DISM and SFC fail to fix corruptions. DISM error 1726 / WIN 10
Hello, as you already know from the title I have problems with the windows utilities that fix corruptions. After I upgraded to build 1607, those utilities worked, but now after a few weeks I tried to do them again after some driver updates just to...
Performance & Maintenance
Solved DISM Error: 1812 - Can't run DISM or SFC, Win apps won't open
Hello, I've run into a problem where my windows apps will not open. Calc opens with a gray screen just showing the calculator logo...calendar opens to a blue screen only showing the calendar logo, etc. I can't run SFC /scannow due to error...
General Support
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 12:22.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums