Use this when working with Windows image files.
WIM
WIM (Windows Imaging Format) is the file-based image format of install.wim and boot.wim. One WIM can hold several editions; inspect it with dism /Get-ImageInfo and apply it with dism /Apply-Image.
1. dism /Get-WimInfo /WimFile:install.wim — indexes/editions.
2. Mount for servicing.
3. Split for FAT32 media (/Split-Image → .swm).
4. ESD vs WIM.
5. Verify after commit.
WIM file → indexed images → applied by index
Context & applicabilityCommon mistakes · platform/version boundaries
- Applying the wrong index (edition) from a multi-image WIM.
- ESD files used where tools expect WIM — export to WIM first.
- WIM larger than 4 GB on FAT32 USB media — split it.
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- One WIM can hold several editions by index.
- Use the right index when applying.
- Mount an image to service it offline.
Get-ComputerInfo -Property BiosFirmwareType— UEFI or legacy BIOSGet-Disk | Select Number,PartitionStyle— GPT or MBRGet-Content C:\Windows\Panther\setupact.log -Tail 50— setup logdism /Get-WimInfo /WimFile:<install.wim>— images in a WIM
ReferenceWhy it matters1 section · depth on demand
WIM facts
- File-based, single-instance storage: several editions (indexes) share files in one WIM.
install.wimholds editions;boot.wimholds WinPE/Setup.- Larger than 4 GB WIMs do not fit on FAT32 USB sticks: split with
dism /Split-Image /SWMFile:install.swm /FileSize:3800or use ESD. - ESD is a more compressed, read-only variant used by Microsoft downloads.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
WIM is a file-based image format: multiple images (indexes) per file, single-instance storage of identical files, compression (fast/max/LZMS in ESD).
Dism /Get-WimInfo /WimFile:D:\sources\install.wim
Dism /Export-Image /SourceImageFile:install.esd /SourceIndex:6 /DestinationImageFile:install.wim /Compress:max
Dism /Mount-Image /ImageFile:install.wim /Index:1 /MountDir:C:\mount
Dism /Image:C:\mount /Add-Package /PackagePath:C:\updates\windows11.0-kb5044284-x64.msu
Dism /Unmount-Image /MountDir:C:\mount /Commit
FAT32 USB sticks cannot hold WIMs over 4 GB — split with Dism /Split-Image into .swm files.
ReferenceConfiguration & state1 section · depth on demand
Commands
Dism /Get-WimInfo /WimFile:D:\sources\install.wim
Dism /Export-Image /SourceImageFile:install.esd /SourceIndex:6 /DestinationImageFile:install.wim /Compress:max
Dism /Split-Image /ImageFile:install.wim /SWMFile:install.swm /FileSize:3800
Documented example, not captured output. Split WIMs (.swm) fit FAT32 USB sticks, which have a 4 GB file limit.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Installation & Deployment → WIM. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows/deployment/ · confidence 94%