Skip to content

Instantly share code, notes, and snippets.

@gaelcolas
Created July 9, 2016 21:54
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/7c581cc1c99cbd82bff30b68bcf6b4e6 to your computer and use it in GitHub Desktop.
Save gaelcolas/7c581cc1c99cbd82bff30b68bcf6b4e6 to your computer and use it in GitHub Desktop.
Patch and modify a Windows VHD Image with DISM Commandlets
Mount-WindowsImage -ImagePath .\baseNoWMF5.vhd -Path ./VHD -Index 1
Add-WindowsPackage -PackagePath .\Win8.1AndW2K12R2-KB3134758-x64.msu -Path .\VHD
Use-WindowsUnattend -UnattendPath C:\src\winopsconf\TestKitchen\Unattend.xml -Path .\VHD
Dismount-WindowsImage -Path .\VHD -Save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment