MERGE WIM This script is designed to make merging two .wim files quick and easy. It provides an interactive interface with dialog boxes to select files, choose compression types, and specify the output location. FEATURES ◼Choose any index: Select any index from the .wim files ◼Detailed info: Displays the name, index number, and description of each file ◼Compression options: Choose from None, XPRESS, LZX, or LZMS ◼New design: ◼Compatibility: Combine .wim files from Windows 10 and Windows 11 [idk, test it, lol] HOW TO USE ◼Run as administrator: Start the script with admin privileges. ◼Select the first file: Choose the first .wim file. ◼Select the second File: Pick the second .wim file. ◼Specify output location: Select where to save the merged file. ◼Choose compression: Select your preferred compression type: None XPRESS LZX LZMS ◼Relax: Let the script do its magic! LINKS https://github.com/ophynz/MERGE-WIM/releases/tag/INDEX PHOTOS https://in-myclub.blogspot.com/2025/04/merge-wim.html
@phynz This is a snippet from your script: Code: Write-Host "Exporting images..." -ForegroundColor Red dism /Export-Image /SourceImageFile:$sourceFile1 /SourceIndex:1 /DestinationImageFile:$destinationFile /Compress:max /CheckIntegrity Write-Host "Adding images..." -ForegroundColor Red dism /Export-Image /SourceImageFile:$sourceFile2 /SourceIndex:1 /DestinationImageFile:$destinationFile /Compress:max /CheckIntegrity Which means you are always exporting the first index of the chosen WIM files, ignoring the fact that the source(s) can be multi-index as well. This is what @tcntad pointed out.
yes, I shouldve been more clear. The /SourceIndex will always be number 1, make it list available indexes and ask for input