abbodi1406's Batch Scripts Repo

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

  1. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,325
    91,566
    340
    uup-converter v108r - W10UI v10.45r

    - Extend LCU .mum timestamp preserve workaround for all builds 22621+
     
  2. ЯƎHTͶAꟼ

    ЯƎHTͶAꟼ MDL Senior Member

    Jan 29, 2017
    350
    95
    10
    #3242 ЯƎHTͶAꟼ, Sep 16, 2024
    Last edited: Sep 17, 2024
    Oh daamn me.... yea would have been enough to post the config in this case...
    It confused me that it showed the updates at first, so thought its any different...

    Thank you very much for checking in and find it that quick, saved my day.
    General a lot of thanks for providing the tools, I just can say over and over again. Huge respect! :):tankyou:
     
  3. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,325
    91,566
    340
    Office Scrubber v0.13

    - Clean more registry keys/values related to Office C2R OEM and subscription leftovers

    --
    YAOCTRI v11.1

    - Replaced generated missing Office 2024 GVLKs with official keys
    - Few code improvements

    --
    C2R-Retail2Volume v0.20u

    - Replaced generated missing Office 2024 GVLKs with official keys
     
  4. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,325
    91,566
    340
  5. ЯƎHTͶAꟼ

    ЯƎHTͶAꟼ MDL Senior Member

    Jan 29, 2017
    350
    95
    10
    Question, I'm slightly confused about the Microsoft page:
    https://learn.microsoft.com/en-us/windows-hardware/get-started/adk-install
    "all earlier supported versions".. well.. there is no list, what it means?
    Does it means it can handle all from Win10 1507 up to Win11 24H2?!
     
  6. Muggaen

    Muggaen MDL Addicted

    Dec 30, 2011
    763
    335
    30
  7. ЯƎHTͶAꟼ

    ЯƎHTͶAꟼ MDL Senior Member

    Jan 29, 2017
    350
    95
    10
    Yea that is why I'm wondering about the phrase "all earlier supported versions".
    I mean, all earlier versions having their own ADK... weird.

    Maybe higher ones are backwards compatible, but can't information about...
    Not sure what best to chose, especially the older ones, if there are differences.
    I tried the same build number dism for same build number system.
    But facing some weird errors.. idk...

    Would love to only keep the latest stuff, but idk..
     
  8. Muggaen

    Muggaen MDL Addicted

    Dec 30, 2011
    763
    335
    30
    I use ADK matching the win build number for the same reason
     
  9. longbeard

    longbeard MDL Novice

    Oct 23, 2021
    35
    18
    0
    #3249 longbeard, Sep 20, 2024
    Last edited: Sep 20, 2024
    W7ESUI doesnt install kb5020879 exe and it wont integrate manually, cant find a .cab version on update catalog either :(
     
  10. ЯƎHTͶAꟼ

    ЯƎHTͶAꟼ MDL Senior Member

    Jan 29, 2017
    350
    95
    10
    Discovered it was because of some incompatible updates, what is weird, I only got from NTLite, WHDownloaer (sorted to builds) and some forum posts from here..
    Got that all sorted now, some tests already did flawless as I know from abbodis scripts, other I need to test.. big stuff comes now I figure win7 updates.
    Probably will do the xxx74 ("SP2") what saves me a lot of time and bothering with other updates, with the tool i can remove the spy-parts anyway.

    Quick research tells me there is something NDP48-x86-x64-AllOS-ENU.cab (probably the .exe version extracted) that can be integrated.
    Maybe it also brought by any LCU or something, in a few hours I may know...
     
  11. ЯƎHTͶAꟼ

    ЯƎHTͶAꟼ MDL Senior Member

    Jan 29, 2017
    350
    95
    10
    This tool has a mini tool that can make cab from some msu, exe etc (old LPs for example, basically extract like 7zip)
    https://github.com/Legolash2o/WinToolkit_v2 Would love to have these as scripts instead tho.
     
  12. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,325
    91,566
    340
    Did you "integrate" .NET 4.8 in the first place?

    .NET 4.x updates has a separate installer
    https://forums.mydigitallife.net/posts/1596676/
     
  13. longbeard

    longbeard MDL Novice

    Oct 23, 2021
    35
    18
    0
    Yes i had already installed net 4.8. Will give dotNetFx4_ESU_Installer a try. Thank you.
     
  14. ЯƎHTͶAꟼ

    ЯƎHTͶAꟼ MDL Senior Member

    Jan 29, 2017
    350
    95
    10
    #3254 ЯƎHTͶAꟼ, Sep 21, 2024
    Last edited: Sep 21, 2024
    Me also just using .NET 3-4activators after, when I see "pending" on the package page I kinda getting stroke lol.
    Either funny, just discovered a solution for another problem what was there, I present the solution: wait more than 30 mins
    (while defender fully disabled, for whatever reason it takes that long and then acts like nothing happened)

    Pardon me, I correct,, it was more than 2 hours, till press 9 or to quit l,v no idea why (cleaning image part) but if its works in the end, whatever lol
    I mean it says "operation completly successul", im happy

    Zero idea what I messed this time, beside of lack of patiency
    .
    edit: when I open everything seems correct, whatever haha
     
  15. Jens1976

    Jens1976 MDL Novice

    Apr 23, 2016
    12
    9
    0
    Hi, I have tested a bit with the integration of the updates in the 26120 and the problem that you can not install updates and FoDs later in the installed state. I was able to create a working 26120 that could be updated. Abbodi, in your script you extract the SSUs from the LCUs after creating the install.wim and integrate them into the install.wim. Please leave that alone. Generate the install.wim (26100.1). And then integrate the MSUs one after the other without unpacking them (dism /add-package /image: “X:\mounted_wim” /PackagePath: “X:\Folder”). Do NOT perform a cleanup! Then the enablement package and then the NetFX update. But do NOT activate NetFX! Update winre.wim in the same way. I have tested it here twice and it works. I know that the install.wim and the resulting ISO become very large as a result, but if you clean it up, it no longer works. I'm sure there are other ways, but for now this one works.
     
  16. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,325
    91,566
    340
    LCU msu has been always added directly for all Windows 11
    SSU is added separately alone

    yes, adding LCUs one by one and never run Cleanup, will insure that WinSxS will have all the necessary components for LCU-reinstallation
    but as you said, the result is huge install.wim
    currently, there are no other ways to this mess besides that

    i will see if i can add an option to install all LCUs, instead the highest only
     
  17. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,950
    4,180
    60
    cleanup consistently stops working at 71.6% with the build 26100.1876, host OS is 26100.1742 without ADK, W10UI_10.45r

    Code:
    ============================================================
    Running W10UI v10.45r
    ============================================================
    
    ============================================================
    Copying DVD Drive contents to work directory...
    ============================================================
    
    ============================================================
    Extracting dpx.dll file...
    ============================================================
    
    ============================================================
    Extracting .cab files from .msu files...
    ============================================================
    
    1/2: windows11.0-kb5043080-x64_LCU_1742.1.10.msu [Combined UUP]
    2/2: windows11.0-kb5043178-x64_LCU_1876.1.20.msu [Combined UUP]
    
    ============================================================
    Extracting files from update cabinets (.cab)...
    *** This will require some disk space, please be patient ***
    ============================================================
    
    1/5: windows11.0-kb5042098-x64-ndp481_CU_9266.1.cab [NetFx]
    2/5: windows11.0-kb5043934-x64_DU.SafeOS_1866.1.0.cab [SafeOS DU]
    3/5: windows11.0-kb5044075-x64_DU.Sources_1875.cab [Setup DU]
    4/5: Windows11.0-KB5043113-x64_inout.cab [SSU]
    5/5: Windows11.0-KB5043117-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_1871~31bf3856ad364e35~amd64~~26100.1871.1.11
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1871 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_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9266.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    windows11.0-kb5043178-x64_LCU_1876.1.20.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.
    
    ============================================================
    Resetting OS image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1876
    
    [===========================71.6%=========                 ]
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,325
    91,566
    340
    Enthousiast reported the same in DM, but it continued slowly in few minutes

    check if the logs has stopped logging
     
  19. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,950
    4,180
    60
    mine just went from 71.6% to 72.3% in 10 minutes and stopped again, this is the 3rd try
    well, I'll try again and wait a few hours then
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,325
    91,566
    340
    comment/remove this line and try
    Code:
    if %online%==0 if %_build% geq 16299 %_dism2%:"!_cabdir!" %dismtarget% /LogPath:"%_dLog%\DismCleanup.log" /Cleanup-Image /StartComponentCleanup %_Nul8%