Deploying VMs from templates harks back to the bad old days of disk imaging. But using “baremetal templates” ensures your virtual hardware configuration is consistent (choice of NIC, choice of array controller, disk is thin provisioned etc..). So make a baremetal template that boots straight into WinPE. Then you get consistent VM hardware config without maintaining disk images.
Create VM template or factory image with WinPE on harddisk
Create VM with required virtual hardware configuration
- Boot from MDT/WinPE ISO,
- partition disk,
- copy D: to C: (D is the win WinPE ISO)
- Disconnect ISO
- capture VM to template
F8 from WinPE to get command prompt
diskpart select disk 0 clean create partition primary size=2000 select partition 1 assign active format exit robocopy d:\ c:\ mir wpeutil shutdown
Makes 2GB partition for winPE (partition will be blown away during MDT build process anyway)
Then remove CD from VM hardware settings.
Then convert VM to template (admin rights in virtual center required)