If you've purchased a Macrium Reflect Deployment Kit License then to assist with deploying images it may be desirable to automate the restore of a 'Golden' Image by adding the Macrium Reflect auto restore xml file directly to the Windows Image (WIM) file used by the rescue media or by a PXE deployment server. 



Create your auto restore XML using your 'Golden' image by simulating a restore and pressing 'Ctrl' + 'Shift' + 'S' on the final restore wizard page as describe below:

Note: The steps below to create the 'Golden' Image and 'macrium_restore.xml' can be run in Windows PE if required.
Ensure that the Image file is located on an accessible network share if you intend to deploy using PXE 




Next we need to mount the Windows Image (WIM) file and copy the 'macrium_restore.xml' file to the root of the image.

  1. From within Windows (not PE), create an empty folder anywhere on your C: drive that will be used to mount the WIM file.  In this example we'll use 'C:\Boot\Mount'.

  2. Open a command prompt with elevated privileges and type the following command:

    DISM /Mount-image /imagefile:C:\boot\macrium\WA10KFiles\media\sources\boot.wim  /index:1  /MountDir:"c:\boot\mount"
    Note: The location of the WIM in this case is the default location for the Windows PE 10 WIM file. Please update as necessary in your own command.
  3. Open the mounted folder in Windows Explorer and copy the 'macrium_restore.xml' file to the root.



    Note: After copying the file close Windows Explorer so that there are no locks on the open folder.
  4. Type the following commands in the command prompt:

    Dism /Unmount-image /MountDir:"c:\boot\mount" /Commit
    Dism /Cleanup-Wim
  5. Once complete the WIM file can be copied to a deployment server or USB stick and used to initiate an automatic restore.