abbodi1406's Batch Scripts Repo

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

  1. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,197
    90,711
    340
    uup-converter v90

    - The two ISO boot files bootmgr.efi/bootmgfw.efi will be always updated
    other files are still controlled by option "UpdtBootFiles"

    - Implemented workaround to add the missing Printing-PMCPPC-FoD-Package (builds 19041+) to Pro/Pro N editions during updating process

    - Added new configuration option "DisableUpdatingUpgrade", which allow to disable updating process optimization by using editions upgrade (Home>Pro / ServerStandard>ServerDatacenter)
    this means each edition will be updated separately, which will take more time and resources



    W10UI v10.29

    - ISO files bootmgr.efi/bootmgfw.efi will be always updated, regardless UpdtBootFiles option
     
  2. fch1993

    fch1993 MDL Senior Member

    Mar 14, 2020
    381
    273
    10
    #2422 fch1993, Jun 14, 2023
    Last edited: Jun 14, 2023
    @abbodi1406

    I can't run the W10UI on "windows terminal" even through I set it as system default terminal.


    for example:

    run the command on windows terminal with administrator privileges CMD.

    Code:
    
    cd D:\DISM\W10UI\22621
    
    W10UI.cmd
    
    
    which will run on windows terminal.

    but right click and set run on windows terminal, even I set the "windows terminal" ad the system default terminal. It will not run on windows terminal.
     
  3. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,197
    90,711
    340
    It's Windows command prompt script, not terminal or powershell

    change teminal default application to Windows Console Host
    https://support.microsoft.com/help/5020574
     
  4. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    #2424 inTerActionVRI, Jun 14, 2023
    Last edited: Jun 14, 2023
    I'm going to report something just for the curiosity of the fact. If anyone needs it, they can use it.

    I recently migrated my everyday machine from the 19045 to the 22621.
    I never tested @Mouri_Naruto MinSudo in W11 before.

    Today I had tested it and runs the cmd script in Terminal.
    The script starts naturaly in Terminal.
    But when the Script Elevate to the Admin Rights the script runs in new native cmd window out of Terminal.
    This not occurs with MinSudo. The Elevated Script opens in the Terminal again.
     
  5. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,849
    2,099
    60
    can it be that the user setting on Mittle is not taken into account ?
     
  6. fch1993

    fch1993 MDL Senior Member

    Mar 14, 2020
    381
    273
    10
    But the terminal default is not working.

    as the @inTerActionVRI says.

    like, run "KMS_VL_ALL_AIO.cmd" in the terminal, after the UAC pop-up,the Scripts will open a new conhost.exe, not a new terminal.
     
  7. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,197
    90,711
    340
    Windows terminal cannot run as adminitrator itself?
     
  8. armond

    armond MDL Addicted

    Jun 16, 2008
    736
    235
    30
    Hello, It looks like Cleanup/ResetBase are not working when updating install.wim? Both are set to 1.
    [W10UI-Configuration]
    Target =C:\11
    Repo =
    DismRoot =dism.exe

    Net35 =1
    Net35Source =
    Cleanup =1
    ResetBase =1
    LCUwinre =1
    WinRE =1
    UpdtBootFiles =1
    SkipEdge =0

    _CabDir =W10UItemp
    MountDir =W10UImount
    WinreMount =W10UImountre

    wim2esd =0
    wim2swm =0
    ISO =0
    ISODir =
    Delete_Source =0

    AutoStart =0

    ============================================================
    Running W10UI v10.29
    ============================================================

    ============================================================
    Extracting files from update cabinets (.cab)...
    *** This will require some disk space, please be patient ***
    ============================================================

    1/8: defender-dism-x64.cab
    2/8: windows11.0-kb5012170-x64.cab [SecureBoot]
    3/8: windows11.0-kb5019178-x64.cab
    4/8: windows11.0-kb5022948-x64.cab [SSU]
    5/8: windows11.0-kb5023360-x64.cab [Setup DU]
    6/8: windows11.0-kb5027119-x64.cab [NetFx]
    7/8: windows11.0-kb5027231-x64.cab [LCU]
    8/8: windows11.0-kb5027573-x64.cab [SafeOS DU]

    ============================================================
    Mounting sources\install.wim - index 1/1
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1

    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Checking Updates...
    ============================================================

    ============================================================
    Installing servicing stack update...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1

    Image Version: 10.0.22621.1

    Processing 1 of 1 - Adding package Package_for_ServicingStack_1771~31bf3856ad364e35~amd64~~22621.1771.1.3
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1771 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.22621.1

    Image Version: 10.0.22621.1

    Processing 1 of 1 - Adding package Package_for_KB5012170~31bf3856ad364e35~amd64~~22621.372.1.1
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1

    Image Version: 10.0.22621.1

    Processing 1 of 2 - Adding package Package_for_KB5019178~31bf3856ad364e35~amd64~~22621.1341.1.1
    [==========================100.0%==========================]
    Processing 2 of 2 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9166.2
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1

    Image Version: 10.0.22621.1

    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~22621.1848.1.9
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Adding Defender update...
    ============================================================


    .NET 3.5 feature: already enabled

    ============================================================
    Updating winre.wim ...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1

    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1

    Image Version: 10.0.22621.1

    Processing 1 of 1 - Adding package Package_for_ServicingStack_1771~31bf3856ad364e35~amd64~~22621.1771.1.3
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1771 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.22621.1

    Image Version: 10.0.22621.1

    Processing 1 of 1 - Adding package Package_for_KB5027573~31bf3856ad364e35~amd64~~22621.1844.1.4
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1

    Image Version: 10.0.22621.1844

    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~22621.1848.1.9
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1

    Image Version: 10.0.22621.1848

    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1

    Image Version: 10.0.22621.1848

    [=========== 20.0% ]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1

    Image File : C:\1\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.22621.1

    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Adding updated winre.wim ...
    ============================================================

    1 file(s) copied.

    ============================================================
    Unmounting sources\install.wim - index 1/1
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1

    Image File : C:\11\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.22621.1

    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    boot.wim processed as usual.
    Thank you.
     
  9. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    it's working for winre.wim
    if your install.wim is not 22621.1 base version then it's fine, as I remember LCU manages it itself on refreshed images

    p.s. target seems weird, it's not install.wim but a C:\11 folder
    unless you are updating unpacked ISO
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,310
    450
  11. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    seems like C:\1\ is W10UI folder (winre.wim is extracted here) and C:\11\ is unpacked refreshed ISO

    I think everything is fine because ISO is refreshed
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,310
    450
    How would this work? how does W10UI handle two entirely different paths? It extracts winre.wim to the main dir and not to a subdir, afaik (and see).

    And even refresh ISOs don't have .NET35 pre-enabled.
     
  13. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    W10UI always extracts winre.wim next to the W10UI.cmd script, you can see it in your log
    then it's mounted -> updated -> saved -> exported -> added to all indexes -> deleted
    so W10UI folder is C:\1\, and target is full extracted ISO in C:\11\ folder (I thought it's just install.wim because it was asked about it)

    well it doesn't matter, ISO is not a base one anyway

    also have found this, cleanup isn't needed after LCU on previously serviced media
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,310
    450
    Ah ok, in my situation "c:\1\11\" would be "c:\W10UI\Work\" and the ISO is extracted to Work, now i see it.

    Code:
    [1] Target (x64): "E:\W11UI\22621_Work_x64_NL"
    
    To be exact:D
     
  15. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,310
    450
    The claim was "cleanup doesn't work" then i like to run tests with a clean ISO as on MDL always is/was advised and intended, with previously serviced or whatever process it went thru ISO is not a reliable lab test imho..
     
  16. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    I remember this was already discussed about cleanup on not base builds, but can't find more info
    more specifically I remember that cleanup isn't needed if install.wim was serviced previously, it should depend on build version and/or Net35 option
    I can't read the whole script due to the lack of knowledge, it's pretty complicated
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,310
    450
    Me neither so i run real tests and these are my findings (i tried to create a similar scenario as @armond did but not yet set resetbase to 1):

    Source = 22621.1778.230512-2311.NI_RELEASE_SVC_PROD3_CLIENT_X64FRE_NL-NL.iso (<--- Resetbased)
    Code:
    ======================= W10UI v10.29 ==========================
    [1] Target (x64): "E:\W11UI\22621_Work_x64_NL_Test"
    
    [2] Updates: "E:\W11UI\22621_Updates_x64"
    
    [3] DISM: "Host OS"
    
    [4] Enable .NET 3.5: YES
    
    [5] Cleanup System Image: NO
    
    [7] Update WinRE.wim: YES
    
    [M] Mount Directory: "c:\W10UImount_1725"
    
    [E] Extraction Directory: "c:\W10UItemp_3253"
    
    ============================================================
    Change a menu option, press 0 to start the process, or 9 to exit:
    Code:
    ============================================================
    Running W10UI v10.29
    ============================================================
    
    ============================================================
    Extracting .cab files from .msu files...
    ============================================================
    
    1/1: windows11.0-kb5027231-x64_LCU_1848.1.9.msu [Combined UUP]
    
    ============================================================
    Extracting files from update cabinets (.cab)...
    *** This will require some disk space, please be patient ***
    ============================================================
    
    1/6: defender-dism-x64_steven4554_June_14_2023.cab
    2/6: Windows11.0-KB5012170-x64_PSFX_DBX.cab [SecureBoot]
    3/6: windows11.0-kb5023360-x64_DU_Sources_1341.cab [Setup DU]
    4/6: Windows11.0-KB5026549-x64_inout.cab [SSU]
    5/6: Windows11.0-KB5027119-x64-NDP481_CU_9166.2.cab [NetFx]
    6/6: windows11.0-kb5027573-x64_DU_SafeOS_1844.1.4.cab [SafeOS DU]
    
    ============================================================
    Mounting sources\install.wim - index 1/1
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1778
    
    Processing 1 of 1 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9166.2
    [==========================100.0%==========================]
    The operation completed successfully.
    
    windows11.0-kb5027231-x64_LCU_1848.1.9.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1778
    
    Processing 1 of 1 -
    [===========================80.0%==============            ]
    [==========================100.0%==========================] The operation completed successfully.
    
    ============================================================
    Adding Defender update...
    ============================================================
    
    
    .NET 3.5 feature: already enabled
    
    ============================================================
    Updating winre.wim ...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_KB5027573~31bf3856ad364e35~amd64~~22621.1844.1.4
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1844
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1844
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    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.22000.653
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding updated winre.wim ...
    ============================================================
    
            1 file(s) copied.
    
    ============================================================
    Unmounting sources\install.wim - index 1/1
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image File : E:\W11UI\22621_Work_x64_NL_Test\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.22000.653
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing updates...
    ============================================================
    
    windows11.0-kb5027231-x64_LCU_1848.1.9.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1778
    
    Processing 1 of 1 -
    [===========================80.0%==============            ]
    [==========================100.0%==========================] The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1848
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1848
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image File : E:\W11UI\22621_Work_x64_NL_Test\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.22000.653
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing updates...
    ============================================================
    
    windows11.0-kb5027231-x64_LCU_1848.1.9.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1778
    
    Processing 1 of 1 -
    [===========================80.0%==============            ]
    [==========================100.0%==========================] The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1848
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1848
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image File : E:\W11UI\22621_Work_x64_NL_Test\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.22000.653
    
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding setup dynamic update(s)...
    ============================================================
    
    windows11.0-kb5023360-x64_DU_Sources_1341.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 (941 files in 86 directories)
    
    Computing directory information complete
    
    Image file is 5588516864 bytes (before optimization)
    
    Writing 941 files in 86 directories to 22621.1848.230608-1957.NI_RELEASE_SVC_PROD1_CLIENT_X64FRE_NL-NL.iso
    
    100% complete
    
    Storage optimization saved 25 files, 16814080 bytes (1% of image)
    
    After optimization, image file is 5573826560 bytes
    Space saved because of embedding, sparseness or optimization = 16814080
    
    Done.
    
    ============================================================
       Finished
    ============================================================
    
    
    Press 9 to exit.
    
    Code:
    Name: 22621.1848.230608-1957.NI_RELEASE_SVC_PROD1_CLIENT_X64FRE_NL-NL_No_Cleanup.iso
    Size: 5573826560 bytes (5315 MiB)
    
    Source = 22621.1778.230512-2311.NI_RELEASE_SVC_PROD3_CLIENT_X64FRE_NL-NL.iso (<--- Resetbased)
    Code:
    ======================= W10UI v10.29 ==========================
    [1] Target (x64): "E:\W11UI\22621_Work_x64_NL_Test"
    
    [2] Updates: "E:\W11UI\22621_Updates_x64"
    
    [3] DISM: "Host OS"
    
    [4] Enable .NET 3.5: YES
    
    [5] Cleanup System Image: YES      [6] Reset Image Base: NO
    
    [7] Update WinRE.wim: YES
    
    [M] Mount Directory: "c:\W10UImount_4523"
    
    [E] Extraction Directory: "c:\W10UItemp_10192"
    
    ============================================================
    Change a menu option, press 0 to start the process, or 9 to exit:
    Code:
    ============================================================
    Running W10UI v10.29
    ============================================================
    
    ============================================================
    Extracting .cab files from .msu files...
    ============================================================
    
    1/1: windows11.0-kb5027231-x64_LCU_1848.1.9.msu [Combined UUP]
    
    ============================================================
    Extracting files from update cabinets (.cab)...
    *** This will require some disk space, please be patient ***
    ============================================================
    
    1/6: defender-dism-x64_steven4554_June_14_2023.cab
    2/6: Windows11.0-KB5012170-x64_PSFX_DBX.cab [SecureBoot]
    3/6: windows11.0-kb5023360-x64_DU_Sources_1341.cab [Setup DU]
    4/6: Windows11.0-KB5026549-x64_inout.cab [SSU]
    5/6: Windows11.0-KB5027119-x64-NDP481_CU_9166.2.cab [NetFx]
    6/6: windows11.0-kb5027573-x64_DU_SafeOS_1844.1.4.cab [SafeOS DU]
    
    ============================================================
    Mounting sources\install.wim - index 1/1
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1778
    
    Processing 1 of 1 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9166.2
    [==========================100.0%==========================]
    The operation completed successfully.
    
    windows11.0-kb5027231-x64_LCU_1848.1.9.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1778
    
    Processing 1 of 1 -
    [===========================80.0%==============            ]
    [==========================100.0%==========================] The operation completed successfully.
    
    ============================================================
    Adding Defender update...
    ============================================================
    
    
    .NET 3.5 feature: already enabled
    
    ============================================================
    Updating winre.wim ...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_KB5027573~31bf3856ad364e35~amd64~~22621.1844.1.4
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1844
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1844
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    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.22000.653
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding updated winre.wim ...
    ============================================================
    
            1 file(s) copied.
    
    ============================================================
    Unmounting sources\install.wim - index 1/1
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image File : E:\W11UI\22621_Work_x64_NL_Test\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.22000.653
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing updates...
    ============================================================
    
    windows11.0-kb5027231-x64_LCU_1848.1.9.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1778
    
    Processing 1 of 1 -
    [===========================80.0%==============            ]
    [==========================100.0%==========================] The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1848
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1848
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image File : E:\W11UI\22621_Work_x64_NL_Test\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.22000.653
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing updates...
    ============================================================
    
    windows11.0-kb5027231-x64_LCU_1848.1.9.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1778
    
    Processing 1 of 1 -
    [===========================80.0%==============            ]
    [==========================100.0%==========================] The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1848
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1848
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image File : E:\W11UI\22621_Work_x64_NL_Test\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.22000.653
    
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding setup dynamic update(s)...
    ============================================================
    
    windows11.0-kb5023360-x64_DU_Sources_1341.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 (941 files in 86 directories)
    
    Computing directory information complete
    
    Image file is 5588549632 bytes (before optimization)
    
    Writing 941 files in 86 directories to 22621.1848.230608-1957.NI_RELEASE_SVC_PROD1_CLIENT_X64FRE_NL-NL.iso
    
    100% complete
    
    Storage optimization saved 25 files, 16814080 bytes (1% of image)
    
    After optimization, image file is 5573859328 bytes
    Space saved because of embedding, sparseness or optimization = 16814080
    
    Done.
    
    ============================================================
       Finished
    ============================================================
    
    
    Press 9 to exit.
    
    Code:
    Name: 22621.1848.230608-1957.NI_RELEASE_SVC_PROD1_CLIENT_X64FRE_NL-NL_Cleanup.iso
    Size: 5573859328 bytes (5315 MiB)
    
    Cleanup did not run, ISO size is the same:)
     
  18. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    yeah it should be the same, but the real question is how that results are compares with updated base 22621.1 build
    there might be mismatch in packages count due to not superseded non LCU updates in your 22621.1778 source ISO

    anyway I think the main reason of cleanup on install.wim is to remove old packages on the base builds, and it's simply not needed if any LCU was already integrated in sources ISO
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,310
    450
    Same source as before, now with resetbase enabled:
    Code:
    ======================= W10UI v10.29 ==========================
    [1] Target (x64): "E:\W11UI\22621_Work_x64_NL_Test"
    
    [2] Updates: "E:\W11UI\22621_Updates_x64"
    
    [3] DISM: "Host OS"
    
    [4] Enable .NET 3.5: YES
    
    [5] Cleanup System Image: YES      [6] Reset Image Base: YES
    
    [7] Update WinRE.wim: YES
    
    [M] Mount Directory: "c:\W10UImount_7149"
    
    [E] Extraction Directory: "c:\W10UItemp_20602"
    
    ============================================================
    Change a menu option, press 0 to start the process, or 9 to exit:
    
    Code:
    ============================================================
    Running W10UI v10.29
    ============================================================
    
    ============================================================
    Extracting .cab files from .msu files...
    ============================================================
    
    1/1: windows11.0-kb5027231-x64_LCU_1848.1.9.msu [Combined UUP]
    
    ============================================================
    Extracting files from update cabinets (.cab)...
    *** This will require some disk space, please be patient ***
    ============================================================
    
    1/6: defender-dism-x64_steven4554_June_14_2023.cab
    2/6: Windows11.0-KB5012170-x64_PSFX_DBX.cab [SecureBoot]
    3/6: windows11.0-kb5023360-x64_DU_Sources_1341.cab [Setup DU]
    4/6: Windows11.0-KB5026549-x64_inout.cab [SSU]
    5/6: Windows11.0-KB5027119-x64-NDP481_CU_9166.2.cab [NetFx]
    6/6: windows11.0-kb5027573-x64_DU_SafeOS_1844.1.4.cab [SafeOS DU]
    
    ============================================================
    Mounting sources\install.wim - index 1/1
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1778
    
    Processing 1 of 1 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9166.2
    [==========================100.0%==========================]
    The operation completed successfully.
    
    windows11.0-kb5027231-x64_LCU_1848.1.9.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1778
    
    Processing 1 of 1 -
    [===========================80.0%==============            ]
    [==========================100.0%==========================] The operation completed successfully.
    
    ============================================================
    Adding Defender update...
    ============================================================
    
    
    .NET 3.5 feature: already enabled
    
    ============================================================
    Updating winre.wim ...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_KB5027573~31bf3856ad364e35~amd64~~22621.1844.1.4
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1844
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1844
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    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.22000.653
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding updated winre.wim ...
    ============================================================
    
            1 file(s) copied.
    
    ============================================================
    Unmounting sources\install.wim - index 1/1
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image File : E:\W11UI\22621_Work_x64_NL_Test\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.22000.653
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing updates...
    ============================================================
    
    windows11.0-kb5027231-x64_LCU_1848.1.9.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1778
    
    Processing 1 of 1 -
    [===========================80.0%==============            ]
    [==========================100.0%==========================] The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1848
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1848
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image File : E:\W11UI\22621_Work_x64_NL_Test\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.22000.653
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing updates...
    ============================================================
    
    windows11.0-kb5027231-x64_LCU_1848.1.9.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1778
    
    Processing 1 of 1 -
    [===========================80.0%==============            ]
    [==========================100.0%==========================] The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1848
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.22621.1848
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image File : E:\W11UI\22621_Work_x64_NL_Test\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.22000.653
    
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding setup dynamic update(s)...
    ============================================================
    
    windows11.0-kb5023360-x64_DU_Sources_1341.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 (941 files in 86 directories)
    
    Computing directory information complete
    
    Image file is 5588615168 bytes (before optimization)
    
    Writing 941 files in 86 directories to 22621.1848.230608-1957.NI_RELEASE_SVC_PROD1_CLIENT_X64FRE_NL-NL.iso
    
    100% complete
    
    Storage optimization saved 25 files, 16814080 bytes (1% of image)
    
    After optimization, image file is 5573941248 bytes
    Space saved because of embedding, sparseness or optimization = 16814080
    
    Done.
    
    ============================================================
       Finished
    ============================================================
    
    
    Press 9 to exit.
    
    Code:
    Name: 22621.1848.230608-1957.NI_RELEASE_SVC_PROD1_CLIENT_X64FRE_NL-NL_Resetbased.iso
    Size: 5573941248 bytes (5315 MiB)
    
    Still the same result:)

    I did see cleanups at reboots when WU updated the system but, although i pressed the like button on @abbodi1406 his post you linked at, i have entirely missed the consequences it had for people using previously serviced/refresh ISOs, i always start with a clean never serviced ISO myself.
     
  20. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    can you please test this if you have free time:
    build 22621.1 base ISO (you already have one) -> update it to 22621.1778 without any cleanup, enable Net35 -> update that ISO to the 22621.1848 with cleanup+resetbase and Net35 option

    cleanup should show up in the log I think and all 22621.1 packages should be removed, but idk
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...