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.
Next we need to mount the Windows Image (WIM) file and copy the 'macrium_restore.xml' file to the root of the image.
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.|
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.|
Type the following commands in the command prompt:
Dism /Unmount-image /MountDir:"c:\boot\mount" /Commit Dism /Cleanup-Wim
Once complete the WIM file can be copied to a deployment server or USB stick and used to initiate an automatic restore.