Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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