abbodi1406's Batch Scripts Repo

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

  1. MarvelX7

    MarvelX7 MDL Member

    Jun 1, 2021
    234
    228
    10
    I'm using CDIMAGE.exe can u provide latest version ? Thanks
     
  2. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,766
    7,698
    210
    OSCDIMG is part of deployment tools (Windows ADK), freely available. CDIMAGE is an internal MS tools and not usually available. To my knowledge, both are the same feature-wise, just the identifier strings shown and inserted into the ISO are different.
    You can just take the OSCDIMG.EXE 2.56 from the latest ADK and rename it to CDIMAGE.EXE.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,197
    90,711
    340
    No need to rename it, W10UI can detect both
     
  4. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,849
    2,099
    60
    #2364 KleineZiege, Apr 14, 2023
    Last edited: Apr 14, 2023
    @MarvelX7
    do it differently.
    copy the original LTSC 17763.1 MSDN iso
    to the desktop in a folder without spaces.
    Then mount the iso via the internal program from Microsoft
    [ Deploy ] or use UltraISO.

    after that open the W10UI_10.25 : from c:\W10UI_10.25
    [​IMG]

    now try again
    Code:
    Running W10UI v10.25
    ============================================================
    
    ============================================================
    Copying DVD Drive contents to work directory...
    ============================================================
    
    ============================================================
    Extracting files from update cabinets (.cab)...
    *** This will require some disk space, please be patient ***
    ============================================================
    
    1/11: defender-dism-x64_14.04.2023_1.387.978.0.cab
    2/11: Windows10.0-KB4486153-x64_Netframework.4.8_10.0.1.3106.cab [NetFx]
    3/11: Windows10.0-KB4486159-x64_Deutsches.Sprachpacket.Net.3.5.4.8_10.0.1.2752.cab [NetFx]
    4/11: Windows10.0-KB4589208-v2-x64_PSFX_Intel.Microcode_10.0.2.4.cab
    5/11: Windows10.0-KB5005545-x64_DU_Sources_2111.cab [Setup DU]
    6/11: Windows10.0-KB5012170-x64_Security.DBX.Update.PSFX.cab [SecureBoot]
    7/11: Windows10.0-KB5019181-x64_PSFX_Intel_Memory_Mapped_IO_Security_Update_4012.1.1.cab
    8/11: Windows10.0-KB5021042-x64_DU_forSafeOS_3646.1.0.cab [SafeOS DU]
    9/11: Windows10.0-KB5022504-x64-NDP48_4614.5.cab [NetFx]
    10/11: Windows10.0-KB5023789-x64_SSU_17763.4121.cab [SSU]
    11/11: Windows10.0-KB5025229-x64_Kumulatives_17763.4252.cab [LCU]
    
    ============================================================
    Mounting sources\install.wim - index 1/2
    ============================================================
    
    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.17763.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_4121~31bf3856ad364e35~amd64~~17763.4121.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - Adding package Package_for_KB5012170~31bf3856ad364e35~amd64~~17763.3280.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 5 - Adding package Package_for_KB4486153~31bf3856ad364e35~amd64~~10.0.1.3106
    [==========================100.0%==========================]
    Processing 2 of 5 - Adding package Package_for_KB4486159~31bf3856ad364e35~amd64~~10.0.1.2752
    [==========================100.0%==========================]
    Processing 3 of 5 - Adding package Package_for_KB4589208~31bf3856ad364e35~amd64~~10.0.2.4
    [==========================100.0%==========================]
    Processing 4 of 5 - Adding package Package_for_KB5019181~31bf3856ad364e35~amd64~~17763.4012.1.1
    [==========================100.0%==========================]
    Processing 5 of 5 - Adding package Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.4614.5
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~17763.4252.1.13
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding Defender update...
    ============================================================
    
    
    ============================================================
    Adding .NET Framework 3.5 feature...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.17763.4252
    
    Enabling feature(s)
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Reinstalling cumulative update(s)...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.17763.4252
    
    Processing 1 of 2 - Adding package Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.4614.5
    [==========================100.0%==========================]
    Processing 2 of 2 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~17763.4252.1.13
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    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.17763.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_4121~31bf3856ad364e35~amd64~~17763.4121.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - Adding package Package_for_KB5021042~31bf3856ad364e35~amd64~~17763.3646.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~17763.4252.1.13
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.17763.4252
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.17763.4252
    
    [=============              23.8%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image File : C:\W10UI_10.25\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 Datei(en) kopiert.
    
    ============================================================
    Unmounting sources\install.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image File : C:\W10UI_10.25\DVD10UI\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.
    
    ============================================================
    Mounting sources\boot.wim - index 1/2
    ============================================================
    
    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.17763.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_4121~31bf3856ad364e35~amd64~~17763.4121.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 2 - Adding package Package_for_KB4589208~31bf3856ad364e35~amd64~~10.0.2.4
    [==========================100.0%==========================]
    Processing 2 of 2 - Adding package Package_for_KB5019181~31bf3856ad364e35~amd64~~17763.4012.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~17763.4252.1.13
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.17763.4252
    
    [=====                      9.3%                           ]
    [===========================88.6%===================       ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.17763.4252
    
    [=============              23.4%                          ]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image File : C:\W10UI_10.25\DVD10UI\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.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.17763.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_4121~31bf3856ad364e35~amd64~~17763.4121.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 2 - Adding package Package_for_KB4589208~31bf3856ad364e35~amd64~~10.0.2.4
    [==========================100.0%==========================]
    Processing 2 of 2 - Adding package Package_for_KB5019181~31bf3856ad364e35~amd64~~17763.4012.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~17763.4252.1.13
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.17763.4252
    
    [=====                      9.3%                           ]
    [===========================88.5%===================       ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.17763.4252
    
    [=============              23.4%                          ]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image File : C:\W10UI_10.25\DVD10UI\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.22621.1
    
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding setup dynamic update(s)...
    ============================================================
    
    Windows10.0-KB5005545-x64_DU_Sources_2111.cab
    
    ============================================================
    Removing temporary extracted files...
    ============================================================
    
    
    ============================================================
    Creating updated ISO file...
    ============================================================
    
    ISO Location:
    "C:\W10UI_10.25"
    
    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 14 directories)
    Scanning source tree complete (942 files in 86 directories)
    
    Computing directory information complete
    
    Image file is 5966004224 bytes (before optimization)
    
    Writing 942 files in 86 directories to 17763.4252.230331-0040.RS5_RELEASE_SVC_PROD1_CLIENT_X64FRE_DE-DE.iso
    
    100% complete
    
    Storage optimization saved 24 files, 14198784 bytes (1% of image)
    
    After optimization, image file is 5953933312 bytes
    Space saved because of embedding, sparseness or optimization = 14198784
    
    Done.
    
    ============================================================
       Finished
    here you can download the updates of the LTSC 2019
    https://forums.mydigitallife.net/th...-17763-xxx-pc-rs5.77945/page-216#post-1490183

    https://uupdump.net/known.php?q=17763
     
  5. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,197
    90,711
    340
  6. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    #2366 Paul Mercer, Apr 15, 2023
    Last edited: Apr 15, 2023
    Code:
    ============================================================
    Running W10UI v10.25
    ============================================================
    
    ============================================================
    Copying DVD Drive contents to work directory...
    ============================================================
    
    ============================================================
    Extracting .cab files from .msu files...
    ============================================================
    
    1/1: windows11.0-kb5026292-x64_LCU_1010.1.0.msu [Combined UUP]
    
    ============================================================
    Extracting files from update cabinets (.cab)...
    *** This will require some disk space, please be patient ***
    ============================================================
    
    1/6: defender-dism-x64_12.04.2023.cab
    2/6: windows10.0-kb5026293-x64_General_1010.1.0.cab
    3/6: windows10.0-kb5026294-x64_DU.SafeOS_1010.1.0.cab [SafeOS DU]
    4/6: windows10.0-kb5026295-x64_DU.Sources_1010.cab [Setup DU]
    5/6: Windows10.0-KB5026296-x64_inout.cab [SSU]
    6/6: windows11.0-kb5025188-x64-ndp481_CU_9151.4.cab [NetFx]
    
    ============================================================
    Mounting sources\install.wim - index 1/2
    ============================================================
    
    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.25336.1000
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_1010~31bf3856ad364e35~amd64~~25336.1010.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1010 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.25336.1000
    
    Processing 1 of 2 - Adding package Package_for_KB5026293~31bf3856ad364e35~amd64~~25336.1010.1.0
    [==========================100.0%==========================]
    Processing 2 of 2 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9151.4
    [==========================100.0%==========================]
    The operation completed successfully.
    
    windows11.0-kb5026292-x64_LCU_1010.1.0.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.25336.1000
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==============             25.0%                          ] The operation completed successfully.
    
    ============================================================
    Resetting OS image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.25336.1010
    
    [=====                      10.0%                          ]
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.25336.1010
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding Defender update...
    ============================================================
    
    
    ============================================================
    Adding .NET Framework 3.5 feature...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.25336.1010
    
    Enabling feature(s)
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Reinstalling cumulative update(s)...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.25336.1010
    
    Processing 1 of 1 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9151.4
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.25336.1010
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==============             25.0%                          ] The operation completed successfully.
    
    ============================================================
    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.25336.1000
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_1010~31bf3856ad364e35~amd64~~25336.1010.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1010 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.25336.1000
    
    Processing 1 of 1 - Adding package Package_for_KB5026294~31bf3856ad364e35~amd64~~25336.1010.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    windows11.0-kb5026292-x64_LCU_1010.1.0.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.25336.1000
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==============             25.0%                          ] The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.25336.1010
    
    [=============              24.0%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.25336.1010
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image File : F:\W10UI_10.25\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.
    
    ============================================================
    Unmounting sources\install.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image File : F:\W10UI_10.25\DVD10UI\sources\install.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting sources\install.wim - index 2/2
    ============================================================
    
    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.25336.1000
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_1010~31bf3856ad364e35~amd64~~25336.1010.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1010 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.25336.1000
    
    Processing 1 of 2 - Adding package Package_for_KB5026293~31bf3856ad364e35~amd64~~25336.1010.1.0
    [==========================100.0%==========================]
    Processing 2 of 2 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9151.4
    [==========================100.0%==========================]
    The operation completed successfully.
    
    windows11.0-kb5026292-x64_LCU_1010.1.0.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.25336.1000
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==============             25.0%                          ] The operation completed successfully.
    
    ============================================================
    Resetting OS image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.25336.1010
    
    [=====                      10.0%                          ]
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.25336.1010
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding Defender update...
    ============================================================
    
    
    ============================================================
    Adding .NET Framework 3.5 feature...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.25336.1010
    
    Enabling feature(s)
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Reinstalling cumulative update(s)...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.25336.1010
    
    Processing 1 of 1 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9151.4
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.25336.1010
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==============             25.0%                          ] The operation completed successfully.
    
    ============================================================
    Adding updated winre.wim ...
    ============================================================
    
    Скопировано файлов:         1.
    
    ============================================================
    Unmounting sources\install.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image File : F:\W10UI_10.25\DVD10UI\sources\install.wim
    Image Index : 2
    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%==========================]
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting sources\boot.wim - index 1/2
    ============================================================
    
    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.25336.1000
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_1010~31bf3856ad364e35~amd64~~25336.1010.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1010 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.25336.1000
    
    Processing 1 of 1 - Adding package Package_for_KB5026293~31bf3856ad364e35~amd64~~25336.1010.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    windows11.0-kb5026292-x64_LCU_1010.1.0.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.25336.1000
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==============             25.0%                          ] The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.25336.1010
    
    [=============              24.0%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.25336.1010
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image File : F:\W10UI_10.25\DVD10UI\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.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.25336.1000
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_1010~31bf3856ad364e35~amd64~~25336.1010.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1010 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.25336.1000
    
    Processing 1 of 1 - Adding package Package_for_KB5026293~31bf3856ad364e35~amd64~~25336.1010.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    windows11.0-kb5026292-x64_LCU_1010.1.0.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.25336.1000
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==============             25.0%                          ] The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.25336.1010
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.25336.1010
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image File : F:\W10UI_10.25\DVD10UI\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.22621.1
    
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding setup dynamic update(s)...
    ============================================================
    
    windows10.0-kb5026295-x64_DU.Sources_1010.cab
    
    ============================================================
    Removing temporary extracted files...
    ============================================================
    
    
    ============================================================
    Creating updated ISO file...
    ============================================================
    
    ISO Location:
    "F:\W10UI_10.25"
    
    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 (949 files in 85 directories)
    
    Computing directory information complete
    
    Image file is 4803788800 bytes (before optimization)
    
    Writing 949 files in 85 directories to 25336.1010.230405-0738.RS_PRERELEASE_FLT_CLIENT_X64FRE_EN-US.iso
    
    100% complete
    
    Storage optimization saved 24 files, 14200832 bytes (1% of image)
    
    After optimization, image file is 4791742464 bytes
    Space saved because of embedding, sparseness or optimization = 14200832
    
    Done.
    
    ============================================================
       Finished
    ============================================================
    
    
    Press 9 to exit.

    everything is working as expected with x64 build, thank you

    the branding version is still v10.25
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,197
    90,711
    340
    Which choice is the best?

    - use a schedule task for that, but i don't know if it will be reliable, depending on the logged account, UAC, if Task Scheduler is not disabled... etc

    - add prompt for W10UI when pending cleanup registry values are detected, asking the user if he want to run it or cancel

    - create a simple self-deleted batch script on the desktop to remind the user and run cleanup manually after restart (similar to W7 RunOnce_W10_Telemetry_Tasks.cmd)
     
  8. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    the first option is too unreliable
    the other ones should be fine
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,766
    7,698
    210
    I would opt for 2 and 3.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. armond

    armond MDL Addicted

    Jun 16, 2008
    736
    235
    30
    Option 3 sounds interesting to me. Thank you.
     
  11. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,197
    90,711
    340
  12. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,849
    2,099
    60
    #2372 KleineZiege, Apr 19, 2023
    Last edited: Apr 19, 2023
    Big THX
    if i ever have my own island, i will crown you king :)
    have a good night

    your knowledge is powerful

    i am glad that i can access your knowledge
    currently this is so much fun, you learn a lot
     
  13. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,849
    2,099
    60
    hatte immer gedacht bist kein powershell scripter ?
     
  14. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    Works as expected

    Code:
    ============================================================
    Running W10UI v10.26
    ============================================================
    
    ============================================================
    Copying DVD Drive contents to work directory...
    ============================================================
    
    ============================================================
    Extracting files from update cabinets (.cab)...
    *** This will require some disk space, please be patient ***
    ============================================================
    
    1/7: defender-dism-x64_12.04.2023.cab
    2/7: windows11.0-kb5012170-x64_DBX_372.1.1.cab [SecureBoot]
    3/7: windows11.0-kb5023360-x64_DU.Sources_1341.cab [Setup DU]
    4/7: windows11.0-kb5023527-x64_DU.SafeOS_1340.1.0.cab [SafeOS DU]
    5/7: windows11.0-kb5025182-x64-ndp481_CU_9151.5.cab [NetFx]
    6/7: windows11.0-kb5025239-x64_LCU_1555.1.5.cab [LCU]
    7/7: windows11.0-kb5025749-x64_SSU_1550.1.0.cab [SSU]
    
    ============================================================
    Mounting sources\install.wim - index 1/2
    ============================================================
    
    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_1550~31bf3856ad364e35~amd64~~22621.1550.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1550 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 1 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9151.5
    [==========================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.1555.1.5
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Resetting OS image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.22621.1555
    
    [=====                      10.0%                          ]
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.22621.1555
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding Defender update...
    ============================================================
    
    
    ============================================================
    Adding .NET Framework 3.5 feature...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.22621.1555
    
    Enabling feature(s)
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Reinstalling cumulative update(s)...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.22621.1555
    
    Processing 1 of 2 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9151.5
    [==========================100.0%==========================]
    Processing 2 of 2 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~22621.1555.1.5
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    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_1550~31bf3856ad364e35~amd64~~22621.1550.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1550 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_KB5023527~31bf3856ad364e35~amd64~~22621.1340.1.0
    [==========================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.1555.1.5
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.22621.1555
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.22621.1555
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image File : F:\W10UI_10.25\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.
    
    ============================================================
    Unmounting sources\install.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image File : F:\W10UI_10.25\DVD10UI\sources\install.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting sources\install.wim - index 2/2
    ============================================================
    
    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_1550~31bf3856ad364e35~amd64~~22621.1550.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1550 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 1 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9151.5
    [==========================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.1555.1.5
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Resetting OS image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.22621.1555
    
    [=====                      10.0%                          ]
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.22621.1555
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding Defender update...
    ============================================================
    
    
    ============================================================
    Adding .NET Framework 3.5 feature...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.22621.1555
    
    Enabling feature(s)
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Reinstalling cumulative update(s)...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.22621.1555
    
    Processing 1 of 2 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9151.5
    [==========================100.0%==========================]
    Processing 2 of 2 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~22621.1555.1.5
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding updated winre.wim ...
    ============================================================
    
    Скопировано файлов:         1.
    
    ============================================================
    Unmounting sources\install.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image File : F:\W10UI_10.25\DVD10UI\sources\install.wim
    Image Index : 2
    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%==========================]
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting sources\boot.wim - index 1/2
    ============================================================
    
    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_1550~31bf3856ad364e35~amd64~~22621.1550.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1550 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_RollupFix~31bf3856ad364e35~amd64~~22621.1555.1.5
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.22621.1555
    
    [===================        33.3%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.22621.1555
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image File : F:\W10UI_10.25\DVD10UI\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.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_1550~31bf3856ad364e35~amd64~~22621.1550.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1550 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_RollupFix~31bf3856ad364e35~amd64~~22621.1555.1.5
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.22621.1555
    
    [===================        33.3%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.22621.1555
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image File : F:\W10UI_10.25\DVD10UI\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.22621.1
    
    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:
    "F:\W10UI_10.25"
    
    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 (943 files in 86 directories)
    
    Computing directory information complete
    
    Image file is 5479759872 bytes (before optimization)
    
    Writing 943 files in 86 directories to 22621.1555.230329-0111.NI_RELEASE_SVC_PROD1_CLIENT_X64FRE_EN-US.iso
    
    100% complete
    
    Storage optimization saved 24 files, 14239744 bytes (1% of image)
    
    After optimization, image file is 5467670528 bytes
    Space saved because of embedding, sparseness or optimization = 14239744
    
    Done.
    
    ============================================================
       Finished
    ============================================================
    
    
    Press 9 to exit.

    Is the external PSFExtractor v3.07 still supported? If it is, what are the performance benchmarks for PWSH code vs PSFExtractor v3.07?
    If it's about the same I'll stick with PWSH variant, I think
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. armond

    armond MDL Addicted

    Jun 16, 2008
    736
    235
    30
    Great job. If this goes well maybe you could update the PSFX Repac script as well?
     
  16. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,197
    90,711
    340
    Thanks

    yes, external PSFExtractor.exe is still supported and take precedence if detected

    PSFExtractor v3.07 would be faster for big/many files (e.g. Win10 baseless LCU = full, forward, reverse delta files)
    but for Win11 LCU (forward delta files), i don't think the performance difference will be much

    besides, Win11 LCU MSU should be used whenever possible
     
  17. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,197
    90,711
    340
    What need to be updated exactly?
     
  18. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,197
    90,711
    340
    W10UI v10.26

    - Added support for new msu wim files "LCU for builds 25336+" (credits to May for Powershell code)

    - Replaced embedded PSFExtractor.exe with Powershell code (external PSFExtractor.exe is still supported)

    - Enhanced "Cleanup System Image" pending restart behavior for current online OS:

    RunOnce_AfterRestart_DismCleanup.cmd script will be created on the desktop

    if the script is not executed, W10UI.cmd will prompt once to run or skip the cleanup


    thanks to everyone for testing
     
  19. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,197
    90,711
    340
    I'm not, but it's not hard to compare/try/adjust the code

    Powrshell code is 90% similar to C# code
    PSFExtractor.cs
    Code:
    using System;
    using System.Collections;
    using System.IO;
    using System.Diagnostics;
    using System.Runtime.InteropServices;
    using System.Xml;
    
    namespace PSFExtractor
    {
        class DeltaList
        {
            public static ArrayList List;
        }
    
        class DeltaFile
        {
            public string FileName;
            public long time;
            public string sourceType;
            public long sourceOffset;
            public int sourceLength;
    
            public DeltaFile(string FileName, long time, string sourceType, long sourceOffset, int sourceLength)
            {
                this.FileName = FileName;
                this.time = time;
                this.sourceType = sourceType;
                this.sourceOffset = sourceOffset;
                this.sourceLength = sourceLength;
            }
        }
    
        class GenerateFileList
        {
            public static void Generate(string PSFFileName, string DirectoryName)
            {
                XmlDocument doc = new XmlDocument();
                doc.Load(DirectoryName + @"\express.psf.cix.xml");
                XmlNode child = doc.FirstChild.NextSibling.FirstChild;
                while (!child.LocalName.Equals("Files"))
                {
                    child = child.NextSibling;
                }
                XmlNodeList FileList = child.ChildNodes;
                foreach(XmlNode file in FileList)
                {
                    XmlElement fileElement = (XmlElement)file;
                    string name = fileElement.GetAttribute("name");
                    long time = long.Parse(fileElement.GetAttribute("time"));
                    XmlNode fileChild = file.FirstChild;
                    while (!fileChild.LocalName.Equals("Delta"))
                    {
                        fileChild = fileChild.NextSibling;
                    }
                    XmlNode deltaChild = fileChild.FirstChild;
                    while (!deltaChild.LocalName.Equals("Source"))
                    {
                        deltaChild = deltaChild.NextSibling;
                    }
                    XmlElement sourceElement = (XmlElement)deltaChild;
                    string sourceType = sourceElement.GetAttribute("type");
                    long sourceOffset = long.Parse(sourceElement.GetAttribute("offset"));
                    int sourceLength = int.Parse(sourceElement.GetAttribute("length"));
                    DeltaList.List.Add(new DeltaFile(name, time, sourceType, sourceOffset, sourceLength));
                }
            }
        }
    
        internal static class NativeMethods
        {
            [DllImport("msdelta.dll", SetLastError = true)]
            [return: MarshalAsAttribute(UnmanagedType.Bool)]
            internal static extern bool ApplyDeltaW(long ApplyFlags, [MarshalAs(UnmanagedType.LPWStr)] string lpSourceName, [MarshalAs(UnmanagedType.LPWStr)] string lpDeltaName, [MarshalAs(UnmanagedType.LPWStr)] string lpTargetName);
    
        }
    
        class SplitOutput
        {
            public static void WriteOutput(string PSFFile, string DirectoryName)
            {
                FileStream PSFFileStream = File.OpenRead(Path.GetFullPath(PSFFile));
    
                // string currentDir = Path.GetDirectoryName(Path.GetFullPath(PSFFile)) + Path.DirectorySeparatorChar + DirectoryName;
                string currentDir = Path.GetFullPath(DirectoryName);
                Environment.CurrentDirectory = currentDir;
    
                if (!Directory.Exists("000"))
                    Directory.CreateDirectory("000");
    
                foreach(DeltaFile file in DeltaList.List)
                {
                    string FullFileName = file.FileName;
                    if (File.Exists(FullFileName))
                        continue;
    
                    string ShortFold = Path.GetDirectoryName(FullFileName);
                    string ShortFile = Path.GetFileName(FullFileName);
                    string FullLen = currentDir + Path.DirectorySeparatorChar + FullFileName;
                    string FoldLen = currentDir + Path.DirectorySeparatorChar + ShortFold;
    
                    int UseRobo = 0;
                    if (FullLen.Length > 255 || FoldLen.Length > 248)
                        UseRobo = 1;
    
                    if (UseRobo == 0 && ShortFold.IndexOf("_", StringComparison.Ordinal) != -1)
                    {
                        try
                        {
                            Directory.CreateDirectory(ShortFold);
                        }
                        catch (Exception)
                        {
                            Console.WriteLine("Writing: " + FullFileName);
                            Console.WriteLine("Error: failed to create directory.\n");
                        }
                    }
    
                    string WhereFile = ((UseRobo != 0) ? ("000\\" + ShortFile) : FullFileName);
    
                    try
                    {
                        PSFFileStream.Seek(file.sourceOffset, SeekOrigin.Begin);
                    }
                    catch
                    {
                        Console.WriteLine("Writing: " + FullFileName);
                        Console.WriteLine("Error: PSFFileStream.Seek failed.\n");
                    }
    
                    byte[] Buffer = new byte[file.sourceLength];
                    try
                    {
                        PSFFileStream.Read(Buffer, 0, file.sourceLength);
                    }
                    catch
                    {
                        Console.WriteLine("Writing: " + FullFileName);
                        Console.WriteLine("Error: PSFFileStream.Read failed.\n");
                    }
    
                    FileStream OutputFileStream = File.Create(WhereFile);
                    try
                    {
                        OutputFileStream.Write(Buffer, 0, file.sourceLength);
                    }
                    catch
                    {
                        Console.WriteLine("Writing: " + FullFileName);
                        Console.WriteLine("Error: OutputFileStream.Write failed.\n");
                    }
                    OutputFileStream.Close();
    
                    if (file.sourceType.Equals("PA30", StringComparison.OrdinalIgnoreCase))
                        NativeMethods.ApplyDeltaW(0, null, WhereFile, WhereFile);
    
                    File.SetLastWriteTimeUtc(WhereFile, System.DateTime.FromFileTimeUtc(file.time));
    
                    if (UseRobo == 1)
                    {
                        using (Process process = new Process())
                        {
                            process.StartInfo.UseShellExecute = false;
                            process.StartInfo.CreateNoWindow = true;
                            process.StartInfo.WorkingDirectory = Directory.GetParent(currentDir).FullName;
                            process.StartInfo.FileName = "robocopy.exe";
                            process.StartInfo.Arguments = "\"" + DirectoryName + "\\000" + "\" \"" + DirectoryName + "\\" + ShortFold + "\" " + ShortFile + " /MOV /R:1 /W:1 /NFL /NDL /NP /NJH /NJS";
                            process.Start();
                            process.WaitForExit();
                        }
                    }
                }
    
                PSFFileStream.Close();
    
                if (Directory.Exists("000"))
                    Directory.Delete("000", true);
    
            }
        }
    
        public class Program
        {
            public static int Main(string[] args)
            {
                if (args.Length < 1)
                    return 1;
    
                string CABFileName = args[0];
                if (!File.Exists(CABFileName))
                    return 1;
    
                string DirectoryName = CABFileName.Substring(0, CABFileName.LastIndexOf('.'));
                string PSFFileName = DirectoryName + ".psf";
                if (!File.Exists(PSFFileName))
                    return 1;
    
                if (!Directory.Exists(DirectoryName))
                    Directory.CreateDirectory(DirectoryName);
    
                DeltaList.List = new ArrayList();
                try
                {
                    GenerateFileList.Generate(PSFFileName, DirectoryName);
                }
                catch (FileNotFoundException)
                {
                    Console.WriteLine("Error: invalid CAB file.");
                    return 1;
                }
                try
                {
                    SplitOutput.WriteOutput(PSFFileName, DirectoryName);
                }
                catch (Exception)
                {
                    Console.WriteLine("Error: failed to write output.");
                    return 1;
                }
                return 0;
            }
        }
    }
    
    PSFExtractor.ps1
    Code:
    function GenerateFileList($DirectoryName) {
    $DeltaList = [ordered] @{};
    $doc = New-Object xml;
    $doc.Load($DirectoryName + "\express.psf.cix.xml");
    $child = $doc.FirstChild.NextSibling.FirstChild;
    while (!$child.LocalName.Equals("Files"))
    {
        $child = $child.NextSibling;
    }
    $FileList = $child.ChildNodes;
    ForEach($file in $FileList)
    {
        $id = $file.GetAttribute("id");
        $name = $file.GetAttribute("name");
        $time = $file.GetAttribute("time");
        $fileChild = $file.FirstChild;
        while (!$fileChild.LocalName.Equals("Delta"))
        {
            $fileChild = $fileChild.NextSibling;
        }
        $deltaChild = $fileChild.FirstChild;
        while (!$deltaChild.LocalName.Equals("Source"))
        {
            $deltaChild = $deltaChild.NextSibling;
        }
        $sType = $deltaChild.GetAttribute("type");
        $sOffset = $deltaChild.GetAttribute("offset");
        $sLength = $deltaChild.GetAttribute("length");
        $DeltaList[$id] = @{name=$name; time=$time; stype=$sType; offset=$sOffset; length=$sLength};
    }
    return $DeltaList
    }
    
    function PSFExtractor($CabFile) {
    $DirectoryName = $CabFile.Substring(0, $CabFile.LastIndexOf('.'));
    $PSFFile = $DirectoryName + ".psf";
    $null = [IO.Directory]::CreateDirectory($DirectoryName);
    $DeltaList = GenerateFileList  $DirectoryName
    
    $AssemblyBuilder = [AppDomain]::CurrentDomain.DefineDynamicAssembly(4, 1)
    $ModuleBuilder = $AssemblyBuilder.DefineDynamicModule(2, $False)
    $TypeBuilder = $ModuleBuilder.DefineType(0)
    [void]$TypeBuilder.DefinePInvokeMethod('ApplyDeltaW', 'msdelta.dll', 'Public, Static', 1, [int], @([Int64], [String], [String], [String]), 1, 3)
    $MSD = $TypeBuilder.CreateType()
    
    $PSFFileStream = [IO.File]::OpenRead([IO.Path]::GetFullPath($PSFFile));
    
    $cwd = [IO.Path]::GetFullPath($DirectoryName);
    [Environment]::CurrentDirectory = $cwd;
    
    $null = [IO.Directory]::CreateDirectory("000");
    
    ForEach ($DeltaFile in $DeltaList.Values)
    {
        $FullFileName = $DeltaFile.name;
        If (Test-Path $FullFileName) {continue};
    
        $ShortFold = [IO.Path]::GetDirectoryName($FullFileName);
        $ShortFile = [IO.Path]::GetFileName($FullFileName);
    
        [bool]$UseRobo = (($cwd + '\' + $FullFileName).Length -gt 255) -or (($cwd + '\' + $ShortFold).Length -gt 248);
    
        If ($UseRobo -eq 0 -and $ShortFold.IndexOf("_") -ne -1)
        {
            $null = [IO.Directory]::CreateDirectory($ShortFold);
        }
    
        If ($UseRobo -eq 0) {$WhereFile = $FullFileName;}
        Else {$WhereFile = "000\" + $ShortFile;}
    
        try {[void]$PSFFileStream.Seek($DeltaFile.offset, 0);} catch {}
    
        $Buffer = New-Object byte[] $DeltaFile.length;
        try {[void]$PSFFileStream.Read($Buffer, 0, $DeltaFile.length);} catch {}
    
        $OutputFileStream = [IO.File]::Create($WhereFile);
        try {[void]$OutputFileStream.Write($Buffer, 0, $DeltaFile.length);} catch {}
        [void]$OutputFileStream.Close();
    
        If ($DeltaFile.stype -eq "PA30")
        {
            [void]$MSD::ApplyDeltaW(0, $null, $WhereFile, $WhereFile);
        }
    
        $null = [IO.File]::SetLastWriteTimeUtc($WhereFile, [DateTime]::FromFileTimeUtc($DeltaFile.time));
    
        If ($UseRobo -eq 0) {continue};
        Start-Process robocopy.exe -NoNewWindow -Wait -ArgumentList ('"' + $cwd + '\000' + '"' + ' ' + '"' + $cwd + '\' + $ShortFold + '"' + ' ' + $ShortFile + ' /MOV /R:1 /W:1 /NS /NC /NFL /NDL /NP /NJH /NJS')
    }
    
    [void]$PSFFileStream.Close();
    
    $null = [IO.Directory]::Delete("000", $true);
    }
    
    i removed cab extraction code in both for easiness, you must extract cab file manually first