Skip to content

Instantly share code, notes, and snippets.

@JunielKatarn
Last active May 4, 2023 08:53
Show Gist options
  • Save JunielKatarn/4b000d8ed86f4cff856118671b20f230 to your computer and use it in GitHub Desktop.
Save JunielKatarn/4b000d8ed86f4cff856118671b20f230 to your computer and use it in GitHub Desktop.
Correct way to merge SWM files into a WIM file. TechNet documentation is wrong for this command.
# Taken from https://technet.microsoft.com/en-us/library/hh825258.aspx
Param
(
$ImageName
)
dism /Export-Image `
/SourceImageFile:${ImageName}.swm `
/SWMFile:${ImageName}*.swm `
/SourceIndex:1 `
/DestinationImageFile:${ImageName}.wim `
/CheckIntegrity
@Tyramizou
Copy link

This PowerShell-script does not work with swm-fileS

only with one swm-file, but this is a lil bit pointless cause there are always MORE than one swm-file.
you split from wim to swm when the image is too big.
so there are always more than one swm-file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment