There are two ways to add the necessary configuration file to .wim image:
1. Use 7Zip or another archiver/viewer to open “boot.wim”
2. Use Microsoft dism command-line tool to mount “boot.wim” to add configuration file into that WIM file. More details about DISM tool can be found here.
This article contains instructions for using dism command-line tool to modify .wim file. Follow the steps below:
- Open Command prompt as Administrator: Start -> in search, type cmd -> right-click cmd.exe and select Run as administrator.
- Next, copy “boot.wim” to another location. In this example it is copied to C:\PlaceForWim
- Create a temporary folder for mounting boot.wim file as an image, e.g. C:\WimTempMountPoint
- Use command line and run the following command to mount the .wim file into the temporary folder
dism /Mount-Wim /WimFile:<path_to_image_file> /Index:1 /Mountdir:<path_to_mount_directory>
In our example the command looks like this:</>
dism /Mount-Wim /WimFile:C:\PlaceForWim\boot.wim /Index:1 /Mountdir:C:\WinTempMountPoint
The output should resemble the example below:
After the image is mounted, you can go to the folder where it is mounted (C:\WinTempMountPoint in this example) and update image contents by adding the vault configuration file obtained earlier.
It is not recommended to use Windows explorer or other file browsing applications for adding configuration file to the mounted image. Follow the instructions below to copy the file using the command-line tool.
1. Put the configuration file obtained from temporary media (file 165689CF-E511-4461-9056-D7460553A195 in this example) file to C:\PlaceForWim location
2. Run the following command:
copy <current_path_to_configuration_file> <path_to_mounted_wim_image>\ProgramData\Acronis\BackupAndRecovery\MMS\Locations\<vault_configuration_file_name>
For this example, the command looks like this:
copy C:\PlaceForWim\165689CF-E511-4461-9056-D7460553A195 C:\WinTempMountPoint\ProgramData\Acronis\BackupAndRecovery\MMS\Locations\165689CF-E511-4461-9056-D7460553A195
If the system answers that such file path cannot be found, create this path manually and then copy the file. See screenshot below
You can check directory content and make sure that file was was copied successfully:
The next step is committing changes in WIM file and unmounting the image.
Use the following command:
dism /Unmount-Wim /MountDir:<path_to_mounted_wim_image> /Commit
In current example the command looks like this:
dism /Unmount-Wim /MountDir:C:\WimTempMountPoint /Commit
If the operation completes successfully, you will get an appropriate message: