Dism fail to apply image by name

Discussion in 'Windows 11' started by Konde, Oct 13, 2021.

  1. Konde

    Konde MDL Junior Member

    Aug 1, 2009
    72
    22
    0
    So, here is my story, I'm making a little script to deploy images by name, ej:
    dism /apply-image /imagefile:install.wim /applydir:w:\ /name:"Windows 11 Pro"​
    instead of
    dism /apply-image /imagefile:install.wim /applydir:w:\ /index:6​
    So, It can be used regardless of the index images on it. Thing is, it fails by name but works by index.
    I get the error
    2021-10-13 13:50:52, Error DISM DISM WIM Provider: PID=13192 TID=11788 onecore\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:916 - CWimManager::Apply(hr:0x80004005)
    2021-10-13 13:50:52, Error DISM DISM Imaging Provider: PID=13192 TID=11788 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:2829 - CGenericImagingManager::InternalCmdWimApply(hr:0x80004005)
    2021-10-13 13:50:52, Error DISM DISM Imaging Provider: PID=13192 TID=11788 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:537 - CGenericImagingManager::ExecuteCmdLine(hr:0x80004005)​
    Using dism 10.0.22000.1 with wim and esd files from microsoft official iso.
    Did anyone had this problem before? It works on older Windows 7 wim files.
     
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,216
    84,883
    340
    Check the esd or install.wim with 7-zip, and open [1].xml file

    they might set the images name as "Windows 10", and used "Windows 11" as display name
     
  3. LiteOS

    LiteOS Windowizer

    Mar 7, 2014
    2,207
    981
    90
    mb u want / meant dism /capture-image ?
    apply-image
    doesnt need name
     
  4. Konde

    Konde MDL Junior Member

    Aug 1, 2009
    72
    22
    0
    Thanks man, that was it, it has name and display name differently, I really appreciate your help.