abbodi1406's Batch Scripts Repo

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

  1. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,268
    91,141
    340
    It's too old and messy to script
     
  2. TK50P

    TK50P MDL Junior Member

    May 29, 2023
    50
    9
    0
    WHD-W7UI needs to be updated.
    1. Rebuilding boot.wim fails (Sorry for big image, because I don't know how to make it smaller)
    [​IMG]
    2. Skips Updating WinRE.wim even it's marked as YES
     
  3. xCyBx

    xCyBx MDL Senior Member

    Aug 6, 2018
    360
    724
    10
    #3543 xCyBx, Dec 21, 2024
    Last edited: Dec 21, 2024
    Windows ADK 10.0.26100.2454 unrecognized argument '/All' in my Windows 11 23H2 10.0.22631.4602 also.

    It's not a bug in W7UI script.

    Screenshot 2024-12-18 154307.png
     
  4. TK50P

    TK50P MDL Junior Member

    May 29, 2023
    50
    9
    0
    Then do I have to use Windows 11 22621.1 ADK?
     
  5. xCyBx

    xCyBx MDL Senior Member

    Aug 6, 2018
    360
    724
    10
    Maybe o_O
     
  6. TK50P

    TK50P MDL Junior Member

    May 29, 2023
    50
    9
    0
    I think since 26100.x ADK, they removed /ALL in index option.
    22621.1 ADK worked.
    [​IMG]
     
  7. xCyBx

    xCyBx MDL Senior Member

    Aug 6, 2018
    360
    724
    10
    No, Windows 11 10.0.26100.x it's just piece of garbage and ADK also.
     
  8. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,268
    91,141
    340
    W10UI v10.49:

    - Fix repacking psf+wim for multiple updates in the same AggregatedMetadata

    - Add "WimCreateTime" option to change install.wim image creation time to match last modification time
    require wimlib-imagex.exe, but it doesn't require to enable UseWimlib option itself



    WHD-W7UI v6.8 / WHD-W8.1UI v7.7:

    - Add "WimCreateTime" option to change install.wim image creation time
    require wimlib-imagex.exe
    it will be detected from system directories (Path environment variable), the script directory, or "bin" subfolder in the script directory

    - Few code improvements and fixes:
    proper detection for Windows Powershell
    fix powershell CIM_DataFile command
    fix exporting wim files if Dism.exe version doesn't support /All parameter
    change exit prompt to "9 or q"
     
  9. haris_mdlf69

    haris_mdlf69 MDL Addicted

    Oct 23, 2018
    583
    992
    30
    [​IMG]

    W10UI.ini
    Code:
    [W10UI-Configuration]
    Target        =D:\MSMG\DVD
    Repo          =D:\19044.5247
    DismRoot      =dism.exe
    
    Net35         =1
    Net35Source   =D:\MSMG\DVD\sources\sxs
    Cleanup       =0
    ResetBase     =0
    LCUwinre      =0
    WinRE         =1
    LCUmsuExpand  =0
    UpdtBootFiles =0
    SkipEdge      =0
    SkipWebView   =0
    UseWimlib     =1
    WimCreateTime =1
    
    _CabDir       =W10UItemp
    MountDir      =W10UImount
    WinreMount    =W10UImountre
    
    wim2esd       =0
    wim2swm       =0
    ISO           =1
    ISODir        =
    Delete_Source =0
    
    AutoStart     =0
    
    AddDrivers    =0
    Drv_Source    =\Drivers
    
    Updates Integration
    Code:
    ============================================================
    Running W10UI v10.49
    ============================================================
    
    ============================================================
    Configured Options...
    ============================================================
    
    Net35
    Net35Source
    UseWimlib
    WimCreateTime
    WinRE
    ISO
    
    ============================================================
    Extracting .cab files from .msu files...
    ============================================================
    
    1/3: windows10.0-kb5003791-x64_14e7547b08f1b29cae6e41c9f7da5f1347d9955c.msu
    2/3: windows10.0-kb5048161-x64-ndp481_80d0836a9fb32694631d804a208ad1497c9e6adb.msu
    3/3: windows10.0-kb5048652-x64_279b3aca56a2aa72aa2d08ccc30fad69bd5a1e29.msu
    
    ============================================================
    Extracting files from update containers (cab/wim)...
    *** This will require some disk space, please be patient ***
    ============================================================
    
    1/7: Windows10.0-KB5003791-x64_PSFX.cab [Enablement]
    2/7: windows10.0-kb5007401-x64_f1bf61d834bb8d9951c7efa23454643daae195b0.cab
    3/7: Windows10.0-KB5011048-x64.cab [NetFx]
    4/7: windows10.0-kb5046905-x64_caad951e96a4d7ef4da1a8e45055e7b96a19d1bc.cab [Setup DU]
    5/7: windows10.0-kb5046913-x64_bfdc3bbb484ea921fb8eb68b18d81f1ab4c72340.cab [SafeOS DU]
    6/7: Windows10.0-KB5048161-x64-NDP481.cab [NetFx]
    7/7: Windows10.0-KB5048652-x64.cab [Combined]
    8/9: Windows10.0-KB5046823-x64_inout.cab [SSU]
    9/9: Windows10.0-KB5048652-x64_inout.cab [LCU]
    
    ============================================================
    Mounting sources\install.wim - index 1/1
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_5071~31bf3856ad364e35~amd64~~19041.5071.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 4 - Adding package Package_for_KB5011048~31bf3856ad364e35~amd64~~10.0.9110.10
    [==========================100.0%==========================]
    Processing 2 of 4 - Adding package Package_for_KB5003791~31bf3856ad364e35~amd64~~19041.1237.1.3
    [==========================100.0%==========================]
    Processing 3 of 4 - Adding package Package_for_KB5007401~31bf3856ad364e35~amd64~~19041.1378.1.1
    [==========================100.0%==========================]
    Processing 4 of 4 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9290.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.5247.1.14
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding .NET Framework 3.5 feature...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19044.5247
    
    Enabling feature(s)
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Reinstalling cumulative update(s)...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19044.5247
    
    Processing 1 of 3 - Adding package Package_for_KB5007401~31bf3856ad364e35~amd64~~19041.1378.1.1
    [==========================100.0%==========================]
    Processing 2 of 3 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9290.1
    [==========================100.0%==========================]
    Processing 3 of 3 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.5247.1.14
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Updating winre.wim ...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_5071~31bf3856ad364e35~amd64~~19041.5071.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_SafeOSDU~31bf3856ad364e35~amd64~~19041.5125.1.3
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19041.3562
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19041.3562
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image File : D:\W10UI_10.49\winre.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    "winre.wim" original size: 446250 KiB
    Using LZX compression with 4 threads
    Archiving file data: 1001 MiB of 1001 MiB (100%) done
    "winre.wim" optimized size: 397807 KiB
    Space saved: 48443 KiB
    
    ============================================================
    Adding updated winre.wim ...
    ============================================================
    
            1 file(s) copied.
    
    ============================================================
    Unmounting sources\install.wim - index 1/1
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image File : D:\MSMG\DVD\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: 6770908 KiB
    Using LZX compression with 4 threads
    Archiving file data: 12 GiB of 12 GiB (100%) done
    "sources\install.wim" optimized size: 6353828 KiB
    Space saved: 417080 KiB
    
    ============================================================
    Modifying install.wim image creation time ...
    ============================================================
    
    
    ============================================================
    Mounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_5071~31bf3856ad364e35~amd64~~19041.5071.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_KB5003791~31bf3856ad364e35~amd64~~19041.1237.1.3
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.5247.1.14
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19041.5247
    
    [========================== 45.9%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19041.5247
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image File : D:\MSMG\DVD\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.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_5071~31bf3856ad364e35~amd64~~19041.5071.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_KB5003791~31bf3856ad364e35~amd64~~19041.1237.1.3
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.5247.1.14
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19041.5247
    
    [========================== 45.9%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19041.5247
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image File : D:\MSMG\DVD\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: 878045 KiB
    Using LZX compression with 4 threads
    Archiving file data: 1302 MiB of 1302 MiB (100%) done
    "sources\boot.wim" optimized size: 572918 KiB
    Space saved: 305126 KiB
    
    ============================================================
    Adding setup dynamic update(s)...
    ============================================================
    
    windows10.0-kb5046905-x64_caad951e96a4d7ef4da1a8e45055e7b96a19d1bc.cab
    
    ============================================================
    Removing temporary extracted files...
    ============================================================
    
    
    ============================================================
    Creating updated ISO file...
    ============================================================
    
    ISO Location:
    "D:\W10UI_10.49"
    
    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 41 directories)
    Scanning source tree complete (903 files in 86 directories)
    
    Computing directory information complete
    
    Image file is 7301464064 bytes (before optimization)
    
    Writing 903 files in 86 directories to 19044.5247.241205-1826.21H2_RELEASE_SVC_PROD1_CLIENT_X64FRE_EN-US.iso
    
    100% complete
    
    Storage optimization saved 25 files, 14200832 bytes (1% of image)
    
    After optimization, image file is 7289333760 bytes
    Space saved because of embedding, sparseness or optimization = 14200832
    
    Done.
    
    ============================================================
       Finished
    ============================================================
    
    
    Press 9 or q to exit.
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,268
    91,141
    340
  11. W7W10

    W7W10 MDL Novice

    May 11, 2023
    44
    4
    0
    #3551 W7W10, Jan 15, 2025
    Last edited: Jan 15, 2025
    Hello abbodi1406.

    Can I count on your time about the problem with W10UI?

    I am having trouble getting W10UI to work. It is W10UI_10.49. I want to install current updates in my live Windows 10 using it.
    I am using live Windows 10 19044.1288 LTSC 21H2 MSDN ISO under VMWare Workstation Pro 15.5.7.

    WHDownloader_0.0.2.4 successfully downloaded the updates.

    Error message W10UI: Error: Specified location is not valid

    Contents of W10UI directory:

    Drivers[Folder]
    Updates[Folder]
    dir.txt
    error.txt
    log.txt
    readme.txt
    W10UI-ReadMe.txt
    W10UI.cmd
    W10UI.cmd.ORG
    W10UI.ini
    W10UI.ini.ORG
    WHDownloader.exe



    Run W10UI using FARmanager 3.0.6161.0 x64, start under Administrators Group account.


    Any help please?
     
  12. shhnedo

    shhnedo MDL Expert

    Mar 20, 2011
    1,837
    2,447
    60
    Where is the W10UI folder located?
     
  13. W7W10

    W7W10 MDL Novice

    May 11, 2023
    44
    4
    0
    Disk C:\ , root
     
  14. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,268
    91,141
    340
    W10UI require all updates in the same directory, not sub-folders like WHDownloader structure

    copy the updates to new location together
    or edit W10UI.ini and set "Repo" option to the full path of WHDownloader "Updates\Windows10-x64\General\19041"
     
  15. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,866
    104,390
    450
  16. W7W10

    W7W10 MDL Novice

    May 11, 2023
    44
    4
    0
    W10UI\Updates\Windows10-x64\General\14393\
    W10UI\Updates\Windows10-x64\General\17763\
    W10UI\Updates\Windows10-x64\General\19041\
    W10UI\Updates\Windows10-x64\General\19041\v21H1\
    W10UI\Updates\Windows10-x64\General\19041\v21H2\
    W10UI\Updates\Windows10-x64\General\19041\v22H2\

    I installed updates into Window 7 using WHD-W7UI and put Repo=Updates string into WHD-W7UI.ini No full path.

    Which updates I should put into from which sub-folder?
     
  17. shhnedo

    shhnedo MDL Expert

    Mar 20, 2011
    1,837
    2,447
    60
    @W7W10
    upload_2025-1-16_1-11-5.png
    This is how your W10UI folder should look like. Ignore the names in my screenshot, you don't need to touch any update names. Just download the necessary updates, put them inside the W10UI folder and proceed with the rest as per instructions in ReadMe file.
     
  18. delMicron

    delMicron MDL Junior Member

    Dec 28, 2021
    62
    29
    0
    @W7W10
    I'm trying to help to explain for you.
    You only need the build number. For example, for 19041, remove the v2*** and etc, just use 19041.
    Put all the update files according to the build number folder.
    So, now it depends on what version of the image you want to update.
    If you want to update the build image number 19041, set the Repo volue with X:\W10UI\Updates\Windows10-x64\General\19041
    Code:
    Repo          =X:\W10UI\Updates\Windows10-x64\General\19041
     
  19. W7W10

    W7W10 MDL Novice

    May 11, 2023
    44
    4
    0
    Please pardon me, I am not a programmer, I am only a user.

    I want to understand the difference between W10UI and WHD-W7UI in this situation. They are both based on Updates downloaded by WHDownloader. Again, please excuse me for my incompetent question. I sent an identical reply to shhnedo
     
  20. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,866
    104,390
    450
    Love the double posting...