How to Guide, Microsoft Windows

install.esd vs install.wim: How to Convert ESD to WIM

Illustration of a compressed install.esd file being converted into an install.wim Windows image

An install.esd file is a highly compressed, read-only Windows image that Microsoft’s Media Creation Tool puts in the sources folder of installation media. It installs Windows perfectly well, but DISM can’t mount or edit it. To add drivers or updates, convert install.esd to install.wim with dism /Export-Image, choosing the edition by its index number.

Key takeaways

  • install.esd and install.wim hold the same Windows editions. ESD is smaller because it uses heavier compression, and WIM can be mounted and serviced.
  • Run dism /Get-WimInfo /WimFile:install.esd first to find the index of the edition you want.
  • Convert with dism /Export-Image and /Compress:max. Repeat for each edition you need in the same WIM.
  • A WIM over 4 GB won’t fit on a FAT32 USB stick. Split it into .swm files with dism /Split-Image.
  • Converting the image doesn’t change licensing. The product key you enter decides the edition that activates.
Feature install.esd install.wim
Where you find it Media Creation Tool USB/ISO, Windows Update downloads ISO downloaded directly from Microsoft’s website, volume licensing media
Compression Recovery compression, the smallest Fast or max compression, larger
Can DISM mount and service it? No Yes
Installs Windows normally? Yes Yes
Best for Download size and a straightforward install Adding drivers, updates, or building custom images

What is install.esd, and how is it different from install.wim?

Both files are Windows Imaging Format containers that hold one or more editions of Windows, such as Home, Pro and Education. install.esd (Electronic Software Download) uses Microsoft’s “recovery” compression, which makes it much smaller but read-only for servicing. install.wim uses lighter compression, so it is larger but can be mounted, edited and recaptured with DISM.

Which one you get depends on how you download Windows. Media built with the Media Creation Tool normally contains sources\install.esd. The ISO offered as a direct download on Microsoft’s site has typically contained sources\install.wim instead. Users on Windows enthusiast forums report the WIM in recent Windows 11 ISOs at roughly 7 GB against around 5.4 GB for the ESD.

Microsoft’s DISM image management reference explains why. The recovery compression option produces “much smaller” files and requires a destination with an .esd extension. It was designed for push-button reset images, where disk space matters more than editability.

Do you need to convert install.esd to WIM?

Most people don’t. If you just want to install or reinstall Windows, install.esd works exactly like install.wim, and Windows Setup reads either one. You only need to convert when you want to service the image offline (adding drivers, cumulative updates, language packs or removing apps), or when a deployment tool such as WDS insists on WIM.

Common reasons to convert:

  • Injecting storage or network drivers so Setup can see an NVMe or RAID drive. Intel’s support guidance on this notes the image must be WIM before drivers can be added.
  • Slipstreaming updates with dism /Add-Package so a fresh install starts closer to current.
  • Deploying from Windows Deployment Services or other imaging systems that expect WIM.
  • Extracting a single edition to make a smaller, single-purpose image.

If you are simply building a USB installer for a new PC, our guide to creating a Windows 11 bootable USB is the quicker route and needs no conversion.

Choosing a Windows edition index from install.esd before converting ESD to WIM

How do you find the edition index inside install.esd?

Run dism /Get-WimInfo /WimFile:C:\ESD\install.esd from an elevated Command Prompt. DISM lists every image in the file with an index number, name, description and size. Note the index of the edition you want, for example the one named “Windows 11 Pro”, because the export command selects images by that number.

  1. Create a working folder, for example C:\ESD, on a drive with at least 15 GB free.
  2. Mount the ISO by double-clicking it, or plug in the USB stick, and copy sources\install.esd into C:\ESD.
  3. Open Terminal or Command Prompt as administrator.
  4. Run dism /Get-WimInfo /WimFile:C:\ESD\install.esd.
  5. Write down the index number next to the edition you need.

Index numbers differ between releases and between consumer and business media, so never assume Pro is index 6 because a guide said so. /Get-ImageInfo /ImageFile: is the modern spelling of the same command and returns the same list.

You’ll see several editions because one image serves many licences. The product key you enter during or after Setup decides which edition installs and activates. Our explainer on OEM, retail and volume Windows keys covers how that mapping works.

How to convert install.esd to install.wim with DISM

To convert install.esd to install.wim, run dism /Export-Image with the ESD as the source, the edition’s index, a new WIM as the destination, and /Compress:max. DISM decompresses the chosen edition and writes it into a standard WIM. Expect it to take several minutes per edition, and longer on slower drives.

  1. Open Command Prompt as administrator and run cd C:\ESD.
  2. Run dism /Get-WimInfo /WimFile:install.esd and note the index you want (for example 6).
  3. Run dism /Export-Image /SourceImageFile:install.esd /SourceIndex:6 /DestinationImageFile:install.wim /Compress:max /CheckIntegrity.
  4. Wait for “The operation completed successfully”.
  5. To add another edition, repeat step 3 with a different /SourceIndex. DISM appends it to the same install.wim.
  6. Check the result with dism /Get-WimInfo /WimFile:install.wim.
  7. Copy install.wim into the sources folder of your media and delete or rename the old install.esd, so Setup doesn’t find two images.

What each switch does

Switch Purpose
/SourceImageFile:install.esd The compressed image you are converting from
/SourceIndex:N Which edition to export (or use /SourceName:"Windows 11 Pro")
/DestinationImageFile:install.wim The new WIM, created if it doesn’t exist
/Compress:max Best compression for WIM. The other choices are fast (default) and none
/CheckIntegrity Detects corruption in the WIM during export

Microsoft notes that /Compress only applies when DISM creates a new WIM. When you append more editions to an existing file, they use that file’s compression. Choose max on the first export if you want the smallest result.

Servicing the converted image

Once you have a WIM, mount it with dism /Mount-Image /ImageFile:C:\ESD\install.wim /Index:1 /MountDir:C:\Mount. Microsoft’s documentation says the mount folder must already exist and be empty. Add drivers with dism /Image:C:\Mount /Add-Driver /Driver:C:\Drivers /Recurse, then save with dism /Unmount-Image /MountDir:C:\Mount /Commit.

Building an image for a new install? Make sure the licence matches the edition.

A custom WIM still needs a genuine key for the edition you deploy. For a single new build, a Windows 11 Pro OEM key is tied to that one PC. A Windows 11 Pro retail key can later be moved to another PC.

How to fit a large install.wim on a FAT32 USB stick

If install.wim is larger than 4 GB, it can’t be copied to a FAT32 USB drive, and FAT32 is what most UEFI firmware boots from. Split the WIM into smaller .swm files with dism /Split-Image, then copy every .swm file into the USB’s sources folder. Windows Setup reads split images automatically.

  1. Run dism /Split-Image /ImageFile:C:\ESD\install.wim /SWMFile:C:\ESD\install.swm /FileSize:3800.
  2. DISM creates install.swm, install2.swm and so on, each no larger than 3,800 MB.
  3. Delete install.wim and install.esd from the USB’s sources folder.
  4. Copy every .swm file into the USB’s sources folder.
  5. Boot from the USB and run Setup as usual.

Microsoft’s guide to splitting a Windows image file confirms /FileSize is in megabytes. It also says split sets can’t be modified, so finish all servicing before you split. If you would rather avoid FAT32 limits altogether, you can prepare the stick in diskpart. Our diskpart commands guide covers cleaning and formatting a USB drive.

Common DISM errors when converting ESD to WIM

Most conversion failures come from four causes: a non-elevated prompt, a wrong path or index, too little free space, or a damaged source file. DISM shows an error number and writes details to C:\Windows\Logs\DISM\dism.log. Check the cause in the table, fix it, and run the export again into a new, empty destination file.

Error Likely cause Fix
Error 740: elevated permissions are required Command Prompt not run as administrator Reopen it with Run as administrator
Error 2: the system cannot find the file specified Wrong path, or you are not in the working folder Use full paths, such as C:\ESD\install.esd
Error 87: the parameter is incorrect Typo in a switch, or a space after a colon Check spelling; switches take no space after :
Error 112: not enough space on the disk Too little free space for the decompressed image Work on a drive with 15 GB or more free
“The file or directory is corrupted” or an integrity check failure Damaged download or a read error from the USB Download the media again and copy the ESD to a local drive
Mount fails or reports the request is not supported Trying to mount the ESD directly Convert to WIM first, then mount the WIM

A pattern we see in support tickets is a “corrupt” ESD that is really a half-copied file from a USB stick that was pulled out too early. Copy the ESD to an internal drive and compare its size with the original before blaming the download.

Frequently asked questions

Can I install Windows from install.esd directly?

Yes. Windows Setup reads install.esd just as it reads install.wim, which is why Media Creation Tool media works without any conversion. You only need to convert when you want to mount the image to add drivers or updates, or when a deployment tool such as Windows Deployment Services requires WIM format.

Why is install.wim bigger than install.esd?

install.esd uses Microsoft’s recovery compression, which squeezes the image much harder but can’t be mounted for servicing. When you export to WIM, even with /Compress:max, DISM uses lighter compression that supports editing. The Windows files inside are the same; only the packaging differs, so a larger WIM is normal.

How do I know which index is Windows 11 Pro?

Run dism /Get-WimInfo /WimFile:install.esd and read the Name line for each index. Index numbers vary between Windows releases and between consumer and business media, so always check your own file rather than copying an index from a guide. You can also export by name with /SourceName:"Windows 11 Pro".

Can I convert install.wim back to install.esd?

Yes. Use dism /Export-Image with the WIM as the source, a destination ending in .esd, and /Compress:recovery. Microsoft documents the recovery option for push-button reset images, and the resulting file is much smaller. Expect the export to take noticeably longer, because recovery compression is slow.

Does converting ESD to WIM affect Windows activation?

No. The image format has no bearing on licensing. Activation depends on the edition you install and the product key or digital licence for that edition. If you install Pro from a converted WIM, you still need a valid Windows 11 Pro licence for that PC to activate.

How much free space do I need to convert install.esd?

Allow at least 15 GB free on the working drive. The exported WIM is larger than the ESD, often by a gigabyte or more per edition, and DISM uses temporary scratch space while it works. If you are exporting several editions or mounting the image afterwards, leave more headroom to avoid error 112.

The bottom line

install.esd is built for small downloads and simple installs, and install.wim is built for customising. If you need to add drivers or updates, a single dism /Export-Image command gets you from one to the other, and /Split-Image handles FAT32 sticks. When the image is ready, our Windows 11 Pro install and activation guide takes you through Setup and activation.

Resource Why it helps
Microsoft Learn: DISM image management options Official syntax for /Export-Image, /Get-ImageInfo and /Mount-Image
Microsoft Learn: Split a Windows image How /Split-Image works and how Setup uses .swm files
Create a Windows 11 bootable USB The simple route if you don’t need a custom image
Diskpart commands guide Clean and format a USB stick before copying your image
OEM vs retail vs volume keys How the key you enter decides the edition that activates
Windows 11 Pro retail key A transferable licence for the Pro edition
Windows 11 Pro install and activation guide Next steps once your media is ready


Leave a Reply

Your email address will not be published. Required fields are marked *