0 Replies Latest reply on Feb 13, 2018 9:22 AM by mlazovjp

    How do you use dism.exe in the Deploy Image action?

    mlazovjp Rookie

      I would like to use dism.exe to restore images using OS provisioning since ImageX has been deprecated since Windows 8 but I have not found instructions for how to do it.


      This is what I have tried so far, with varying results.

      1. Use an "Execute file" action to launch dism.exe and specify the appropriate parameters.  E.g. /Apply-Image /ImageFile:"\\<servername>\<path_to_Image>\win10x641709base.wim" /Index:1 /ApplyDir:C:\ .  This launches a new command prompt window and restores the image using dism.exe, however we do get visual feedback in neither the command prompt window nor the provisioning window until the task has completed.  The behavior is the same whether we capture output or not.
      2. I created a new "Deploy image" action, and chose "Other".  I specified the \\<servername>\<path_to_Image>\win10x641709base.wim for the image name.  The task currently downloads dism.exe files from the server and runs that, so I set imaging tool path to C:\Misc\Pre-OS_Installation\GetDISM\dism.exe .  For command line parameters I specified /Apply-Image /ImageFile:"\\<servername>\<path_to_Image>\win10x641709base.wim" /Index:1 /ApplyDir:C:\ .  It restores the image but it neither launches a command prompt window nor provides any output in the provisioning window while it is restoring the image.


      So, I have two questions:

      1. How do you force provisioning template actions to display in real-time output rather than waiting until the action has completed?
      2. Is there a recommended way to use DISM as the method for restoring an image, and if so, is there a way to make it display in real-time the progress of the restore?