• List the images in the WIM file

Before making any modifications, it’s crucial to understand the contents of your WIM file. Use the following command to list all images:

dism /get-wiminfo /wimfile:"E:\Windows10_1809\sources\install.wim"
  • Merging WIM

There might be instances where you need to merge multiple WIM files. Here’s how:

Dism /Export-Image /SourceImageFile:"%~dp0W7X86EN.wim" /SourceIndex:1 /DestinationImageFile:"%~dp0W7X86_v2.wim" /DestinationName:"en-us"
Dism /Export-Image /SourceImageFile:"%~dp0W7X86FR.wim" /SourceIndex:1 /DestinationImageFile:"%~dp0W7X86_v2.wim" /DestinationName:"fr-fr"

The DestinationName option is used to identify the index

  • Unmount All Wim

With dism tool

dism /cleanup-wim

With Powershell

Get-WindowsImage -Mounted | Dismount-WindowsImage -Discard (ou -save)


0 Comments

Leave a Reply

Avatar placeholder

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.