Error: “An error occurred while unmounting the image file” in Media Wizard

Symptoms

When creating media in Media Wizard, you may receive the following error message:
"An error occurred while unmounting the image file."

Cause

This error is commonly caused by a compatibility issue between the SmartDeploy Media Wizard and the installed version of the Windows Assessment and Deployment Kit (ADK). This is especially prevalent when working with Windows 11 24H2 devices, where older or mismatched ADK versions may not function as expected.

Note: While ADK compatibility is the most common cause, other issues may result in this error.
If you’ve confirmed that you're using the correct version of the ADK for your operating system, please submit a support ticket and include the following log file:
C:\SmartDeploy\Logs\MediaWizard.log
(If you installed SmartDeploy to a different location, such as D:\ or E:\, check that path instead.)

Resolution

To resolve this issue:

  1. Install the latest Windows ADK and Windows PE add-on

  2. Delete the SmartDeploy scratch folder

    • Navigate to C:\SmartDeploy\Scratch

    • Delete all contents in this folder

  3. Recreate your media

    • Open the SmartDeploy Console

    • Launch Media Wizard and try creating the media again

Still have a question or want to share what you have learned? Visit our Community Discord to get help and collaborate with others.