abbodi1406's Batch Scripts Repo

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

  1. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    55,203
    126,977
    450
    Please define plenty and what is the drive format?

    Please use code tags so the smileys don't appear.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. redsunset

    redsunset MDL Member

    Mar 16, 2022
    198
    98
    10
    Embarrassingly I forgot it was fat32. Thanks.
     
  3. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    55,203
    126,977
    450
    #4143 Enthousiast, Jun 19, 2026
    Last edited: Jun 19, 2026
    I had a feeling it was FAT32 :Dinstall.wim these days will be over 4GB very fast with win 11.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,673
    100,457
    340
  5. Johncama28292

    Johncama28292 MDL Novice

    May 29, 2022
    30
    25
    0
  6. fch1993

    fch1993 MDL Senior Member

    Mar 14, 2020
    431
    350
    10
    @abbodi1406

    got error when use "create_virtual_editions.cmd" in uup-converter v123 for windows 11 25H2.

    Code:
    === Converting install.wim to install.esd . . .
    
    Using LZMS compression with 64 threads
    Archiving file data: 16 GiB of 16 GiB (100%) done
    
    === Creating ISO . . .
    
    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.
    
    
    ERROR: Must specify a 4 digit year with -t
    
    Errors were reported during ISO creation.
    
    Press 0 or q to exit.
    
    Which seems not to support ISO file like "26100.8737.160101.GE_RELEASE_SVC_PROD3_CLIENT_X64FRE_EN-US.iso" (from Enthousiast's report)

    https://forums.mydigitallife.net/threads/windows-11-hotfix-repository.83741/page-216#post-1915473
     
  7. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,673
    100,457
    340
  8. fch1993

    fch1993 MDL Senior Member

    Mar 14, 2020
    431
    350
    10
    Thanks, now works fine.
     
  9. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,673
    100,457
    340
  10. Paul Mercer

    Paul Mercer MDL Guru

    Apr 6, 2018
    2,087
    4,369
    90
    #4150 Paul Mercer, Jul 16, 2026
    Last edited: Jul 17, 2026
    Code:
    === Extracting ISO file . . .
    
    "F:\zDone\now\26200.8875.260711-1841.25H2_GE_RELEASE_SVC_PROD1_CLIENT_X64FRE_RU-RU.iso"
    
    === Checking distribution Info . . .
    
    === Configured Virtual Options . . .
    
    UseDism
    AutoStart
    AutoEditions: ALL
    
    === Mounting Source Index: 1
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    === Creating Edition: Enterprise
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Image Version: 10.0.26200.8875
    
    Pended operations ignored. When this image is next booted, these operations will be processed.
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Saving image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Setting the FLAGS property of image 3 to "Enterprise".
    Setting the DISPLAYNAME property of image 3 to "Windows 11 Enterprise".
    Setting the DISPLAYDESCRIPTION property of image 3 to "Windows 11 Enterprise".
    Setting the NAME property of image 3 to "Windows 11 Enterprise".
    Setting the DESCRIPTION property of image 3 to "Windows 11 Enterprise".
    
    === Creating Edition: IoT Enterprise
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Image Version: 10.0.26200.8875
    
    Pended operations ignored. When this image is next booted, these operations will be processed.
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Saving image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Setting the FLAGS property of image 4 to "IoTEnterprise".
    Setting the DISPLAYNAME property of image 4 to "Windows 11 IoT Enterprise".
    Setting the DISPLAYDESCRIPTION property of image 4 to "Windows 11 IoT Enterprise".
    Setting the NAME property of image 4 to "Windows 11 IoT Enterprise".
    Setting the DESCRIPTION property of image 4 to "Windows 11 IoT Enterprise".
    
    === Creating Edition: IoT Enterprise Subscription
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Image Version: 10.0.26200.8875
    
    Pended operations ignored. When this image is next booted, these operations will be processed.
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Saving image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Setting the FLAGS property of image 5 to "IoTEnterpriseK".
    Setting the DISPLAYNAME property of image 5 to "Windows 11 IoT Enterprise Subscription".
    Setting the DISPLAYDESCRIPTION property of image 5 to "Windows 11 IoT Enterprise Subscription".
    Setting the NAME property of image 5 to "Windows 11 IoT Enterprise Subscription".
    Setting the DESCRIPTION property of image 5 to "Windows 11 IoT Enterprise Subscription".
    
    === Creating Edition: Enterprise multi-session
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Image Version: 10.0.26200.8875
    
    Pended operations ignored. When this image is next booted, these operations will be processed.
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Saving image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Setting the FLAGS property of image 6 to "ServerRdsh".
    Setting the DISPLAYNAME property of image 6 to "Windows 11 Enterprise multi-session".
    Setting the DISPLAYDESCRIPTION property of image 6 to "Windows 11 Enterprise multi-session".
    Setting the NAME property of image 6 to "Windows 11 Enterprise multi-session".
    Setting the DESCRIPTION property of image 6 to "Windows 11 Enterprise multi-session".
    
    === Creating Edition: Education
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Image Version: 10.0.26200.8875
    
    Pended operations ignored. When this image is next booted, these operations will be processed.
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Saving image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Setting the FLAGS property of image 7 to "Education".
    Setting the DISPLAYNAME property of image 7 to "Windows 11 Education".
    Setting the DISPLAYDESCRIPTION property of image 7 to "Windows 11 Education".
    Setting the NAME property of image 7 to "Windows 11 Education".
    Setting the DESCRIPTION property of image 7 to "Windows 11 Education".
    
    === Creating Edition: Pro Education
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Image Version: 10.0.26200.8875
    
    Pended operations ignored. When this image is next booted, these operations will be processed.
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Saving image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Setting the FLAGS property of image 8 to "ProfessionalEducation".
    Setting the DISPLAYNAME property of image 8 to "Windows 11 Pro Education".
    Setting the DISPLAYDESCRIPTION property of image 8 to "Windows 11 Pro Education".
    Setting the NAME property of image 8 to "Windows 11 Pro Education".
    Setting the DESCRIPTION property of image 8 to "Windows 11 Pro Education".
    
    === Creating Edition: Pro for Workstations
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Image Version: 10.0.26200.8875
    
    Pended operations ignored. When this image is next booted, these operations will be processed.
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Saving image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Setting the FLAGS property of image 9 to "ProfessionalWorkstation".
    Setting the DISPLAYNAME property of image 9 to "Windows 11 Pro for Workstations".
    Setting the DISPLAYDESCRIPTION property of image 9 to "Windows 11 Pro for Workstations".
    Setting the NAME property of image 9 to "Windows 11 Pro for Workstations".
    Setting the DESCRIPTION property of image 9 to "Windows 11 Pro for Workstations".
    
    === Creating Edition: SE
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Image Version: 10.0.26200.8875
    
    Pended operations ignored. When this image is next booted, these operations will be processed.
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Saving image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Setting the FLAGS property of image 10 to "CloudEdition".
    Setting the DISPLAYNAME property of image 10 to "Windows 11 SE".
    Setting the DISPLAYDESCRIPTION property of image 10 to "Windows 11 SE".
    Setting the NAME property of image 10 to "Windows 11 SE".
    Setting the DESCRIPTION property of image 10 to "Windows 11 SE".
    
    === Unmounting Source Index: 1
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Image File : F:\uup-converter-wimlib-124\ISOFOLDER\sources\install.wim
    Image Index : 1
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    === Mounting Source Index: 2
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    === Creating Edition: IoT Enterprise LTSC
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Image Version: 10.0.26100.8875
    
    Pended operations ignored. When this image is next booted, these operations will be processed.
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Saving image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Setting the FLAGS property of image 11 to "IoTEnterpriseS".
    Setting the DISPLAYNAME property of image 11 to "Windows 11 IoT Enterprise LTSC".
    Setting the DISPLAYDESCRIPTION property of image 11 to "Windows 11 IoT Enterprise LTSC".
    Setting the NAME property of image 11 to "Windows 11 IoT Enterprise LTSC".
    Setting the DESCRIPTION property of image 11 to "Windows 11 IoT Enterprise LTSC".
    
    === Creating Edition: IoT Enterprise LTSC Subscription
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Image Version: 10.0.26100.8875
    
    Pended operations ignored. When this image is next booted, these operations will be processed.
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Saving image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Setting the FLAGS property of image 12 to "IoTEnterpriseSK".
    Setting the DISPLAYNAME property of image 12 to "Windows 11 IoT Enterprise LTSC Subscription".
    Setting the DISPLAYDESCRIPTION property of image 12 to "Windows 11 IoT Enterprise LTSC Subscription".
    Setting the NAME property of image 12 to "Windows 11 IoT Enterprise LTSC Subscription".
    Setting the DESCRIPTION property of image 12 to "Windows 11 IoT Enterprise LTSC Subscription".
    
    === Unmounting Source Index: 2
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Image File : F:\uup-converter-wimlib-124\ISOFOLDER\sources\install.wim
    Image Index : 2
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    === Rebuilding install.wim . . .
    
    "ISOFOLDER\sources\install.wim" original size: 7224463 KiB
    Using LZX compression with 8 threads
    Archiving file data: 14 GiB of 14 GiB (100%) done
    "ISOFOLDER\sources\install.wim" optimized size: 7175072 KiB
    Space saved: 49390 KiB
    
    === Creating ISO . . .
    
    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.
    
    
    ERROR: Must specify a 4 digit year with -t
    
    Errors were reported during ISO creation.
    
    Press 0 or q to exit.
    Code:
    ERROR: Must specify a 4 digit year with -t
    ISO folder is 26200.8875.IMPRODBLDB.25H2_GE_RELEASE_SVC_PROD1_CLIENTMULTI_X64FRE_RU-RU

    UpdateAgent.dll:
    Code:
    VALUE "FileVersion",       "10.0.26100.8875 (GitEnlistment(IMProdBldB).160101.0800)"
    if it's difficult to obtain the correct date / branch then perhaps just use the source ISO filename partially?
    source ISO already has 260711-1841 timestamp and PROD1 branch
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,673
    100,457
    340
    source ISO label is used when create_virtual_editions.cmd is called from convert-uup.cmd

    for testing, thanks
    http://put.nu/files/3I-msSo.zip
     
  12. Paul Mercer

    Paul Mercer MDL Guru

    Apr 6, 2018
    2,087
    4,369
    90
    a quick test with the only Enterprise edition:
    Code:
    === Extracting ISO file . . .
    
    "F:\zDone\26200.8875.260711-1841.25H2_GE_RELEASE_SVC_PROD1_CLIENT_X64FRE_RU-RU.iso"
    
    === Checking distribution Info . . .
    
    === Configured Virtual Options . . .
    
    UseDism
    AutoStart
    AutoEditions: Enterprise
    
    === Mounting Source Index: 1
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    === Creating Edition: Enterprise
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Image Version: 10.0.26200.8875
    
    Pended operations ignored. When this image is next booted, these operations will be processed.
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Saving image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Setting the FLAGS property of image 3 to "Enterprise".
    Setting the DISPLAYNAME property of image 3 to "Windows 11 Enterprise".
    Setting the DISPLAYDESCRIPTION property of image 3 to "Windows 11 Enterprise".
    Setting the NAME property of image 3 to "Windows 11 Enterprise".
    Setting the DESCRIPTION property of image 3 to "Windows 11 Enterprise".
    
    === Unmounting Source Index: 1
    
    Deployment Image Servicing and Management tool
    Version: 10.0.28000.2336
    
    Image File : F:\uup-converter-wimlib-124\ISOFOLDER\sources\install.wim
    Image Index : 1
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    === Rebuilding install.wim . . .
    
    "ISOFOLDER\sources\install.wim" original size: 6870055 KiB
    Using LZX compression with 8 threads
    Archiving file data: 13 GiB of 13 GiB (100%) done
    "ISOFOLDER\sources\install.wim" optimized size: 6865118 KiB
    Space saved: 4937 KiB
    
    === Creating ISO . . .
    
    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 93 directories)
    Scanning source tree complete (1055 files in 98 directories)
    
    Computing directory information complete
    
    Image file is 7935229952 bytes (before optimization)
    
    Writing 1055 files in 98 directories to 26200.8875.260711-1841.25H2_GE_RELEASE_SVC_PROD1_CLIENTMULTI_X64FRE_RU-RU.ISO
    
    100% complete
    
    Storage optimization saved 65 files, 15425536 bytes (1% of image)
    
    After optimization, image file is 7922278400 bytes
    Space saved because of embedding, sparseness or optimization = 15425536
    
    Done.
    
    Finished.
    Press 0 or q to exit.

    thank you, this version works fine
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,673
    100,457
    340
  14. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,673
    100,457
    340
    W10UI v10.62

    - Add wlanapi.dll and mobilenetworking.dll to boot.wim for builds 26100+ to fix Recovery launch error

    thanks to @Enthousiast for testing
     
  15. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    55,203
    126,977
    450
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,673
    100,457
    340
  17. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,673
    100,457
    340
  18. Tiger-1

    Tiger-1 MDL Guru

    Oct 18, 2014
    8,365
    11,719
    270
    Hi abbodi1406 thanks more one time :worthy:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,673
    100,457
    340
    #4159 abbodi1406, Jul 29, 2026
    Last edited: Jul 29, 2026
    (OP)
  20. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    55,203
    126,977
    450
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...