Use a newer version of DISM in WinPE

To use some DISM features in WinPE, you may need to run a different version of DISM than what's available in your OS.

Each time you boot WinPE and want to use these features, you'll need to install and configure the drivers needed for DISM, including the wimmount.sys and wofadk.sys drivers.

The CopyDandI.cmd script copies the version of DISM from your local installation of the ADK to a folder which you can use in WinPE.

Option 1: Run DISM from a separate location


Don't overwrite the existing DISM files on the WinPE image.

  1. Start the Deployment and Imaging Tools Environment as an administrator.

  2. From the technician PC, copy the Deployment and Imaging Tools from the Windows ADK to the storage USB key.

    CopyDandI.cmd amd64 E:\ADKTools\amd64

Option 2: Add DISM to the WinPE RAMDisk.


This will add roughly 4MB to the size of your DISM image, which may affect performance.

  1. On your technician PC, install the Windows ADK.

  2. Mount the WinPE image, which you can find in the \sources\boot.wim of your WinPE media or WinPE working files.

    md "C:\WinPE_amd64\mount"
    Dism /Mount-Image /ImageFile:"C:\WinPE_amd64\media\sources\boot.wim" /index:1 /MountDir:"C:\WinPE_amd64\mount"
  3. Copy the DISM folder from the Windows ADK into a new folder in the mounted WinPE image.

    md C:\WinPE_amd64\mount\DISM
    robocopy "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\DISM" C:\WinPE_amd64\mount\DISM


    Don't overwrite the existing DISM files from the system32 folder in the WinPE image. Instead, create a new folder on the host computer to copy the Windows ADK files into.

  4. Unmount WinPE.

    Dism /Unmount-Image /MountDir:"C:\WinPE_amd64\mount" /commit
  5. Create WinPE bootable media, or replace the WinPE image file on your existing removable media.

    MakeWinPEMedia /UFD C:\WinPE_amd64 F:

Use the new version of DISM

  1. Boot the reference PC to WinPE.

  2. Find the drive letter of the storage drive (diskpart, list volume, exit).

  3. Install and configure DISM's required drivers by using either wimmountadksetupamd64.exe /Install or wimmountadksetupx86.exe /Install.

    W:\ADKTools\amd64\wimmountadksetupAmd64.exe /Install /q

    For the default (RAMDisk) version of WinPE, you'll need to run this command each time you boot WinPE. To learn how to run this command automatically when WinPE boots, see Wpeinit and Startnet.cmd: Using WinPE Startup Scripts.

  4. Verify the new version of DISM:

    W:\ADKTools\amd64\DISM.exe /?

    The output shows the build number, for example:

    Deployment Image Servicing and Management tool
    Version: 10.0.14939.0
  5. Use the new version of DISM. Example:

    W:\ADKTools\amd64\DISM.exe /Apply-Image /ImageFile:install.wim /Index:1 /ApplyDir:W: /Compact
    W:\ADKTools\amd64\DISM.exe /Apply-SiloedPackage /ImagePath:W:\ /PackagePath:"e:\SPPs\fabrikam-id.spp" /PackagePath:"D:\SPPs\office16_base.spp" /PackagePath:"D:\SPPs\office16_fr-fr.spp" /PackagePath:"D:\SPPs\office16_de-de.spp"

DISM Supported Platforms

WinPE: Mount and Customize