Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

The Windows installation media comes with the Install.esd but automating the OS install requires a .wim file. Learn how to convert the .esd to a .wim file.

Based on my experience using these 2 methods, PowerShell performs the conversion much faster than DISM.

Option 1: Convert the Windows Install.esd to a WIM File with DISM

The first method discussed in this guide is with DISM. DISM is more like a “Do-and-fix-anything” tool. It can fix Windows problems but can also be used to manage Windows image files!

Here are the steps:

  • Insert Windows 10 installation media into your PC.
Convert ESD to WIM with DISM
  • Then type cmd in the search bar. Then right-click cmd or Command Prompt and select Run as administrator.
Convert ESD to WIM with DISM
Before you convert Windows 10 Install.ESD to Install.WIM, you need the index number of the Windows 10 edition.
  • To get information in the Install.ESD file, including the index numbers of Windows 10 editions in the ESD file, type this command in command prompt. Then press enter.
DISM /Get-WimInfo /WimFile:E:\sources\install.esd

Replace E:\sources\install.esd with the path to the ESD file on your Windows installation media. To get this path, open the media. Then open Sources folder.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The command returns a list of all Windows 10 editions in the ESD file. Here is the result of my command. I want to create a WIM file for Windows 10 Pro. The index number is 6.

#1 Best Overall
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.
Convert ESD to WIM with DISM
  • To convert ESD to WIM (Install.ESD to Install.WIM) with DISM, type this command. Then press enter.
DISM /Export-Image /SourceImageFile:E:\sources\install.esd /SourceIndex:6 /DestinationImageFile:C:\WIMFiles\install.wim /Compress:Max /CheckIntegrity

Modify the following:
/SourceImageFile – replace E with the drive letter of your Windows 10 installation media
/SourceIndex – replace 6 with the index of the edition of Windows you wish to convert to WIM
/DestinationImageFile – replace C:\WIMFiles with the path you want to save your WIM file

The conversion will take some time to complete.

  • When the conversion is completed you can access the WIM file from the path you specified in /DestinationImageFile parameter.

Option 2: Convert the Windows Install.esd to a WIM File with PowerShell

You can also convert Install.ESD to Install.WIM with PowerShell.

Rank #2
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • Easily store and access 4TB of content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Here are the steps:

  • Right-click Start menu. Then click Windows PowerShell (Admin).
  • At Windows PowerShell command prompt, type the command below. Then press enter.
Get-WindowsImage -ImagePath "E:\sources\install.esd"

Replace:
-ImagePath: Change E to the drive letter of your Windows 10 installation media

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The command returns information about Windows editions in the ESD file.

Rank #3
Kosbees 500 GB External Hard Drives,Portable Hard Drive for Windows,Ultra Slim External HDD Store Compatible with PC, MAC,Laptop,PS4, Xbox one, Xbox 360;Plug and Play Ready
  • 【Plug-and-Play Expandability】 With no software to install, just plug it in and the drive is ready to use in Windows(For Mac,first format the drive and select the ExFat format.
  • 【Fast Data Transfers 】The external hard drives with the USB 3.0 cable to provide super fast transfer speed. The theoretical read speed is as high as 110MB/s-133MB/s, and the write speed is as high as 103MB/s.
  • 【High capacity in a small enclosure 】The small, lightweight design offers up to 500GB capacity, offering ample space for storing large files, multimedia content, and backups with ease. Weighing only 0.35 Lbs, it's easy to carry "
  • 【Wide Compatibility】Supports PS4 5/xbox one/Windows/Linux/Mac and other operating systems, ensuring seamless integration with game consoles,various laptops and desktops .
  • Important Notes for PS/Xbox Gaming Devices: You can play last-gen games (PS4 / Xbox One) directly from an external hard drive. However, to play current-gen games (PS5 / Xbox Series X|S), you must copy them to the console's internal SSD first. The external drive is great for keeping your library on hand, but it can't run the new games.

Here is my result of the command. For this example, I will create an Install.WIM file for Windows 10 Pro N. The index number is 7.

  • To Convert Install.ESD to Install.WIM with PowerShell, type this command and press enter.
Export-WindowsImage -SourceImagePath E:\sources\install.esd -SourceIndex 7 -DestinationImagePath C:\WIMFiles\export.wim -CheckIntegrity

Modify the following:
-SourceImagePath – replace E with the drive letter of your Windows 10 installation media
-SourceIndex – replace 7 with the index of the edition of Windows you wish to convert to WIM
-DestinationImagePath – replace C:\WIMFiles with the path you want to save your WIM file

Rank #4
YOTUO 500GB External Hard Drive, Portable Storage Expansion HDD, USB 3.0 & USB-C for PC, Mac, Desktop, Laptop, Smartphone, PS4, Xbox One, Xbox 360, Office & Game Black
  • 【Versatile Storage Expansion – For Gaming, Work & Everyday Use】 Running out of space on your PS5 or Xbox Series X/S? This external hard drive lets you store and play PS4 / Xbox One games directly, instantly freeing up your console’s internal storage for next‑gen titles. At the same time, it handles work file backups, media libraries, and cross‑device data transfers with ease. One drive, all your needs. *(Note: PS5 / Xbox Series X|S games cannot be run or stored directly from the external hard drive. However, by offloading your PS4 / Xbox One games, you can free up valuable space for newer titles.)*
  • 【Patented Silicone Sleeve – Data Protection You Can Count On】 Worried about drops? We’ve got you covered. The patented built‑in silicone sleeve acts like a shock‑absorbing armor, cushioning your drive against bumps and falls. Whether it’s important work documents, precious family photos, or hard‑earned game saves, your data deserves this level of protection.
  • 【Plug & Play, Compatible with Computers & Consoles】 No complicated setup—just plug in and go. Works seamlessly with Windows, Mac, and Linux computers, as well as PS4, PS5, Xbox One, and Xbox Series X/S. Process files at the office, back up data at home, or enjoy gaming in your downtime—one drive handles all your devices, simply and hassle‑free.
  • 【USB 3.0 Ultra‑Fast Transfer – No More Waiting】 Tired of watching progress bars crawl? With USB 3.0 speeds up to 5Gbps, large files transfer in seconds. Whether you’re moving work documents, transferring hundreds of gigs of games, or backing up a year’s worth of photos, you get more done in less time.
  • 【Sleek, Lightweight, and Ready to Go】 Weighing just 0.16 kg—lighter than a can of soda—this compact drive features a stylish mirror‑and‑frosted finish. Toss it in your bag and go, whether you’re heading to the office, visiting a friend for a gaming session, or giving a presentation on the road.

PowerShell will begin converting Install.ESD to Install.WIM. This will take a while. Wait..

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • When the conversion is completed, you can access the WIM file from the path specified in -DestinationImagePath parameter (see the second image below).
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Conclusion

For example, you need a WIM file to install Windows from a Windows Deployment Server. Unfortunately, the Windows 10 media comes with an ESD file, so you need a way to convert the file.

Best Value
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
  • Easily store and access 1TB to content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop. Reformatting may be required for Mac
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

This guide explained two methods to do this and I hope you achieved your aim of reading it. If you did, would you spare 2 minutes to share by responding to the “Was this page helpful?” question below?

Quick Recap

Bestseller No. 1
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$129.99
Bestseller No. 2
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$189.99
Bestseller No. 5
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$119.80

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.