none
How to add files in the Boot.wim file ? RRS feed

  • Question

  • may i know all the ways to add file or edit the boot.wim file ?

    If i want to inject powercfg.exe into the boot.wim what is the best way how to do that ?

    I found below step in our TS , Does it mean by we are injecting powercfg.exe in the boot.wim file ?

    %SYSTEMROOT%\system32\PowerCfg.exe /s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c

    I am uploading the osdinjection.xml file, there are so many files i found in that , may i know how to add all those ?

    https://gofile.io/?c=4UcvYl

    Friday, September 6, 2019 4:07 PM

Answers

  • That's means it's probably meant to run in WinPE then. 

    As for OSDInjection.xml, it's not technically supported to modify that. It can work well though. There are many guides available on the web including this one that should work: https://deploymentparts.wordpress.com/2015/08/14/permanently-inject-files-into-your-boot-images/


    Jason | https://home.configmgrftw.com | @jasonsandys

    • Marked as answer by Arunrana5050 Friday, September 6, 2019 9:38 PM
    Friday, September 6, 2019 5:54 PM

All replies

  • may i know all the ways to add file or edit the boot.wim file ?

    There's no single discrete list for this. Ultimately, it all comes down to mounting the image, adding the file, and unmounting the image. ConfigMgr does this for you anytime you update the boot image package using the console as it injects the files specified in the osdinjection.xml at that time.

    > Does it mean by we are injecting powercfg.exe in the boot.wim file ?

    Most likely not but it depends on where in the TS this is run. Is it after or before the Setup Windows and ConfigMgr task?


    Jason | https://home.configmgrftw.com | @jasonsandys

    Friday, September 6, 2019 5:19 PM
  • Well it is before the  Setup Windows and ConfigMgr task and  it is the 2nd step in TS, means before pre-install ,install and post-install step .
    Friday, September 6, 2019 5:29 PM
  • That's means it's probably meant to run in WinPE then. 

    As for OSDInjection.xml, it's not technically supported to modify that. It can work well though. There are many guides available on the web including this one that should work: https://deploymentparts.wordpress.com/2015/08/14/permanently-inject-files-into-your-boot-images/


    Jason | https://home.configmgrftw.com | @jasonsandys

    • Marked as answer by Arunrana5050 Friday, September 6, 2019 9:38 PM
    Friday, September 6, 2019 5:54 PM
  • :0 i  am also looking at the same blog , but  i am facing error when i am manually trying to mount boot wim file

     i am using following command : Dism /Mount-WIM /Wimfile:"D:\bootmedia\pd_x64_1809.1.1.iso" /index:1 /MountDir:D:\test

    Error it is showing is : 

    An attempt was made to load a program with an incorrect format.

    What  i am doing wrong here

    Friday, September 6, 2019 6:58 PM
  • DISM mounts WIM files, not ISO files.

    Jason | https://home.configmgrftw.com | @jasonsandys

    Friday, September 6, 2019 7:19 PM
  • got it :)
    Friday, September 6, 2019 9:38 PM