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:
Info |
---|
Note: The steps below to create the 'Golden' Image and 'macrium_restore.xml' can be run in Windows PE if required. |
Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Next we need to mount the Windows Image (WIM) file and copy the 'macrium_restore.xml' file to the root of the image.
- 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'.
Open a command prompt with elevated privileges and type the following command:
Code Block language text theme FadeToGrey DISM /Mount-image /imagefile:C:\boot\macrium\WA10KFiles\media\sources\boot.wim /index:1 /MountDir:"c:\boot\mount"
Info 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.
Info 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:
Code Block language text theme FadeToGrey 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.