abbodi1406's Batch Scripts Repo

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

  1. fch1993

    fch1993 MDL Senior Member

    Mar 14, 2020
    367
    267
    10
    if I delete some .esd to 99 it will works.

    Seems the number of image choosing limited to 0-99 that cause the issue.
     
  2. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,256
    94,678
    450
    What exactly will work? What do you want to create using all the esd files in one run?
     
  3. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,197
    84,765
    340
  4. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,197
    84,765
    340
  5. fch1993

    fch1993 MDL Senior Member

    Mar 14, 2020
    367
    267
    10
    #1345 fch1993, Mar 16, 2021
    Last edited: Mar 16, 2021
    @abbodi1406

    uup-converter v56 still add LCU to winre.com even if DU for SafeOS installed.

    example: Windows 10 19043.899 amd64

    When use W10UI to add update:

    Code:
    ============================================================
    Updating winre.wim
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.1
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack~31bf3856ad364e35~amd64~~19041.897.1.2
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.1
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_KB5000983~31bf3856ad364e35~amd64~~10.0.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.1
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_KB5000736~31bf3856ad364e35~amd64~~10.0.1.3
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.1
    
    Image Version: 10.0.19041.1
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.1
    
    Image Version: 10.0.19041.1
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.1
    
    Image File : D:\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.19041.1
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding updated winre.wim
    ============================================================
    
    When use uup-converter to add update:

    Code:
    ============================================================
    Updating winre.wim / 1 image(s) . . .
    ============================================================
    
    1/10: defender-dism-x64.cab
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack~31bf3856ad364e35~amd64~~19041.897.1.2
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_KB5000983~31bf3856ad364e35~amd64~~10.0.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_KB5000736~31bf3856ad364e35~amd64~~10.0.1.3
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.899.1.8
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.19041.899
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image File : C:\Softwares\uup-converter-wimlib\temp\winre.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    "temp\winre.wim" original size: 739606 KiB
    Using LZX compression with 16 threads
    Archiving file data: 1132 MiB of 1132 MiB (100%) done
    "temp\winre.wim" optimized size: 484054 KiB
    Space saved: 255551 KiB
    
    ============================================================
    Adding winre.wim to install.wim . . .
    ============================================================
    
     
  6. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,197
    84,765
    340
    @fch1993
    UUP boot.wim is made from winre.wim
    thus it's updated with LCU once, instead updating both files
     
  7. fch1993

    fch1993 MDL Senior Member

    Mar 14, 2020
    367
    267
    10
    If I open the ForceDism option, will it have the same action as W10UI?
    I have Windows 10 2004 ADK on my computer.
    "Use the official method with dism.exe for creating boot.wim, which require Windows 10 Host OS or ADK."
     
  8. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,197
    84,765
    340
    No, winre.wim still updated
     
  9. fch1993

    fch1993 MDL Senior Member

    Mar 14, 2020
    367
    267
    10
  10. fch1993

    fch1993 MDL Senior Member

    Mar 14, 2020
    367
    267
    10
    #1350 fch1993, Mar 18, 2021
    Last edited: Mar 18, 2021
    @abbodi1406

    About create_virtual_editions.cmd in uup-converter-wimlib

    If I want to add new SKU of Windows 10 such as Pro single language(ProfessionalSingleLanguage), Is there any guide on how to edit the cmd file?

    I changed sth like this is that right?
     

    Attached Files:

  11. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,197
    84,765
    340
    @fch1993
    if you can capture required registry values, then go ahead
     
  12. fch1993

    fch1993 MDL Senior Member

    Mar 14, 2020
    367
    267
    10
    When using "uup-converter-wimlib" convert images I found sth strange happened.

    The display name & display description of the base images are empty but the converted images have those info.
     
  13. Gloeyisk

    Gloeyisk MDL Member

    Sep 2, 2020
    107
    14
    10
    #1353 Gloeyisk, Mar 18, 2021
    Last edited: Mar 18, 2021
    Deleted.
     
  14. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,331
    7,048
    210
    Creating ProSingleLanguage SKU is pointless ATM, as it is only a placeholder that cannot be activated nor updated. When I ever have to create ProSL again, I'll use WES by @s1ave77 (also using it to sort and optimize WIM/ESD entries).
     
  15. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,197
    84,765
    340
  16. OldMX

    OldMX MDL Addicted

    Jul 30, 2009
    538
    229
    30
    abbodi1406
    May I suggest to autocreate the .log file when process is done on W10UI my friend?
     
  17. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,197
    84,765
    340
    Due some limitation, it's either on screen progress, or debug log
    doing both will make things complicated
     
  18. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,331
    7,048
    210
  19. fch1993

    fch1993 MDL Senior Member

    Mar 14, 2020
    367
    267
    10
    #1359 fch1993, Mar 29, 2021
    Last edited: Mar 29, 2021
    @abbodi1406

    Is that a bug of uup-converter-wimlib?

    When I create the "Windows 10 Version 1809 (17763.1852) amd64" image: https://www.uupdump.net/download.ph...edition=core;coren;professional;professionaln

    no update is installed for all edition. It's still 17763.1.

    ConvertConfig.ini
    Code:
    [convert-UUP]
    AutoStart    =1
    AddUpdates   =1
    Cleanup      =0
    ResetBase    =0
    NetFx3       =0
    StartVirtual =1
    wim2esd      =0
    SkipISO      =0
    SkipWinRE    =0
    ForceDism    =0
    RefESD       =0
    
    [create_virtual_editions]
    vAutoStart   =1
    vDeleteSource=0
    vPreserve    =0
    vwim2esd     =0
    vSkipISO     =0
    vAutoEditions=CoreSingleLanguage,ProfessionalWorkstation,ProfessionalEducation,Education,Enterprise,ServerRdsh
    




    Code:
    ============================================================
    Running UUP -> ISO v56
    ============================================================
    
    ============================================================
    Checking UUP Info . . .
    ============================================================
    
    ============================================================
    Configured Options . . .
    ============================================================
    
    AutoStart 1
    AddUpdates 1
    StartVirtual
    
    ============================================================
    Preparing Reference ESDs . . .
    ============================================================
    
    CAB->ESD: microsoft-onecore-applicationmodel-sync-desktop-fod-package-amd64
    CAB->ESD: microsoft-windows-hello-face-migration-package-amd64
    CAB->ESD: microsoft-windows-hello-face-package-amd64
    CAB->ESD: microsoft-windows-internetexplorer-optional-package-amd64
    CAB->ESD: microsoft-windows-languagefeatures-basic-en-us-package-amd64
    CAB->ESD: microsoft-windows-languagefeatures-handwriting-en-us-package-amd64
    CAB->ESD: microsoft-windows-languagefeatures-ocr-en-us-package-amd64
    CAB->ESD: microsoft-windows-languagefeatures-speech-en-us-package-amd64
    CAB->ESD: microsoft-windows-languagefeatures-texttospeech-en-us-package-amd64
    CAB->ESD: microsoft-windows-mediaplayer-package-amd64
    CAB->ESD: microsoft-windows-quickassist-package-amd64
    CAB->ESD: microsoft-windows-tabletpcmath-package-amd64
    CAB->ESD: openssh-client-package-amd64
    
    ============================================================
    Creating Setup Media Layout . . .
    ============================================================
    
    
    ============================================================
    Creating install.wim . . .
    ============================================================
    
    Using LZX compression with 8 threads
    Archiving file data: 7306 MiB of 7306 MiB (100%) done
    Using LZX compression with 8 threads
    Archiving file data: 246 MiB of 246 MiB (100%) done
    Using LZX compression with 8 threads
    Archiving file data: 201 MiB of 201 MiB (100%) done
    Using LZX compression with 8 threads
    Archiving file data: 216 MiB of 216 MiB (100%) done
    
    ============================================================
    Updating install.wim / 4 image(s) . . .
    ============================================================
    
    1/2: windows10.0-kb5000854-x64.cab [LCU]
    2/2: windows10.0-kb5000859-x64.cab [SSU]
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - Adding package Package_for_KB5000859~31bf3856ad364e35~amd64~~17763.1812.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.17763.1
    
    An error occurred trying to open - C:\W10UItemp\windows10.0-kb5000854-x64\update.mum Error: 0x800f0823
    The specified package cannot be added to this Windows Image due to a version mismatch.
    Update the Windows image and try the operation again.
    
    Error: 0x800f0823
    
    The specified package cannot be added to this Windows Image due to a version mismatch.
    Update the Windows image and try the operation again.
    
    The DISM log file can be found at C:\WINDOWS\Logs\DISM\DismLCU.log
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image File : C:\Users\Administrator\Downloads\17763.1852_amd64_en-us_multi_49ae30d9_convert_virtual\ISOFOLDER\sources\install.wim
    Image Index : 1
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Creating winre.wim . . .
    ============================================================
    
    Using LZX compression with 8 threads
    Archiving file data: 959 MiB of 959 MiB (100%) done
    
    ============================================================
    Adding winre.wim to install.wim . . .
    ============================================================
    
    
    ============================================================
    Creating boot.wim . . .
    ============================================================
    
    
    ============================================================
    Checking Distribution Info . . .
    ============================================================
    
    ============================================================
    Configured Virtual Options . . .
    ============================================================
    
    AutoStart
    AutoEditions: CoreSingleLanguage,ProfessionalWorkstation,ProfessionalEducation,Education,Enterprise,ServerRdsh
    
    ============================================================
    Copying install.wim . . .
    ============================================================
    
    ============================================================
    Creating Edition: Home Single Language
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 3 to "CoreSingleLanguage".
    Setting the FLAGS property of image 3 to "CoreSingleLanguage".
    Setting the DISPLAYNAME property of image 3 to "Windows 10 Home Single Language".
    Setting the DISPLAYDESCRIPTION property of image 3 to "Windows 10 Home Single Language".
    
    ============================================================
    Rebuilding install.wim . . .
    ============================================================
    
    "ISOFOLDER\sources\install.wim" original size: 3668403 KiB
    Using LZX compression with 8 threads
    Archiving file data: 7934 MiB of 7934 MiB (100%) done
    "ISOFOLDER\sources\install.wim" optimized size: 3493933 KiB
    Space saved: 174469 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 (500 files in 36 directories)
    Scanning source tree complete (943 files in 85 directories)
    
    Computing directory information complete
    
    Image file is 4247977984 bytes (before optimization)
    
    Writing 943 files in 85 directories to 17763.1.180914-1434.RS5_RELEASE_CLIENTMULTI_X64FRE_EN-US.ISO
    
    100% complete
    
    Storage optimization saved 5 files, 190464 bytes (0% of image)
    
    After optimization, image file is 4249886720 bytes
    Space saved because of embedding, sparseness or optimization = 190464
    
    Done.
    
    
    download all files and run with stand-alone uup-converter-wimlib got error end.

    Code:
    ============================================================
    Running UUP -> ISO v56
    ============================================================
    
    ============================================================
    Checking UUP Info . . .
    ============================================================
    
    ============================================================
    Configured Options . . .
    ============================================================
    
    AutoStart 1
    AddUpdates 1
    StartVirtual
    
    ============================================================
    Preparing Reference ESDs . . .
    ============================================================
    
    CAB->ESD: microsoft-onecore-applicationmodel-sync-desktop-fod-package-amd64
    CAB->ESD: microsoft-windows-hello-face-migration-package-amd64
    CAB->ESD: microsoft-windows-hello-face-package-amd64
    CAB->ESD: microsoft-windows-internetexplorer-optional-package-amd64
    CAB->ESD: microsoft-windows-languagefeatures-basic-en-us-package-amd64
    CAB->ESD: microsoft-windows-languagefeatures-handwriting-en-us-package-amd64
    CAB->ESD: microsoft-windows-languagefeatures-ocr-en-us-package-amd64
    CAB->ESD: microsoft-windows-languagefeatures-speech-en-us-package-amd64
    CAB->ESD: microsoft-windows-languagefeatures-texttospeech-en-us-package-amd64
    CAB->ESD: microsoft-windows-mediaplayer-package-amd64
    CAB->ESD: microsoft-windows-quickassist-package-amd64
    CAB->ESD: microsoft-windows-tabletpcmath-package-amd64
    CAB->ESD: openssh-client-package-amd64
    
    ============================================================
    Creating Setup Media Layout . . .
    ============================================================
    
    
    ============================================================
    Creating install.wim . . .
    ============================================================
    
    Using LZX compression with 8 threads
    Archiving file data: 7306 MiB of 7306 MiB (100%) done
    Using LZX compression with 8 threads
    Archiving file data: 246 MiB of 246 MiB (100%) done
    Using LZX compression with 8 threads
    Archiving file data: 201 MiB of 201 MiB (100%) done
    Using LZX compression with 8 threads
    Archiving file data: 216 MiB of 216 MiB (100%) done
    
    ============================================================
    Updating install.wim / 4 image(s) . . .
    ============================================================
    
    1/2: windows10.0-kb5000854-x64.cab [LCU]
    2/2: windows10.0-kb5000859-x64.cab [SSU]
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - Adding package Package_for_KB5000859~31bf3856ad364e35~amd64~~17763.1812.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.17763.1
    
    An error occurred trying to open - C:\W10UItemp\windows10.0-kb5000854-x64\update.mum Error: 0x800f0823
    The specified package cannot be added to this Windows Image due to a version mismatch.
    Update the Windows image and try the operation again.
    
    Error: 0x800f0823
    
    The specified package cannot be added to this Windows Image due to a version mismatch.
    Update the Windows image and try the operation again.
    
    The DISM log file can be found at C:\WINDOWS\Logs\DISM\DismLCU.log
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image File : C:\Users\Administrator\Downloads\17763.1852_amd64_en-us_multi_49ae30d9_convert_virtual\ISOFOLDER\sources\install.wim
    Image Index : 1
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Creating winre.wim . . .
    ============================================================
    
    'wimlib-imagex.exe' is not recognized as an internal or external command,
    operable program or batch file.
    
    Errors were reported during export.
    
    Press 0 to exit.
    
    
     
  20. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,256
    94,678
    450
    Only 17763 Enterprise (probably education too) and Server/Enterprise 2019 LTSC are still supported and will accept updates.