

Uses Vagrant to attach the virtual disk that was built in the previous step to an Ubuntu VM, then uses either ntfsprogs and pigz (parallel gzip) to make an image file compatible with Winclone's command-line tools, or wimlib to make a WIM image restorable using other standard Windows imaging tools. The VM will install Windows, Office 2016, run updates and then self-sysprep using the unattend_capture.xml answer file. See the "More Details" section further down for more on each step. OutlineĪll tasks are driven by a simple Python script, run_build.py, which supports different "steps." The following is a rough outline of the steps this project can perform. These templates and scripts were borrowed from these repos around spring 2016, so there may be newer changes in their source repos. The Windows Packer template and several scripts (mainly win-updates.ps1) are mostly borrowed from the excellent joefitzgerald/packer-windows and dylanmei/packer-windows-templates repos, with some additions.

If the image build and capture process used in this project were better documented, it would be easier to know exactly how to remove these steps or further customize the image, but for now this project assumes a familiarity with Windows OSD deployment, Sysprep, PowerShell, etc. You may choose to omit some of these steps (for example installing your own custom Office) and just comment them out. The particular sequence of steps to build the image is quite site-specific and I've tried where possible to leave the scripts intact but to remove any links to internal locations and credentials. LTSB isn't strictly required, but it's what we're using currently. It is a fully up-to-date Windows 10 LTSB installation including Office 2016, Sophos and the BootCamp drivers. This particular image is used in dual-boot labs managed by this project's maintainer. This tool hasn't yet been tested with Winclone 6 - WIM support should be possible but it's likely going to need some minor changes to be compatible with how Winclone 6 expects the image bundle to be laid out. Winclone 6, released after this tool was originally written, now also uses the WIM format to store the image.


It can also output the image in WIM format, using wimlib tools to build the image. Winclone Pro also supports installing these images via a self-extracting bundle-style macOS installer package, which this tool can also produce. By default it will build the image in a format compatible with Winclone or DeployStudio. This repo is a collection of tools and scripts that can be used to automatically build a Windows image from start to finish in a virtual machine, and was written for imaging Windows onto labs of Mac computers.
