abbodi1406's Batch Scripts Repo

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

  1. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,454
    86,514
    340
    [​IMG]

    probably :D
     
  2. HLP Mr. Lin Yu

    HLP Mr. Lin Yu MDL Junior Member

    Jul 22, 2022
    78
    36
    0
    Could you please tell me what to do?
     
  3. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    2,790
    1,972
    90
    use dism to remove source language after adding news language
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,454
    86,514
    340
    #2904 abbodi1406, May 2, 2024
    Last edited: May 3, 2024
    (OP)
    If someone would like to test that scenario
    http://put.nu/files/df6ZBkY.zip

    e.g. with 26100.268 UUP files:
    - extract Windows11.0-KB5036908-x64.msu with 7-zip into the same folder "UUPs"
    - delete onepackage.AggregatedMetadata.cab (and optionally DesktopDeployment_x86.cab)
    - move Windows11.0-KB5036908-x64.msu to a different location
    - run conversion with updated script
     
  5. Jens1976

    Jens1976 MDL Novice

    Apr 23, 2016
    2
    3
    0
    CompDB_App.xml is missing...
     
  6. TS2008

    TS2008 MDL Junior Member

    Mar 24, 2015
    70
    72
    0
    #2906 TS2008, May 3, 2024
    Last edited: May 3, 2024
    No Problem hier with the CompDB_App.xml, but the LCUCompDB ist missing (for recreating msu). Maybe the outer.AggregatedMetadata_KB5036908.cab is not detected.

    With the Option SkipLCUmsu=1, the LCU will be ignored (maybe because the wim ist not detected).

    No way to integrate the extracted LCU for the 26100.268.
     
  7. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,454
    86,514
    340
    SkipLCUmsu option is ignored for builds 25336+

    thanks for pointing about LCUCompDB
    AggregatedMetadata for new msu wim contain outer.AggregatedMetadata*.cab, not LCUCompDB*.xml.cab as pre 25336 builds

    fixing...
     
  8. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,493
    3,224
    60
    Code:
    ============================================================
    Running W10UI v10.41
    ============================================================
    
    ============================================================
    Copying DVD Drive contents to work directory...
    ============================================================
    
    ============================================================
    Extracting dpx.dll file...
    ============================================================
    
    ============================================================
    Extracting .cab files from .msu files...
    ============================================================
    
    1/1: windows11.0-kb5036908-x64_LCU_268.1.3.msu [Combined UUP]
    
    ============================================================
    Extracting files from update cabinets (.cab)...
    *** This will require some disk space, please be patient ***
    ============================================================
    
    1/3: defender-dism-x64.cab
    2/3: windows11.0-kb5036616-x64-ndp481_CU_9236.4.cab [NetFx]
    3/3: Windows10.0-KB5036998-x64_inout.cab [SSU]
    
    ============================================================
    Mounting sources\install.wim - index 1/1
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_268~31bf3856ad364e35~amd64~~26100.268.1.1
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_268 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.1
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9236.4
    [==========================100.0%==========================]
    The operation completed successfully.
    
    windows11.0-kb5036908-x64_LCU_268.1.3.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    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.1
    
    Image Version: 10.0.26100.268
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.268
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding Defender update...
    ============================================================
    
    
    ============================================================
    Updating winre.wim ...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_268~31bf3856ad364e35~amd64~~26100.268.1.1
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_268 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.1
    
    Image File : F:\W10UI_10.41\winre.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    "winre.wim" original size: 522615 KiB
    Using LZX compression with 6 threads
    Archiving file data: 1297 MiB of 1297 MiB (100%) done
    "winre.wim" optimized size: 506413 KiB
    Space saved: 16201 KiB
    
    ============================================================
    Adding updated winre.wim ...
    ============================================================
    
    Скопировано файлов:         1.
    
    ============================================================
    Unmounting sources\install.wim - index 1/1
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image File : F:\W10UI_10.41\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: 4984802 KiB
    Using LZX compression with 8 threads
    Archiving file data: 9197 MiB of 9197 MiB (100%) done
    "sources\install.wim" optimized size: 4192931 KiB
    Space saved: 791871 KiB
    
    ============================================================
    Mounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_268~31bf3856ad364e35~amd64~~26100.268.1.1
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_268 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    windows11.0-kb5036908-x64_LCU_268.1.3.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.1
    
    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.1
    
    Image Version: 10.0.26100.268
    
    [===========================71.5%=========                 ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.268
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image File : F:\W10UI_10.41\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.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_268~31bf3856ad364e35~amd64~~26100.268.1.1
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_268 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    windows11.0-kb5036908-x64_LCU_268.1.3.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.1
    
    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.1
    
    Image Version: 10.0.26100.268
    
    [===========================71.5%=========                 ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image Version: 10.0.26100.268
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1
    
    Image File : F:\W10UI_10.41\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: 675445 KiB
    Using LZX compression with 6 threads
    Archiving file data: 1358 MiB of 1358 MiB (100%) done
    "sources\boot.wim" optimized size: 535093 KiB
    Space saved: 140352 KiB
    
    ============================================================
    Removing temporary extracted files...
    ============================================================
    
    
    ============================================================
    Creating updated ISO file...
    ============================================================
    
    ISO Location:
    "F:\W10UI_10.41"
    100%  4883MB 26100.268.240408-1720.GE_RELEASE_SVC_IM_CLIENT_X64FRE_FR-FR.iso
    
    ============================================================
       Finished
    ============================================================
    
    
    Press 9 or q to exit.

    oscdimg.exe wasn't detected? it's in W10UI_10.41\bin folder
    ADK 25398.1 was uninstalled because I got a lot access denied errors with DISM on 26100.268 host OS

    files structure:
    "F:\W10UI_10.41\bin\bin64\libwim-15.dll"
    "F:\W10UI_10.41\bin\bin64\wimlib-imagex.exe"
    "F:\W10UI_10.41\bin\oscdimg.exe"
    "F:\W10UI_10.41\bin\PSFExtractor.exe"
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,454
    86,514
    340
    @Paul Mercer

    only cdimage.exe is detected from bin folder (you can rename it to cdimage.exe)
    i will detect bin\oscdimg.exe too in next version
     
  10. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,454
    86,514
    340
    fixed
    http://put.nu/files/df6ZBkY.zip
     
  11. Jens1976

    Jens1976 MDL Novice

    Apr 23, 2016
    2
    3
    0
  12. Clusterhead

    Clusterhead MDL Novice

    Mar 29, 2013
    17
    13
    0
  13. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,493
    3,224
    60
    #2913 Paul Mercer, May 4, 2024
    Last edited: May 4, 2024
    suggestion: add App Installer to the 1 and 2 levels for uup-converter
    people can't find it in MSFT store because it's hidden everywhere and it's not even possible to find it quickly on google

    and it allows you to install apps with one click so logically it's the same thing as MSFT store anyway
    I know it comes with winget but it's fine

    personally I would like to see level 1 as Store, Security Health, App Installer and Terminal, but Terminal is not needed that much as App Installer on a new system, and it's available in MSFT store search anyway



    suggestion for W10UI: skip SSU integration in winre.wim if there are no other updates (SafeOS or LCU), it happens on the 26100 series builds because SafeOS update wasn't released yet
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,454
    86,514
    340
    uup-converter v104

    - Add support for creating LCU MSU for builds 25336+ (thanks to @TS2008 / @Jens1976 for testing)

    - Detect 26120 Enablement Package KB5037898

    - Update create_virtual_editions.cmd to support IoTEnterpriseSK via Registry method (thanks to @fch1993)

    - Update AppsLevel option (per @Paul Mercer suggestion):
    moved App Installer to level 1
    added Outlook, Clipchamp to level 3
     
  15. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,493
    3,224
    60
    thanks

    I noticed that ReadMe.html wasn't updated (AppsLevel section)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. Ace2

    Ace2 MDL Expert

    Oct 10, 2014
    1,536
    1,289
    60
    Has BatUtil-master\PSFX_MSU been updated with, support to create LCU MSU for builds 25336+ ?
     
  17. raptorddd

    raptorddd MDL Addicted

    Aug 17, 2019
    691
    252
    30
    the drivers integration is only for network related drivesr or i can add GPU and any other drivers.?
     
  18. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,949
    97,193
    450
    It integrated all offered drivers, but i personally only integrate (W)Lan drivers and install the others by WU or manually.

    From the readme, driver integration section:
     
  19. raptorddd

    raptorddd MDL Addicted

    Aug 17, 2019
    691
    252
    30
    prefectly clear now.
    thank you
     
  20. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,454
    86,514
    340
    PSFX MSU Maker v0.4