Skip to content

Instantly share code, notes, and snippets.

@gaelcolas
Created July 9, 2016 21:47
Show Gist options
  • Save gaelcolas/1b085e4cd3439ec5fbe00bd08875fde6 to your computer and use it in GitHub Desktop.
Save gaelcolas/1b085e4cd3439ec5fbe00bd08875fde6 to your computer and use it in GitHub Desktop.
Create VM on Diff disk and attach unattendxml iso before starting
New-VHD -Differencing -ParentPath .\BaseWMF5.vhd -Path .\BaseWMF5_diff.vhd
New-VM -Name TestBase -BootDevice IDE -VHDPath .\BaseWMF5_diff.vhd -SwitchName inet -Path .\hyperv\
set-VMDvdDrive -VMName TestBase -Path .\Unattendxml.iso
Start-VM TestBase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment