abbodi1406's Batch Scripts Repo

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

  1. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,940
    450
    Always show the full progress, the error can be caused before it shows it at lcu integration and so we can see what updates you are trying to upgrade and what build the source iso is.

    Code:
    ============================================================
    Running W10UI v10.58z
    ============================================================
    
    ============================================================
    Configured Options...
    ============================================================
    
    Net35
    Net35Source
    LCUmsuExpand 1
    Cleanup
    ResetBase
    UpdtBootFiles
    WinRE
    
    ============================================================
    Extracting dpx.dll file...
    ============================================================
    
    ============================================================
    Extracting UpdateCompression.dll file...
    ============================================================
    
    ============================================================
    Extracting .cab files from .msu files...
    ============================================================
    
    1/2: windows11.0-kb5043080-x64_CP_LCU_1742.1.10.msu [Combined UUP]
    2/2: windows11.0-kb5072033-x64_LCU_7462.1.16.msu [Combined UUP]
    
    ============================================================
    Extracting files from update containers (cab/wim)...
    *** This will require some disk space, please be patient ***
    ============================================================
    
    1/9: defender-dism-x64_steven4554_Dec_15_2025.cab
    2/9: windows11.0-KB5050575-x64_OOBE_1588.1.0.cab
    3/9: Windows11.0-KB5066131-x64-NDP481_24H2_CU_9320.2.cab [NetFx]
    4/9: windows11.0-kb5068516-x64_DU_Sources_7015.cab [Setup DU]
    5/9: windows11.0-kb5072537-x64_DU_SafeOS_7447.1.2.cab [SafeOS DU]
    6/9: Windows11.0-KB5043113-x64_inout.cab [SSU]
    7/9: Windows11.0-KB5071142-x64_inout.cab [SSU]
    8/9: Windows11.0-KB5043080-x64.wim [LCU]
    9/9: Windows11.0-KB5072033-x64.wim [LCU]
    
    ============================================================
    Mounting sources\install.wim - index 4/11
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.1742
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_7295~31bf3856ad364e35~amd64~~26100.7295.1.2
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_7295 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.1742
    
    Processing 1 of 2 - Adding package Package_for_KB5050575~31bf3856ad364e35~amd64~~26100.1588.1.0
    [==========================100.0%==========================]
    Processing 2 of 2 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9320.2
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.1742
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~26100.1742.1.10
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.1742
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~26100.7462.1.16
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Resetting OS image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.7462
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.7462
    
    [===========================70.0%========                  ]
    The operation completed successfully.
    
    ============================================================
    Adding Defender update...
    ============================================================
    
    Platform  : 4.18.25110.5
    Engine    : 1.1.25110.1
    Signatures: 1.443.138.0
    
    ============================================================
    Adding .NET Framework 3.5 feature...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.7462
    
    Enabling feature(s)
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Reinstalling cumulative update(s)...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.7462
    
    Processing 1 of 3 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9320.2
    [==========================100.0%==========================]
    Processing 2 of 3 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~26100.1742.1.10
    [==========================100.0%==========================]
    Processing 3 of 3 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~26100.7462.1.16
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Updating winre.wim ...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_7295~31bf3856ad364e35~amd64~~26100.7295.1.2
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_7295 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 - Adding package Package_for_SafeOSDU~31bf3856ad364e35~amd64~~26100.7447.1.2
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.7447
    
    [===========================81.7%===============           ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.7447
    
    [===========================70.0%========                  ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image File : E:\W10UI_26100\winre.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding updated winre.wim ...
    ============================================================
    
           1 file(s) copied.
    
    ============================================================
    Unmounting sources\install.wim - index 4/11
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image File : E:\W10UI_26100\26100_Work_US_1742\sources\install.wim
    Image Index : 4
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Rebuilding sources\install.wim ...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.1742
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_7295~31bf3856ad364e35~amd64~~26100.7295.1.2
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_7295 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.1742
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~26100.1742.1.10
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.1742
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~26100.7462.1.16
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.7462
    
    [===========================70.0%========                  ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.7462
    
    [===========================70.0%========                  ]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image File : E:\W10UI_26100\26100_Work_US_1742\sources\boot.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting sources\boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.1742
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_7295~31bf3856ad364e35~amd64~~26100.7295.1.2
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_7295 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.1742
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~26100.1742.1.10
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.1742
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~26100.7462.1.16
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.7462
    
    [===========================70.0%========                  ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image Version: 10.0.26100.7462
    
    [===========================70.0%========                  ]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Image File : E:\W10UI_26100\26100_Work_US_1742\sources\boot.wim
    Image Index : 2
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Rebuilding sources\boot.wim ...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.5720
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding setup dynamic update(s)...
    ============================================================
    
    windows11.0-kb5068516-x64_DU_Sources_7015.cab
    
    ============================================================
    Removing temporary extracted files...
    ============================================================
    
    
    ============================================================
       Finished
    ============================================================
    
    
    Press 9 or q to exit.
    
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,610
    100,025
    340
    LCUwinre has no effect on 26100+

    don't use 26H1 ADK

    yes, 26100 code/servicing/updating is mess
     
  3. VDev

    VDev MDL Member

    Sep 9, 2015
    156
    84
    10
    Been doing that until 25H2 ISO was officially released.

    I didn't know you can paste entire thing. I believe they changed something with ADK Dec 2024 26200.2454. I usually used Host OS Dism.
    That's what I was thinking. 26H1 ADK is for ARM64 because I used their online updater and it installed Dec 2024 on amd64.
    Yeah OS servicing both online and offline is a shipwreck worse than titanic.
    From the looks of it with edge and copilot remove it can't properly traverse or detect subsequent FoD removals and fails to proceed or resolve to next dependent component thereby marking it as corrupt but Restore Health downloads an older version which requires blessing from new wim/psf to replace it. I remember harkaz running into issue when he was making rebase inspired from win 8.x.
    When tooling or compilers made and optimized for Win 11 are broken there's nothing a application developer can do other than file bug reports
     
  4. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,610
    100,025
    340
  5. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,610
    100,025
    340
  6. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,610
    100,025
    340
  7. westlake

    westlake MDL Novice

    Mar 29, 2013
    15
    4
    0
    #4067 westlake, Jan 25, 2026
    Last edited: Jan 25, 2026
    26200.7634

    ...
    === Updating install.wim / 2 image{s} . . .

    1/7: Windows11.0-KB5043080-x64.msu [Combined UUP]
    Not Supported: Windows11.0-KB5078167-x64.msu [HotPatchUpdate]
    ....

    26200.7628 (KB5078127) working fine. True, it's not Hotpatch.
     
  8. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,940
    450
    :good3:

    Hotpatch only works on server and enterprise (on the latter it needs to be enabled, iirc).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. westlake

    westlake MDL Novice

    Mar 29, 2013
    15
    4
    0
  10. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,940
    450
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. TK50P

    TK50P MDL Member

    May 29, 2023
    191
    95
    10
    Is there ESU Bypass for Windows Vista/Server 2008 (NT 6.0) and Windows 8/Server 2012 (NT 6.2)?
    I hope if I can experiment it.
     
  12. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,940
    450
    Bypass ESU Blue
    This?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream
    Staff Member

    Dec 21, 2012
    8,076
    10,298
    270
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. TS2008

    TS2008 MDL Junior Member

    Mar 24, 2015
    95
    99
    0
    Yes, that’s correct so far, but the way it’s written in the list makes it look as if you could use it to build an ISO. That’s not the case. Wouldn’t it make more sense to show the updates simply as updates rather than as feature updates?

    "Security Update for Windows 11 (Hotpatch capable) (26200.7634)"

    That would make it clearer and therefore no ability for creating an ISO with the converter script.
     
  15. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,940
    450
    #4075 Enthousiast, Jan 25, 2026
    Last edited: Jan 25, 2026
    To determine that automated is not that easy to realize, the devs already are informed about the confusion.

    And mainly it is a server update but the build is 26100.7634 instead of 26100.3223x or so, probably because it also is applicable to ent/edu.

    i always check against catalog (i always get the non IP updates from catalog) and if it is not on there it is not a usable update for the average user, i dunno either.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. TS2008

    TS2008 MDL Junior Member

    Mar 24, 2015
    95
    99
    0
    That’s also the confusion Microsoft is causing. KB5078167 is only for the following client editions:

    EnterpriseEvalEdition, EnterpriseSEdition, EnterpriseSNEdition, ProfessionalEdition, and ProfessionalNEdition.

    Server is not supported by this update.
     
  17. Burdus77

    Burdus77 MDL Junior Member

    Jul 29, 2011
    94
    52
    0
    @abbodi1406
    I was having issues applying the latest Defender-dism-x86 package with W10UI. The x64 package always worked okay, but the x86 CAB file wasn't even being picked up in the update scan.
    I changed all entries of: *defender-dism*%_bit%*.cab to just: *defender-dism*.cab and now it gets applied to both x64 and x86 versions.
    Not sure if it's an error in the batch file or something that just affected me.
     
  18. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,610
    100,025
    340
    #4078 abbodi1406, Feb 2, 2026
    Last edited: Feb 5, 2026
    (OP)
    How it would work for x64, but not x86? same scenario / conditions? :g:

    anyway, can you test this? i added a precaution double detection for %_bit%
    http://put.nu/files/dF0i7xe.zip
     
  19. Burdus77

    Burdus77 MDL Junior Member

    Jul 29, 2011
    94
    52
    0
    That worked. Thanks!

    Capture-06.png
     
  20. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,610
    100,025
    340
    W10UI v10.59

    - Add build 14393 as supported for ESU Suppressor
    - Add detection for 26300 Enablement Package
    - Enhance detection for defender-dism file architecture