This guide shows you how to convert a Windows 10 install.esd file into a standard install.wim file. This is useful when you need to modify a Windows image (e.g., inject drivers, enable features, or create a customized installation USB) with tools that only accept WIM files, or when you need to mount the image with DISM for offline servicing. You’ll need a Windows 10 PC with the DISM tool (built-in) and enough free disk space—typically 5–10 GB, depending on the size of the ESD file.
What You’ll Need
- A Windows 10 installation ISO or USB drive containing the
install.esdfile (usually in thesourcesfolder). - Administrator access on your PC.
- At least 10–15 GB of free disk space on the drive where you’ll store the output WIM file.
- Optional: 7-Zip or similar tool if you need to extract the ESD from an ISO without mounting it.
Step-by-Step
- Locate the install.esd file. If you have an ISO, right-click it and select “Mount” in Windows 10. Then open the mounted drive, go to
sources, and note the full path toinstall.esd(e.g.,E:\sources\install.esd). If you have a USB, it’s usually atD:\sources\install.esd. - Open Command Prompt as Administrator. Click Start, type
cmd, right-click “Command Prompt” and choose “Run as administrator.” Confirm the UAC prompt. - Check the image index numbers. Run the following command to list all editions inside the ESD file:
dism /Get-WimInfo /WimFile:C:\path\to\install.esd
ReplaceC:\path\to\install.esdwith your actual path. Note the index number of the edition you want to convert (e.g., 1 for Home, 6 for Pro). - Create a temporary folder for the WIM file. For example,
mkdir C:\tempand thenmkdir C:\temp\wim. Make sure this drive has enough free space. - Export the ESD index to a WIM file. Run:
dism /Export-Image /SourceImageFile:C:\path\to\install.esd /SourceIndex:6 /DestinationImageFile:C:\temp\wim\install.wim /Compress:max /CheckIntegrity
Replace6with the index you noted. This converts the selected edition to a WIM file. The process can take 10–30 minutes depending on your hardware. - Verify the new WIM file. Run
dism /Get-WimInfo /WimFile:C:\temp\wim\install.wimto confirm it’s valid and shows the correct edition name. - Replace the ESD in your installation media. If you’re building a custom USB, copy the new
install.wimto thesourcesfolder of your USB drive and delete the oldinstall.esd(or keep both, but Windows Setup will use the WIM if present). If you’re using the ISO, you’ll need to recreate the ISO with a tool like Rufus or the Windows ADK. - Clean up. Once verified, you can delete the temporary WIM file if you no longer need it, or keep it for future modifications.
Common Mistakes
- Using the wrong index number. The ESD contains multiple Windows editions. If you pick the wrong one, you’ll get the wrong edition in your WIM. Always check with
Get-WimInfofirst. - Not running as Administrator. DISM requires elevated privileges. If you get an “access denied” error, close and reopen Command Prompt as admin.
- Running out of disk space. The WIM file is usually 3–5 GB, but the export process may temporarily use more. Ensure you have at least 10 GB free.
- Using a 32-bit DISM on a 64-bit ESD. This is rarely an issue, but if you’re on a very old system, make sure you’re using the 64-bit DISM for 64-bit images.
- Typing the path with spaces incorrectly. If your path contains spaces, wrap it in quotes, e.g.,
"C:\My Files\install.esd".
Tips
- Use /Compress:max to keep the WIM file as small as possible. If you need faster deployment, use
/Compress:fastor/Compress:none(larger file but faster to apply). - Convert all editions at once? You can’t export multiple indexes in one command, but you can run the export command multiple times with different
/SourceIndexvalues and different destination filenames (e.g.,install_Home.wim,install_Pro.wim). - Keep the original ESD. Don’t delete it until you’ve verified the WIM works—you may need to re-extract if something goes wrong.
- Use a solid-state drive (SSD) for the destination folder to speed up the export significantly.
- If you only need to mount the image (not modify it), you might not need to convert at all—DISM can mount ESD files directly in recent Windows 10 versions. But for maximum compatibility, converting is safer.
Troubleshooting
- Error 0x80070057 (invalid parameter): Usually means the path is wrong or the index number doesn’t exist. Double-check the path and re-run
Get-WimInfoto confirm the index. - Error 0x800f081e (source not found): The ESD file may be corrupted. Try re-downloading the ISO or copying the file again from the USB.
- Export fails at 99% with “not enough storage”: Free up disk space on the destination drive. The export needs roughly 1.5× the final WIM size temporarily.
- DISM is not recognized: You’re likely on a non-Windows system or an outdated Windows version. DISM is included in Windows 8 and later. On Windows 7, use
imagex.exefrom the Windows ADK instead. - The WIM file is created but won’t boot: This is rare if you only converted the image. Make sure you didn’t accidentally export a WinRE (recovery) index. Check the description in
Get-WimInfooutput.
Frequently Asked Questions
Q: Why does Windows Setup use install.esd instead of install.wim?
A: Microsoft compresses ESD files more aggressively to save space on installation media. The trade-off is that ESD is slower to apply and less compatible with third-party tools.
Q: Can I convert install.wim back to install.esd?
A: Yes, using dism /Export-Image /Compress:recovery to create an ESD. However, this is rarely needed and the process is similar to the reverse.
Q: Does this work for Windows 11 too?
A: Yes, the DISM commands are the same for Windows 11. The ESD/WIM structure hasn’t changed.
Q: How long does the conversion take?
A: On a typical modern PC with an SSD, 10–20 minutes. On an older HDD, it can take 30 minutes or more. It depends on the size of the ESD and the compression level chosen.
Q: Can I use this WIM file to create a bootable USB?
A: Yes. Copy the entire contents of the ISO to a FAT32 USB drive, then replace the install.esd in the sources folder with your new install.wim. Make sure the USB is bootable (use Rufus or the Media Creation Tool to format it correctly).
Q: What if I only want to extract a single file from the ESD?
A: Use 7-Zip to open the ESD as an archive and extract the file you need. You don’t need to convert the whole image for that.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Google Desktop Search Widget on Windows 11
- How to Build a Computer Stand (Saturday Workshop)
- Customize Touch Keyboard Themes in Windows 11
- Excel Pivot Table: Change Multiple Field Settings
- WhatsApp: How to Block Unknown Numbers
- How to Exit Vi in Linux: A Simple Guide