abbodi1406's Batch Scripts Repo

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

  1. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    50,033
    105,249
    450
    Que?
     
  2. LittlePro

    LittlePro MDL Senior Member

    Jan 19, 2017
    389
    138
    10
    #3022 LittlePro, Jul 24, 2024
    Last edited: Jul 24, 2024
    @abbodi1406 : The link above is not working. I want to download the Non-Enterprise Offline Version(s).

    Thanks.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Wannabe

    Wannabe MDL Junior Member

    Aug 1, 2007
    72
    58
    0
  4. BetaTesta

    BetaTesta MDL Senior Member

    Aug 6, 2022
    282
    92
    10
    Is this the only reason to use this ECOI script? To install any version for any channel or there's more?
    What's "wrong" with Enterprise MSI installers?
    TIA
     
  5. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,324
    91,565
    340
    - I don't remember
    - Fun
    - OfflineManifest.gup was not documented backthen
     
  6. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,324
    91,565
    340
    uup-converter v107f

    - Fixed detection for "Error: 1726 The remote procedure call failed.", which is mostly a harmless error and can be ignored

    thanks to @Clusterhead for reporting and debugging
     
  7. Clusterhead

    Clusterhead MDL Novice

    Mar 29, 2013
    34
    29
    0
  8. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,950
    4,180
    60
    that is exactly what happened lmao

    Windows11.0-KB5038575-x64.msu
    version="26100.961.1.3"
    revisionCompare="GE", version="10.0.26100.1"

    Windows11.0-KB5038603-x64.msu
    version="26100.1252.1.4"
    revisionCompare="GE", version="10.0.26100.961"

    Windows11.0-KB5040543-x64.msu
    version="26100.1330.1.0"
    revisionCompare="GE", version="10.0.26100.1252"
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,324
    91,565
    340
  10. Clusterhead

    Clusterhead MDL Novice

    Mar 29, 2013
    34
    29
    0
    Works fine now! :) Thank you. :):hug2:
     
  11. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,324
    91,565
    340
    I wonder if KB5040543 reinstallation after cleanup will work with 3 LCUs :rolleyes:

    the thing is, when you install e.g. KB5038603, it will create reverse deltas for KB5038575
    but if you run cleanup and KB5038575 is removed, then when you try to reinstall it it will fail because CBS only check for forward deltas from base .1
    so what's the usefulness of .1252 reverse deltas then? :g:
     
  12. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,950
    4,180
    60
    was trying to test this but got a problem with W10UI, it's not installing the latest SSU

    Code:
    ============================================================
    Running W10UI v10.44
    ============================================================
    
    ============================================================
    Copying DVD Drive contents to work directory...
    ============================================================
    
    ============================================================
    Extracting dpx.dll file...
    ============================================================
    
    ============================================================
    Extracting .cab files from .msu files...
    ============================================================
    
    1/3: Windows11.0-KB5038575-x64.msu [Combined UUP]
    2/3: Windows11.0-KB5038603-x64.msu [Combined UUP]
    3/3: Windows11.0-KB5040543-x64.msu [Combined UUP]
    
    ============================================================
    Extracting files from update cabinets (.cab)...
    *** This will require some disk space, please be patient ***
    ============================================================
    
    1/6: windows11.0-kb5037898-x64.cab [Enablement]
    2/6: Windows11.0-KB5041178-x64.cab [Setup DU]
    3/6: Windows11.0-KB5041979-x64.cab [SafeOS DU]
    4/6: Windows11.0-KB5039320-x64_inout.cab [SSU]
    5/6: Windows11.0-KB5040544-x64_inout.cab [SSU]
    6/6: Windows11.0-KB5040553-x64_inout.cab [SSU]
    
    ============================================================
    Mounting sources\install.wim - index 1/1
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_1251~31bf3856ad364e35~amd64~~26100.1251.1.1
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1251 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.1150
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 - Adding package Package_for_KB5037898~31bf3856ad364e35~amd64~~26100.380.1.2
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Windows11.0-KB5038575-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 -

    gonna repack it first

    p.s. this is because KB number is reversed
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,324
    91,565
    340
    That's because 1330 SSU KB5040544 is lower KB number than 1252 SSU KB5040553

    i will try to finish the version-order code soon
     
  14. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,950
    4,180
    60
    #3034 Paul Mercer, Jul 26, 2024
    Last edited: Jul 26, 2024
    Code:
    ============================================================
    Running W10UI v10.44
    ============================================================
    
    ============================================================
    Copying DVD Drive contents to work directory...
    ============================================================
    
    ============================================================
    Extracting dpx.dll file...
    ============================================================
    
    ============================================================
    Extracting .cab files from .msu files...
    ============================================================
    
    1/3: Windows11.0-KB5038575-x64.msu [Combined UUP]
    2/3: Windows11.0-KB5038603-x64.msu [Combined UUP]
    3/3: Windows11.0-KB5040543-x64.msu [Combined UUP]
    
    ============================================================
    Extracting files from update cabinets (.cab)...
    *** This will require some disk space, please be patient ***
    ============================================================
    
    1/5: windows11.0-kb5037898-x64.cab [Enablement]
    2/5: Windows11.0-KB5041178-x64.cab [Setup DU]
    3/5: Windows11.0-KB5041979-x64.cab [SafeOS DU]
    4/5: Windows11.0-KB5039320-x64_inout.cab [SSU]
    5/5: Windows11.0-KB5040544-x64_inout.cab [SSU]
    
    ============================================================
    Mounting sources\install.wim - index 1/1
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_1330~31bf3856ad364e35~amd64~~26100.1330.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1330 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.1150
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 - Adding package Package_for_KB5037898~31bf3856ad364e35~amd64~~26100.380.1.2
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Windows11.0-KB5038575-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==========================100.0%==========================] The operation completed successfully.
    
    Windows11.0-KB5038603-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26120.961
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==========================100.0%==========================] The operation completed successfully.
    
    Windows11.0-KB5040543-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26120.1252
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==========================100.0%==========================] The operation completed successfully.
    
    ============================================================
    Resetting OS image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26120.1330
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26120.1330
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding .NET Framework 3.5 feature...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26120.1330
    
    Enabling feature(s)
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Reinstalling cumulative update(s)...
    ============================================================
    
    Reinstalling Windows11.0-KB5040543-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26120.1330
    
    Processing 1 of 3 -
    [==========================100.0%==========================]
    [===========================73.0%==========                ] Processing 2 of 3 -
    Processing 3 of 3 -
    The operation completed successfully.
    
    ============================================================
    Updating winre.wim ...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_1330~31bf3856ad364e35~amd64~~26100.1330.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1330 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.1150
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 - Adding package Package_for_SafeOSDU~31bf3856ad364e35~amd64~~26100.1287.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image File : F:\W10UI_10.44\winre.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    "winre.wim" original size: 524824 KiB
    Using LZX compression with 6 threads
    Archiving file data: 1311 MiB of 1311 MiB (100%) done
    "winre.wim" optimized size: 509164 KiB
    Space saved: 15660 KiB
    
    ============================================================
    Adding updated winre.wim ...
    ============================================================
    
    Скопировано файлов:         1.
    
    ============================================================
    Unmounting sources\install.wim - index 1/1
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image File : F:\W10UI_10.44\DVD10UI\sources\install.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Rebuilding sources\install.wim ...
    ============================================================
    
    "sources\install.wim" original size: 5992677 KiB
    Using LZX compression with 8 threads
    Archiving file data: 9 GiB of 9 GiB (100%) done
    "sources\install.wim" optimized size: 4332540 KiB
    Space saved: 1660136 KiB
    
    ============================================================
    Mounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_1330~31bf3856ad364e35~amd64~~26100.1330.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1330 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.1150
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 - Adding package Package_for_KB5037898~31bf3856ad364e35~amd64~~26100.380.1.2
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Windows11.0-KB5038575-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==========================100.0%==========================] The operation completed successfully.
    
    Windows11.0-KB5038603-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.961
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==========================100.0%==========================] The operation completed successfully.
    
    Windows11.0-KB5040543-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1252
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==========================100.0%==========================] The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1330
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1330
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image File : F:\W10UI_10.44\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.26100.1150
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_1330~31bf3856ad364e35~amd64~~26100.1330.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1330 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.1150
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 - Adding package Package_for_KB5037898~31bf3856ad364e35~amd64~~26100.380.1.2
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Windows11.0-KB5038575-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==========================100.0%==========================] The operation completed successfully.
    
    Windows11.0-KB5038603-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.961
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==========================100.0%==========================] The operation completed successfully.
    
    Windows11.0-KB5040543-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1252
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==========================100.0%==========================] The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1330
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1330
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image File : F:\W10UI_10.44\DVD10UI\sources\boot.wim
    Image Index : 2
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Rebuilding sources\boot.wim ...
    ============================================================
    
    "sources\boot.wim" original size: 883187 KiB
    Using LZX compression with 6 threads
    Archiving file data: 1427 MiB of 1427 MiB (100%) done
    "sources\boot.wim" optimized size: 572165 KiB
    Space saved: 311021 KiB
    
    ============================================================
    Adding setup dynamic update(s)...
    ============================================================
    
    Windows11.0-KB5041178-x64.cab
    
    ============================================================
    Removing temporary extracted files...
    ============================================================
    
    
    ============================================================
    Creating updated ISO file...
    ============================================================
    
    ISO Location:
    "F:\W10UI_10.44"
    
    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 (1000 files in 92 directories)
    Scanning source tree complete (1049 files in 97 directories)
    
    Computing directory information complete
    
    Image file is 5225086976 bytes (before optimization)
    
    Writing 1049 files in 97 directories to 26120.1330.240612-0249.GE_RELEASE_SVC_BETAFLT_PROD1_CLIENT_X64FRE_RU-RU.iso
    
    100% complete
    
    Storage optimization saved 66 files, 15792128 bytes (1% of image)
    
    After optimization, image file is 5211764736 bytes
    Space saved because of embedding, sparseness or optimization = 15792128
    
    Done.
    
    ============================================================
       Finished
    ============================================================
    
    
    Press 9 or q to exit.

    works fine
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,324
    91,565
    340
    https://learn.microsoft.com/en-us/w...-dynamic-update#checkpoint-cumulative-updates

    does that mean on first install, we can point /PackagePath to the last LCU msu directly, and it will scan and add lower base LCU(s) by itself?
    or we point /PackagePath to the folder that contain the LCUs?

    will test that later
     
  16. #3036 Deleted member 1488350, Jul 29, 2024
    Last edited by a moderator: Jul 29, 2024
    need a paw ... whistle ;). I am clumsy at times, but might be useful .... :blush:

    [my Rigg fortunately has no intel (;)) but a little 5900X, 32GB, 4070Ti(non-S), aka sufficient...one old, 2 'Servers'...]
     
  17. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,324
    91,565
    340
    :D

    You are free to try

    download the 3 msu files
    https://uupdump.net/findfiles.php?id=f48af559-3c48-4bee-9e76-b4ee02ccc1c7&q=!updates
    mount 24H2 or LTSC 2021 install.wim
    run:
    Code:
    dism.exe /Image:D:\Mount /Add-Package /PackagePath:"folder_of_msu_files"
    see if that succeed
     
  18. OK, need a short hint, has been a while since .... have most needed but what was the way to download the MSUs as MSUs?

    Do i simply rename the offered string or is some magic needed ... my wand might be cracked or so, not sure ;).
     
  19. Sofar so good, atm mounting ´:
    Code:
    [01]  01.04.2024  en-US  x64  10.0.26100.1  Windows 11 Enterprise LTSC
    [02]  01.04.2024  en-US  x64  10.0.26100.1  Windows 11 IoT Enterprise LTSC
    [03]  01.04.2024  en-US  x64  10.0.26100.1  Windows 11 IoT Enterprise Subscription LTSC
    Now msu and mounting ... please stay tuned 24 Threads are 100% .....

    Old JATD-Skript is still the legacy tool of choice here, still up-to-date™ :).
     
    Index one is mounted. Have 3 Files with unique IDs (147 - 325 MB) here --- next?