Skip to content

Instantly share code, notes, and snippets.

@gaelcolas
Created July 9, 2016 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gaelcolas/2f6299c84ce94769cdcc608ccac9b76c to your computer and use it in GitHub Desktop.
Save gaelcolas/2f6299c84ce94769cdcc608ccac9b76c to your computer and use it in GitHub Desktop.
Capture WIM from VHD
Mount-WindowsImage -ImagePath .\baseNoWMF5.vhd -Path ./VHD -Index 1
New-WindowsImage -ImagePath .\customImage.wim -CapturePath .\VHD\ -Name customImage
Dismount-WindowsImage -Path .\VHD -Discard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment