abbodi1406's Batch Scripts Repo

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

  1. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,274
    94,763
    450
    You seem to have targeted the install.wim and not the extracted ISO folder?

    When install.wim is directly targeted, there will be no ISO created.
     
  2. Thanks a lot . ISO Created now.
     
  3. 143bpm

    143bpm MDL Junior Member

    Oct 16, 2017
    51
    26
    0
    @Enthousiast could you check one scenario, please?

    1. Make an ISO 18363.592 or 18363.628 using W10UI 7.9
    2. Install it
    3. Go to WU and press check for updates button
    a) it will offer to you one Defender update and one Virus removal tool update
    click check for updates button again
    b) it will offer to you another Defender update
    click check for updates button again
    c) it will offer to you LCU (that's a problem)

    This is my list of updates in the /Cabs directory for W10UI:

    Windows10.0-KB4516115-x64_Flash_September.cab
    Windows10.0-KB4517245-x64_1909_EP.cab
    Windows10.0-KB4528759-x64_SSU_590.cab
    Windows10.0-KB4532695-x64_CU_628.cab
    Windows10.0-KB4532938-x64-NDP48_3105.cab
    Windows10.0-KB4534726-x64_DU_ISO.cab

    Just need your confirmation for the bug.
     
  4. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,274
    94,763
    450
    #1024 Enthousiast, Jan 28, 2020
    Last edited: Jan 28, 2020
    Can't remember it happening when i released my 18363.592 ISOs, but running 18363.628 now:
    Code:
    ============================================================
    [1] Target (x64): "h:\W10UI\18362.1_Work_x64_US"
    
    [2] Updates: "h:\W10UI\18362.1_Updates_x64_1909"
    
    [3] DISM: "Host OS"
    
    [4] Enable .NET 3.5: YES
    
    [5] Cleanup System Image: YES      [6] Reset Image Base: YES
    
    [7] Update WinRE.wim: YES
    
    [8] Install.wim selected indexes: 1 / [K] Keep indexes: Selected
    
    [M] Mount Directory: "c:\W10UImount_4848"
    
    [E] Extraction Directory: "c:\W10UItemp_17373"
    
    ============================================================
    Change a menu option, press 0 to start the process, or 9 to exit:
    
    Code:
    ============================================================
    Running W10UI v7.9
    ============================================================
    
    ============================================================
    Extracting files from update cabinets (.cab)
    *** This will require some disk space, please be patient ***
    ============================================================
    
    1/6: Windows10.0-KB4516115-x64_FLASH.cab
    2/6: windows10.0-kb4517245-x64_1909_Enablement_Packagezz_387.cab
    3/6: windows10.0-kb4528759-x64_SSU_590.cab
    4/6: windows10.0-kb4532695-x64_RP_CU_628.cab
    5/6: windows10.0-kb4532938-x64-ndp48_3105.cab
    6/6: windows10.0-kb4534726-x64_DU_Sources.cab
    
    ============================================================
    Mounting sources\install.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18362.1
    
    Processing 1 of 1 - Adding package Package_for_KB4528759~31bf3856ad364e35~amd64~~18362.590.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18362.1
    
    Processing 1 of 3 - Adding package Package_for_KB4516115~31bf3856ad364e35~amd64~~10.0.1.0
    [==========================100.0%==========================]
    Processing 2 of 3 - Adding package Package_for_KB4517245~31bf3856ad364e35~amd64~~10.0.1.5
    [==========================100.0%==========================]
    Processing 3 of 3 - Adding package Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.1.3105
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18362.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~18362.628.1.6
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Resetting OS image base
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18363.628
    
    [=====                      10.0%                          ]
    [===========================97.6%========================  ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18363.628
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding .NET Framework 3.5 feature
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18363.628
    
    Enabling feature(s)
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Reinstalling cumulative update(s)...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18363.628
    
    Processing 1 of 2 - Adding package Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.1.3105
    [==========================100.0%==========================]
    Processing 2 of 2 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~18362.628.1.6
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Updating winre.wim
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18362.1
    
    Processing 1 of 1 - Adding package Package_for_KB4528759~31bf3856ad364e35~amd64~~18362.590.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18362.1
    
    Processing 1 of 1 - Adding package Package_for_KB4517245~31bf3856ad364e35~amd64~~10.0.1.5
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18362.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~18362.628.1.6
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18362.628
    
    [===========================98.9%========================= ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18362.628
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image File : H:\W10UI\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.17763.771
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding updated winre.wim
    ============================================================
    
            1 file(s) copied.
    
    ============================================================
    Unmounting sources\install.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image File : h:\W10UI\18362.1_Work_x64_US\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.17763.771
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18362.1
    
    Processing 1 of 1 - Adding package Package_for_KB4528759~31bf3856ad364e35~amd64~~18362.590.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18362.1
    
    Processing 1 of 1 - Adding package Package_for_KB4517245~31bf3856ad364e35~amd64~~10.0.1.5
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18362.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~18362.628.1.6
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18362.628
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18362.628
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image File : h:\W10UI\18362.1_Work_x64_US\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.17763.771
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18362.1
    
    Processing 1 of 1 - Adding package Package_for_KB4528759~31bf3856ad364e35~amd64~~18362.590.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18362.1
    
    Processing 1 of 1 - Adding package Package_for_KB4517245~31bf3856ad364e35~amd64~~10.0.1.5
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18362.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~18362.628.1.6
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18362.628
    
    [===========================99.5%========================= ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image Version: 10.0.18362.628
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Image File : h:\W10UI\18362.1_Work_x64_US\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.17763.771
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.771
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Removing temporary extracted files...
    ============================================================
    
    
    ============================================================
    Creating updated ISO file...
    ============================================================
    
    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 36 directories)
    Scanning source tree complete (936 files in 83 directories)
    
    Computing directory information complete
    
    Image file is 4571430912 bytes (before optimization)
    
    Writing 936 files in 83 directories to Win10_18363.628_x64_2020-01-28.iso
    
    100% complete
    
    Storage optimization saved 25 files, 14206976 bytes (1% of image)
    
    After optimization, image file is 4559343616 bytes
    Space saved because of embedding, sparseness or optimization = 14206976
    
    Done.
    
    ============================================================
       Finished
    ============================================================
    
    
    Press 9 to exit.
    
    
    will update this post as soon as it's finished and installed :)

    It's installed and the first WU run offered the new dotnet48cu, defender intelligence update + mrt.
    [​IMG]
    Second run only offered the defender malware platform update :
    [​IMG]
    Third run didn't offer anything:)
     
  5. 143bpm

    143bpm MDL Junior Member

    Oct 16, 2017
    51
    26
    0
    Thanks for checking. Prob something on my side. I'll re-check things again.
     
  6. shhnedo

    shhnedo MDL Expert

    Mar 20, 2011
    1,676
    2,225
    60
    #1026 shhnedo, Jan 31, 2020
    Last edited: Jan 31, 2020
    @abbodi1406 https://i.imgur.com/dH8i5xr.png
    This is after I used W10UI to integrate updates(downloaded with WHD) and enable .net 3.5(source was mounted iso) on a 1903 iso.
    Host OS is LTSC 2019 x64. The iso I'm servicing only has a language pack integrated(before anything else is done to the iso).

    Edit: I re-installed the 1903 base that I use(has only a language pack integrated) and tried installing 2007 pro plus again, didn't even enable .net 3.5 in the settings - office installed and launches perfectly fine.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,219
    84,895
    340
    #1027 abbodi1406, Feb 2, 2020
    Last edited: Feb 3, 2020
    (OP)
  8. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,219
    84,895
    340
    W10UI v8.0

    - Fixed offline installation for secure boot update KB4524244

    WHD-W81UI v6.2

    - support for secure boot update KB4502496 (similar to KB3172729, it cannot be offline integrated on Win 7 host OS)
     
  9. Brother it worked flawlessly using KB4524244 without any errors now . Thanks a lot :)
     
  10. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,219
    84,895
    340
  11. ananhaid

    ananhaid MDL Member

    Oct 16, 2017
    245
    221
    10
    Greetings

    could be add check for folder(target and repo) next to the script.

    Because edit ini

    target=%~dpISOExtractDir
    repo=%~dpPatchDir
    Net35Source=%~dpISOEXtractDir\sources\sxs

    not work.

    or have some better method.

    Thanks
     
  12. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,219
    84,895
    340
    @ananhaid

    you can delete ini file and edit options in W10UI.cmd directly

    or, use
    %cd%\
    instead
    %~dp
    in ini file
    but you will have to edit W10UI.cmd too
    search for this line
    Code:
    for /f "tokens=1* delims==" %%A in ('find /i "%1 " W10UI.ini') do set "%1=%%~B"
    replace with
    Code:
    for /f "tokens=1* delims==" %%A in ('find /i "%1 " W10UI.ini') do call set "%1=%%~B"
     
  13. ananhaid

    ananhaid MDL Member

    Oct 16, 2017
    245
    221
    10
  14. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,219
    84,895
    340
    %cd% only works inside ini file

    if you want to use W10UI.cmd directly without ini file, use %~dp
     
  15. @abbodi1406
    Don’t forget to bump up the version number in Virtual Editions script. It still says v42.
     
  16. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,219
    84,895
    340
  17. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,219
    84,895
    340
    WHD-W7UI v6.3

    - Added support for the new sub-category "Security\WithoutESU"

    if you have not moved the updates to new folder yet, the script will still be able to get them from Security
     
  18. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,219
    84,895
    340
    W10UI v8.1

    - Enhanced installed updates detection on live online OS
     
  19. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,219
    84,895
    340
  20. d5stroy5r

    d5stroy5r MDL Novice

    Nov 3, 2019
    5
    1
    0
    Thanks!