Overview

Winclone 7 Pro makes it easy to create, customize and deploy Windows packages to Boot Camp partitions. Winclone 7 Pro makes it easy to create a Winclone package either from a SysPrep’ed image or from a WIM file on a Windows installation ISO. The image can be customized during deployment to set the computer name, create user accounts, run scripts, install drivers and much more. This documents explains how to create, customize and deploy a Winclone package using Winclone 7 Pro.

Image Source

Winclone images can be created in two sources. Windows can be installed on a Boot Camp partition and then all the Applications/Programs installed and configured. The second method is to start with an image that is generated from the Windows install media. Either method allows for customization during restore and first boot.

Option 1: Gold Master

The Gold Master option involves installing Windows on a Boot Camp partition, and then running SysPrep as the final step. This forces Windows to scan for changes in hardware and install drivers as needed. It also allows for first boot customization. For more information on running SysPrep, see this article.

Option 2: Import From WIM

The second option for creating a Winclone image is using the Windows 10 installation ISO as the source. Download the version of Windows 10 that you want to install from Microsoft.

Option 2: Import From WIM (Mount ISO)

After the ISO has been downloaded, mount the ISO by double clicking it in the Finder. The ISO will mount and appear on the Desktop. Open the ISO and look in the Sources folder for a file named “install.wim”.

Option 2: Import From WIM (Import WIM)

In Winclone 7 Pro, select Create Winclone Image from WIM….

 

In the “Create Winclone Image from WIM” sheet, click the Select WIM button and select the “install.wim” file from the sources folder on the Windows 10 mounted ISO. Leave the “Make WinPE Bootable on Restore” option deselected, and click Save Image. Give the image a name and click Save. The Winclone image now contains the WIM file and will use it when restoring to a Boot Camp partition.

Deploying the Image Using a Winclone Package

You can create a Winclone Package to easily deploy this image to multiple machines. To do this, select Create Package from the Winclone 7 main window.

In the Create Package sheet, select the Winclone image you created. Click the Select Image button and select the image. If there are multiple Windows editions inside an imported WIM, select the correct edition using the popup menu.

Under Basic Options, select the options for creating or restoring to a Boot Camp partition.

Normally, Winclone will select the Boot Mode when booting Windows. If a Mac is not booting Windows in the mode you expected, you can force a boot mode here. You can also set the Startup Disk after package installation so that at next reboot, Windows will be booted into.

Create Package will create a package that contains the selected image. The package will restore Windows. You can set options on how the partition is selected when restoring or how the Boot Camp partition is created. When the Boot Camp partition is created, the size of the Boot Camp partition will be based on the size defined below.

  1. Select an existing Winclone image that has been imported from a WIM or saved from Winclone.
  2. If the image is WIM-based, there may be multiple images inside the WIM image. The popup will also show the recommended size. Select the correct image for including in the package.
  3. Basic Options sets information about the package and the restored partition.
  4. The package will contain a package identifier used by the target systems to track installed packages in macOS. A default package identifier using format “com.twocanoes.winclone_[random number sequence]” will be present in the identifier field and can be edited as needed. A package version number is included and set to 1.0 as a default, which can be edited as needed.
  5. Three options are available for the type of Boot Camp package to be created:
    1. Create the Boot Camp partition using a defined percentage of the total disk size and restore the image.
    2. Create the Boot Camp partition using a specified size in TB, GB or MB and restore the image.
    3. Do not create a Boot Camp partition (an existing Boot Camp partition must be present on the target Mac) and restore the image.
  6. After the package is installed, Winclone will set the boot mode (EFI or Legacy) based on the version of Windows and the the Mac hardware. Select this option to force a specific boot mode when installing this package.
  7. “Set restored partition as startup disk” will set the restored partition as the current startup disk. This will only work if SIP has been disabled for Startup Disk selection.

Naming

  1. Naming Customization:

    Name Customization will create a configuration file called unattend.xml and automatically populate the file with the naming information below. Further customizations can be added to the file by editing it in the package. Once the Winclone image is restored, the unattend.xml will be updated based on the variables in the Computer Name specified below and copied to the restored partition. On first boot, Windows will customize setup based on this unattend.xml file.

  2. Naming Components:
  • Organization: The organization name shown in Windows
  • Owner Name: The name of the owner shown in Windows
  • Time Zone: The initial time zone set in Windows. By default, the US/Central time zone is set, since it is superior to all other time zones.
  • Computer Name: The computer name will be set to this value. Variable substitution is supported. %HOSTNAME% will be replaced with the current hostname (“hostname -s”) from the Mac. This is either the name set in “Sharing” System Preferences pane, or the DNS name based on the IP address of the active interface. This variable substitution happens when the package is being installed in macOS, and is configured in Windows on first setup. If the hostname exceeds 15 characters, only the first 15 characters will be used. Only use characters valid for Windows computer names, or Windows will reject the naming and generate a random name.

 

User Accounts

 

Initial Setup after First Boot will copy resources and run scripts for any post imaging tasks. In order to automatically configure, a local administrator user account must be created. During package installation, the postinstall script will copy the Winclone folder (and all the contents) from inside the package to the root of the imaged drive. A first run script will also be copied to the Winclone folder. The script is named script.bat. The script will be run on automatic first login using the Admin user account configured above. The package will also contain a resource folder that will be copied to the Boot Camp partition after restore and can contain resources that can be referenced by the script.

  1. “Initial Setup after First Boot” will set an Admin username and password.
  2. “Automatically login once after first boot and run setup script” will use the admin user created in step 1 to login after setup and run the setup script.

Show Sysprep

When the Create Package… button is pressed, a standard Save dialog will appear to give the package a name and save location. After saving, an option to show the Sysprep folder allows further customizations of the first login script and resources copied to Windows.

Sysprep Folder

To add in additional resources to the restored image, copy them to the Winclone folder in the Sysprep folder. Any files in the Winclone folder will be copied to the root of the restored image (c:). A logon.bat file will also be created and automatically run after Windows is set up. Logon.bat is run by logging into the user account defined in the package settings and running the script. Add any additional software to install and add the commands to install the software to the logon.bat script. Some sample commands are included in the logon.bat, including installation of Windows Boot Camp drivers. The installation of Boot Camp drivers assumes that all the files and folders from the Windows Support Software have been copied to the Winclone folder (as shown above).

To download the Windows Support Software, see the steps below.

Boot Camp Assistant

To download the correct drivers for a Mac, open Boot Camp Assistant in the Utilities folder in macOS. Note that this procedure must be done on each model Mac that you will be imaging since different models may have different driver sets.

 

In Boot Camp Assistant, select “Download Windows Support Software” from the Action menu. Save the Support Software to a folder with a name that includes the model number of the Mac so that you can keep track of it.

Package Deployment

The package is now a standard macOS installer package that will create a Boot Camp partition (if needed), restore the WinPE files to the partition and then set it to boot into Windows correctly.