abbodi1406's Batch Scripts Repo

Discussion in 'Scripting' started by abbodi1406, May 4, 2017.

  1. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,665
    340
    @VDev
    Does removing EdgeWebView affect Widgets or other outbox apps?
    i know there are built-in version of EdgeWebView, but i'm not sure if Widgets use it

    i can add option to execute /Remove-Edge
     
  2. VDev

    VDev MDL Member

    Sep 9, 2015
    121
    64
    10
    It worked for few hours and then started behaving weirdly with empty windows and buttons. Webview2 is integrated very deeply in Windows Client editions. I think only hope is LTSC EU version which can remove Edge and Webview w/o side-effects. I tried switching regions from India to EU(Swiss, Ireland) but it didn't help. For now you can add /Remove-EdgeBrowser which thankfully made Windows 11 less bloated. Edge 130 has become a mess greater than Chrome. I don't know if there's a non-chrome browser on Windows.
    Edge is the next gen IE6 masquerading with chromium outer finish with lot of MSFT internal customization to mimic Safari, Firefox etc. With Windows 10 you can use /RemoveEdge flag to remove Edge and Webview w/o any side-effects while making sure 3rd party browser is installed/integrated otherwise you'll get without a browser.
    Thanks @abbodi1406 for making these batch scripts
     
  3. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,665
    340
    Which Windows 11? 22H2/23H2?

    Remove-EdgeBrowser will only remove "\Program Files (x86)\Microsoft\Edge\" but not the other folders
    that will not reduce install.wim size
     
  4. mantara32

    mantara32 MDL Novice

    Mar 31, 2010
    9
    3
    0
    Use along with Remove-EdgeWebView
     
  5. VDev

    VDev MDL Member

    Sep 9, 2015
    121
    64
    10
    Worked for me on Windows 11 23H2 and 24H2 images. I manually removed EdgeCore as well. Maybe that could be the reason. I knocked off 2GB in total for both Home and Pro editions in my ISO. Then again, I usually don't integrate netfx35 and include your dotnetfx switchless installer to run at post setup which makes final ISO smaller.
     
  6. ratsalad

    ratsalad MDL Novice

    Feb 27, 2010
    46
    3
    0
    W10UI won't update win 11 when there is a ,wim file in the update list.
    Is there a fix?
     
  7. Muggaen

    Muggaen MDL Addicted

    Dec 30, 2011
    744
    326
    30
    no problem here all work as normal
     
  8. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,306
    450
    It handles update,wim fine, always use the latest release to be sure, atm it's 47r.

    Code:
    ============================================================
    Running W10UI v10.47r
    ============================================================
    
    ============================================================
    Configured Options...
    ============================================================
    
    Net35
    Net35Source
    Cleanup
    ResetBase
    UpdtBootFiles
    WinRE
    ISO
    
    ============================================================
    Extracting dpx.dll file...
    ============================================================
    
    ============================================================
    Extracting .cab files from .msu files...
    ============================================================
    
    1/2: windows11.0-kb5043080-x64_LCU_1742.1.10.msu [Combined UUP]
    2/2: windows11.0-kb5044384-x64_LCU_2161.1.23.msu [Combined UUP]
    
    ============================================================
    Extracting files from update containers (cab/wim)...
    *** This will require some disk space, please be patient ***
    ============================================================
    
    1/6: defender-dism-x64_steven4554_Oct_25_2024.cab
    2/6: windows11.0-kb5044612-x64_DU_SafeOS_2003.1.1.cab [SafeOS DU]
    3/6: Windows11.0-KB5045934-x64-NDP481_CU_9282.1.cab [NetFx]
    4/6: windows11.0-kb5046339-x64_DU_Sources_2154.cab [Setup DU]
    5/6: Windows11.0-KB5043113-x64_inout.cab [SSU]
    6/6: Windows11.0-KB5046908-x64_inout.cab [SSU]
    
    ============================================================
    Mounting sources\install.wim - index 1/3
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.1742
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_2160~31bf3856ad364e35~amd64~~26100.2160.1.2
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_2160 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.1742
    
    Processing 1 of 1 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9282.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    01742-windows11.0-kb5043080-x64_LCU_1742.1.10.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.1742
    
    Processing 1 of 1 -
    The operation completed successfully.
    
    02161-windows11.0-kb5044384-x64_LCU_2161.1.23.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.1742
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==========================100.0%==========================] The operation completed successfully.
    
    ============================================================
    Resetting OS image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.2161
    
    [===========================99.8%========================= ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.2161
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding Defender update...
    ============================================================
    
    Platform  : 4.18.24090.11
    Engine    : 1.1.24080.9
    Signatures: 1.419.712.0
    
    ============================================================
    Adding .NET Framework 3.5 feature...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.2161
    
    Enabling feature(s)
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Reinstalling cumulative update(s)...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.2161
    
    Processing 1 of 1 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9282.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    01742-windows11.0-kb5043080-x64_LCU_1742.1.10.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.2161
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==========================100.0%==========================] The operation completed successfully.
    
    02161-windows11.0-kb5044384-x64_LCU_2161.1.23.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.2161
    
    Processing 1 of 1 -
    The operation completed successfully.
    
    ============================================================
    Updating winre.wim ...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_2160~31bf3856ad364e35~amd64~~26100.2160.1.2
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_2160 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 - Adding package Package_for_SafeOSDU~31bf3856ad364e35~amd64~~26100.2003.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.1
    
    [===========================98.5%========================= ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.1
    
    [===========================70.0%========                  ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image File : E:\W10UI_LTSC_2024_26100\winre.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding updated winre.wim ...
    ============================================================
    
            1 file(s) copied.
    
    ============================================================
    Unmounting sources\install.wim - index 1/3
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image File : E:\W10UI_LTSC_2024_26100\Work_1742_US\sources\install.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Rebuilding sources\install.wim ...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.1742
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_2160~31bf3856ad364e35~amd64~~26100.2160.1.2
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_2160 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    01742-windows11.0-kb5043080-x64_LCU_1742.1.10.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.1742
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==========================100.0%==========================] The operation completed successfully.
    
    02161-windows11.0-kb5044384-x64_LCU_2161.1.23.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.1742
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==========================100.0%==========================] The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.2161
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.2161
    
    [===========================70.0%========                  ]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image File : E:\W10UI_LTSC_2024_26100\Work_1742_US\sources\boot.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting sources\boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.1742
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_2160~31bf3856ad364e35~amd64~~26100.2160.1.2
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_2160 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    01742-windows11.0-kb5043080-x64_LCU_1742.1.10.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.1742
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==========================100.0%==========================] The operation completed successfully.
    
    02161-windows11.0-kb5044384-x64_LCU_2161.1.23.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.1742
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==========================100.0%==========================] The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.2161
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.2161
    
    [===========================70.0%========                  ]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image File : E:\W10UI_LTSC_2024_26100\Work_1742_US\sources\boot.wim
    Image Index : 2
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Rebuilding sources\boot.wim ...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding setup dynamic update(s)...
    ============================================================
    
    windows11.0-kb5046339-x64_DU_Sources_2154.cab
    
    ============================================================
    Removing temporary extracted files...
    ============================================================
    
    
    ============================================================
    Creating updated ISO file...
    ============================================================
    
    ISO Location:
    "E:\W10UI_LTSC_2024_26100"
    
    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.
    
    
    Scanning source tree (500 files in 49 directories)
    Scanning source tree complete (967 files in 95 directories)
    
    Computing directory information complete
    
    Image file is 5695569920 bytes (before optimization)
    
    Writing 967 files in 95 directories to 26100.2161.241018-1636.GE_RELEASE_SVC_PROD3_CLIENT_X64FRE_EN-US.iso
    
    100% complete
    
    Storage optimization saved 25 files, 14342144 bytes (1% of image)
    
    After optimization, image file is 5683431424 bytes
    Space saved because of embedding, sparseness or optimization = 14342144
    
    Done.
    
    ============================================================
       Finished
    ============================================================
    
    
    Press 9 or q to exit.
    
    
    Used Update:

    [​IMG]
     
  9. ratsalad

    ratsalad MDL Novice

    Feb 27, 2010
    46
    3
    0
    I get a winnt file error
     
  10. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,306
    450
    Where and can you show it?
     
  11. ratsalad

    ratsalad MDL Novice

    Feb 27, 2010
    46
    3
    0
    I get this message when run - "ERROR: Detected wim version is not Windows NT 10.0"
     
  12. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,306
    450
    Please show the full progress so we can assess the situation.

    And maybe mention what wim build you used as source?
     
  13. ratsalad

    ratsalad MDL Novice

    Feb 27, 2010
    46
    3
    0
    This wim file is the problem - Windows11.0-KB5044377-x64.wim.
    It is included in the update files.
     
  14. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,306
    450
    https://forums.mydigitallife.net/posts/1858451

    The update is from a the insider preview beta channel.

    Give us more info like the progress i showed in that post, instead of simply telling you get an error.
     
  15. ratsalad

    ratsalad MDL Novice

    Feb 27, 2010
    46
    3
    0
    There is no progress.
    The program starts and I get that error,
     
  16. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,306
    450
    @ratsalad
    Code:
    ====================== W10UI v10.47r =======================
    [1] Target (x64): "E:\W11UI\22621_Work_x64_US"
    
    [2] Updates: "E:\W11UI\22635_Updates_Beta"
    
    [3] DISM: "Windows NT 10.0 ADK"
    
    [4] Enable .NET 3.5: YES
    
    [5] Cleanup System Image: NO
    
    [7] Update WinRE.wim: YES
    
    [8] install.wim selected indexes: 4 / [K] Keep indexes: Selected
    
    [M] Mount Directory: "c:\W10UImount_641"
    
    [E] Extraction Directory: "c:\W10UItemp_7025"
    
    ============================================================
    Change a menu option, press 0 to start the process, or 9 to exit:
    
    Code:
    ============================================================
    Running W10UI v10.47r
    ============================================================
    
    ============================================================
    Configured Options...
    ============================================================
    
    Net35
    Net35Source
    UpdtBootFiles
    WinRE
    LCUwinre
    ISO
    
    ============================================================
    Removing temporary extracted files...
    ============================================================
    
    
    ============================================================
    Extracting dpx.dll file...
    ============================================================
    
    ============================================================
    Extracting files from update containers (cab/wim)...
    *** This will require some disk space, please be patient ***
    ============================================================
    
    1/4: windows11.0-kb5031483-x64.cab [Enablement]
    2/4: Windows11.0-KB5044383-x64.cab [SSU]
    3/4: Windows11.0-KB5044617-x64.cab [SafeOS DU]
    4/4: Windows11.0-KB5047137-x64.cab [Setup DU]
    
    ============================================================
    Mounting sources\install.wim - index 4/11
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_4435~31bf3856ad364e35~amd64~~22621.4435.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_4435 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_KB5031483~31bf3856ad364e35~amd64~~22621.2419.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding .NET Framework 3.5 feature...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    Enabling feature(s)
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Updating winre.wim ...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_4435~31bf3856ad364e35~amd64~~22621.4435.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_4435 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_SafeOSDU~31bf3856ad364e35~amd64~~22621.4305.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.2420
    
    [=============              23.7%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.2420
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image File : E:\W11UI\winre.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding updated winre.wim ...
    ============================================================
    
            1 file(s) copied.
    
    ============================================================
    Unmounting sources\install.wim - index 4/11
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image File : E:\W11UI\22621_Work_x64_US\sources\install.wim
    Image Index : 4
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Rebuilding sources\install.wim ...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_4435~31bf3856ad364e35~amd64~~22621.4435.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_4435 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_KB5031483~31bf3856ad364e35~amd64~~22621.2419.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    [===============            26.1%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image File : E:\W11UI\22621_Work_x64_US\sources\boot.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting sources\boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_4435~31bf3856ad364e35~amd64~~22621.4435.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_4435 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_KB5031483~31bf3856ad364e35~amd64~~22621.2419.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    [==============             24.8%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image File : E:\W11UI\22621_Work_x64_US\sources\boot.wim
    Image Index : 2
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Rebuilding sources\boot.wim ...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding setup dynamic update(s)...
    ============================================================
    
    Windows11.0-KB5047137-x64.cab
    
    ============================================================
    Removing temporary extracted files...
    ============================================================
    
    
    ============================================================
    Creating updated ISO file...
    ============================================================
    
    ISO Location:
    "E:\W11UI"
    
    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.
    
    
    Scanning source tree (500 files in 43 directories)
    Scanning source tree complete (946 files in 86 directories)
    
    Computing directory information complete
    
    Image file is 4701356032 bytes (before optimization)
    
    Writing 946 files in 86 directories to 22621.1.220506-1250.NI_RELEASE_CLIENT_X64FRE_EN-US.iso
    
    100% complete
    
    Storage optimization saved 24 files, 14239744 bytes (1% of image)
    
    After optimization, image file is 4689258496 bytes
    Space saved because of embedding, sparseness or optimization = 14239744
    
    Done.
    
    ============================================================
       Finished
    ============================================================
    
    
    Press 9 or q to exit.
    
    
    THE LCU is not integrated by W10UI_47r when the separate psf and wim are offered.

    Fix:

    First use PSFX_MSU to create the MSU from the single files:

    [​IMG]

    Feed it:
    Code:
    |   c782f4ff-3e71-4453-ac16-d0cab4d5c45d.AggregatedMetadata.cab
    |   DesktopDeployment.cab
    |   SSU-22621.4435-x64.cab
    |   Windows11.0-KB5044377-x64.psf
    |   Windows11.0-KB5044377-x64.wim
    
    And run: PSFX2MSU.cmd

    It will create: Windows11.0-KB5044377-x64.msu

    Now you can use this new MSU for use with W10UI_47r:

    Code:
    ====================== W10UI v10.47r =======================
    [1] Target (x64): "E:\W11UI\22621_Work_x64_US"
    
    [2] Updates: "E:\W11UI\22635_Updates_Beta"
    
    [3] DISM: "Windows NT 10.0 ADK"
    
    [4] Enable .NET 3.5: YES
    
    [5] Cleanup System Image: NO <--- I only disabled cleanup/resetbase because of speeding up the testing
    
    [7] Update WinRE.wim: YES
    
    [8] install.wim selected indexes: 4 / [K] Keep indexes: Selected
    
    [M] Mount Directory: "c:\W10UImount_2323"
    
    [E] Extraction Directory: "c:\W10UItemp_32033"
    
    ============================================================
    Change a menu option, press 0 to start the process, or 9 to exit:
    
    Code:
    ============================================================
    Running W10UI v10.47r
    ============================================================
    
    ============================================================
    Configured Options...
    ============================================================
    
    Net35
    Net35Source
    UpdtBootFiles
    WinRE
    LCUwinre
    ISO
    
    ============================================================
    Extracting dpx.dll file...
    ============================================================
    
    ============================================================
    Extracting .cab files from .msu files...
    ============================================================
    
    1/1: Windows11.0-KB5044377-x64.msu [Combined UUP]
    
    ============================================================
    Extracting files from update containers (cab/wim)...
    *** This will require some disk space, please be patient ***
    ============================================================
    
    1/4: windows11.0-kb5031483-x64.cab [Enablement]
    2/4: Windows11.0-KB5044617-x64.cab [SafeOS DU]
    3/4: Windows11.0-KB5047137-x64.cab [Setup DU]
    4/4: Windows11.0-KB5044383-x64_inout.cab [SSU]
    
    ============================================================
    Mounting sources\install.wim - index 4/11
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_4435~31bf3856ad364e35~amd64~~22621.4435.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_4435 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_KB5031483~31bf3856ad364e35~amd64~~22621.2419.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Windows11.0-KB5044377-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Mounting image
    [==========================100.0%==========================]
    
    [===========================80.0%==============            ]
    [==========================100.0%==========================] Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding .NET Framework 3.5 feature...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22635.4435
    
    Enabling feature(s)
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Reinstalling cumulative update(s)...
    ============================================================
    
    Windows11.0-KB5044377-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22635.4435
    
    Processing 1 of 1 - Mounting image
    [==========================100.0%==========================]
    
    [===========================80.0%==============            ]
    [==========================100.0%==========================] Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Updating winre.wim ...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_4435~31bf3856ad364e35~amd64~~22621.4435.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_4435 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_SafeOSDU~31bf3856ad364e35~amd64~~22621.4305.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Windows11.0-KB5044377-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.2420
    
    Processing 1 of 1 - Mounting image
    [==========================100.0%==========================]
    
    [===========================80.0%==============            ]
    [==========================100.0%==========================] Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.4435
    
    [=====================      36.3%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.4435
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image File : E:\W11UI\winre.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding updated winre.wim ...
    ============================================================
    
            1 file(s) copied.
    
    ============================================================
    Unmounting sources\install.wim - index 4/11
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image File : E:\W11UI\22621_Work_x64_US\sources\install.wim
    Image Index : 4
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Rebuilding sources\install.wim ...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_4435~31bf3856ad364e35~amd64~~22621.4435.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_4435 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_KB5031483~31bf3856ad364e35~amd64~~22621.2419.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Windows11.0-KB5044377-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Mounting image
    [==========================100.0%==========================]
    
    [===========================80.0%==============            ]
    [==========================100.0%==========================] Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.4435
    
    [=====================      36.6%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.4435
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image File : E:\W11UI\22621_Work_x64_US\sources\boot.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting sources\boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_4435~31bf3856ad364e35~amd64~~22621.4435.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_4435 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_KB5031483~31bf3856ad364e35~amd64~~22621.2419.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Windows11.0-KB5044377-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Mounting image
    [==========================100.0%==========================]
    
    [===========================80.0%==============            ]
    [==========================100.0%==========================] Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.4435
    
    [=====================      36.6%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.22621.4435
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image File : E:\W11UI\22621_Work_x64_US\sources\boot.wim
    Image Index : 2
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Rebuilding sources\boot.wim ...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding setup dynamic update(s)...
    ============================================================
    
    Windows11.0-KB5047137-x64.cab
    
    ============================================================
    Removing temporary extracted files...
    ============================================================
    
    
    ============================================================
    Creating updated ISO file...
    ============================================================
    
    ISO Location:
    "E:\W11UI"
    
    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.
    
    
    Scanning source tree (500 files in 43 directories)
    Scanning source tree complete (946 files in 86 directories)
    
    Computing directory information complete
    
    Image file is 8012890112 bytes (before optimization)
    
    Writing 946 files in 86 directories to 22635.4435.241016-1835.NI_RELEASE_SVC_BETAFLT_PROD1_CLIENT_X64FRE_EN-US.iso
    
    100% complete
    
    Storage optimization saved 24 files, 14239744 bytes (1% of image)
    
    After optimization, image file is 8000788480 bytes
    Space saved because of embedding, sparseness or optimization = 14239744
    
    Done.
    
    ============================================================
       Finished
    ============================================================
    
    
    Press 9 or q to exit.
    
    
     
  17. ratsalad

    ratsalad MDL Novice

    Feb 27, 2010
    46
    3
    0
    Perhaps better to wait for a future W10UI.
    Thanks for your help!
     
  18. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,306
    450
    As shown it works with the new IP 26100.2161.1.23 MSU also with a psf+wim, probably needs some fix for when separate psf+wim are offered, yes.
     
  19. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,665
    340
    W10UI don't support it (never will)
    it only support:
    - LCU msu (inner cab or wim)
    - LCU cab/psf (Win11)
    - LCU cab (Win10)
     
  20. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,153
    5,961
    150
    i remember who have script to extract & update files in wim file
    can you share it

    ------------

    i think i found it in W10UI.cmd

    Code:
    :wimmsu:
    function E($WimPath, $InnFile, $OutFile) {
    $DllPath = 'wimgapi.dll'
    $TB = [AppDomain]::CurrentDomain.DefineDynamicAssembly(4, 1).DefineDynamicModule(2, $False).DefineType(0)
    $FN = @(
    'WIMCreateFile;IntPtr;String, UInt32, Int32, Int32, Int32, Int32#Ref;128',
    'WIMLoadImage;IntPtr;IntPtr, Int32;128',
    'WIMSetTemporaryPath;int;IntPtr, String;0',
    'WIMExtractImagePath;int;IntPtr, String, String, Int32;0',
    'WIMCloseHandle;int;IntPtr;0'
    )
    foreach ($str in $FN) {
    $m=$str -split ';'
    $r=$m[1] -as [Type]
    $f=$m[3] -as [int]
    $p = [Collections.ArrayList]@()
    $m[2] -split ', ' | % { $i = $_ -split '#'; if ($null -eq $i[1]) {$p += ($_ -as [type])} else {$p += (($i[0] -as [type]).MakeByRefType())} }
    [void]$TB.DefinePInvokeMethod($m[0], $DllPath, 22, 1, $r, $p, 1, 3).SetImplementationFlags($f)
    }
    $WIMG = $TB.CreateType()
    $hWim = 0
    $hImage = 0
    $hWim = $WIMG::WIMCreateFile($WimPath, "0x80000000", 3, "0x20000000", 0, [ref]$null)
    [void]$WIMG::WIMSetTemporaryPath($hWim, [Environment]::GetEnvironmentVariable('SystemDrive'))
    $hImage = $WIMG::WIMLoadImage($hWim, 1)
    [void]$WIMG::WIMExtractImagePath($hImage, $InnFile, $OutFile, 0)
    [void]$WIMG::WIMCloseHandle($hImage)
    [void]$WIMG::WIMCloseHandle($hWim)
    }
    :wimmsu:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...