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,765
    450
    I've downloaded the 2 iso's and extracted the de-DE LP+FOD Cabs (i have 18362.1 ADK + PE Addons installed):

    [​IMG]

    Provided this 18362.1 ISO:
    Code:
    18362.1.190318-1202.19H1_RELEASE_CLIENTMULTI_UUP_X64FRE_EN-US.ISO
    Progress (1 left out the other 3 indexes):
    Code:
    
    ============================================================
    Prepare work directories
    ============================================================
    
    
    ============================================================
    Detect language packs details
    ============================================================
    
    de-DE: 64-bit {x64} - 18362
    
    ============================================================
    Copy Distribution contents to work directory
    ============================================================
    
    Source Path:
    "18362.1.190318-1202.19H1_RELEASE_CLIENTMULTI_UUP_X64FRE_EN-US.ISO"
    
    ============================================================
    Detect install.wim details
    ============================================================
    
    Build: 18362
    Count: 4 Image(s)
    Arch : 64-bit
    
    ============================================================
    Set WinPE language packs paths
    ============================================================
    
    de-DE / 64-bit
    
    ============================================================
    Extract language packs
    ============================================================
    
    de-DE / 64-bit
    
    ============================================================
    Mount install.wim - index 1/4
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Add LPs to install.wim - index 1/4
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.18362.1
    
    Processing 1 of 1 - Adding package Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~de-DE~10.0.18362.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.18362.1
    
    Processing 1 of 5 - Adding package Microsoft-Windows-LanguageFeatures-Basic-de-de-Package~31bf3856ad364e35~amd64~~10.0.18362.1
    [==========================100.0%==========================]
    Processing 2 of 5 - Adding package Microsoft-Windows-LanguageFeatures-TextToSpeech-de-de-Package~31bf3856ad364e35~amd64~~10.0.18362.1
    [==========================100.0%==========================]
    Processing 3 of 5 - Adding package Microsoft-Windows-LanguageFeatures-Handwriting-de-de-Package~31bf3856ad364e35~amd64~~10.0.18362.1
    [==========================100.0%==========================]
    Processing 4 of 5 - Adding package Microsoft-Windows-LanguageFeatures-OCR-de-de-Package~31bf3856ad364e35~amd64~~10.0.18362.1
    [==========================100.0%==========================]
    Processing 5 of 5 - Adding package Microsoft-Windows-LanguageFeatures-Speech-de-de-Package~31bf3856ad364e35~amd64~~10.0.18362.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Update language settings
    ============================================================
    
    
    ============================================================
    Update winre.wim / amd64
    ============================================================
    
            1 file(s) copied.
    
    ============================================================
    Mount winre.wim
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Add LPs to winre.wim
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.18362.1
    
    Processing 1 of 5 - Adding package Microsoft-Windows-WinPE-LanguagePack-Package~31bf3856ad364e35~amd64~de-DE~10.0.18362.1
    [==========================100.0%==========================]
    Processing 2 of 5 - Adding package WinPE-SRT-Package~31bf3856ad364e35~amd64~de-DE~10.0.18362.1
    [==========================100.0%==========================]
    Processing 3 of 5 - Adding package WinPE-HTA-Package~31bf3856ad364e35~amd64~de-DE~10.0.18362.1
    [==========================100.0%==========================]
    Processing 4 of 5 - Adding package WinPE-Rejuv-Package~31bf3856ad364e35~amd64~de-DE~10.0.18362.1
    [==========================100.0%==========================]
    Processing 5 of 5 - Adding package WinPE-StorageWMI-Package~31bf3856ad364e35~amd64~de-DE~10.0.18362.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Update language settings
    ============================================================
    
    
    ============================================================
    Unmount winre.wim
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image File : J:\W10MUI_11\TEMP\WR\amd64\winre.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Rebuild winre.wim
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Add updated winre.wim to install.wim - index 1/4
    ============================================================
    
            1 file(s) copied.
    
    ============================================================
    Unmount install.wim - index 1/4
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image File : J:\W10MUI_11\_DVD\sources\install.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ...............................
    
    ============================================================
    Mount boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Add LPs to boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.18362.1
    
    Processing 1 of 2 - Adding package Microsoft-Windows-WinPE-LanguagePack-Package~31bf3856ad364e35~amd64~de-DE~10.0.18362.1
    [==========================100.0%==========================]
    Processing 2 of 2 - Adding package WinPE-SRT-Package~31bf3856ad364e35~amd64~de-DE~10.0.18362.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.18362.1
    
    Processing 1 of 3 - Adding package WinPE-HTA-Package~31bf3856ad364e35~amd64~de-DE~10.0.18362.1
    [==========================100.0%==========================]
    Processing 2 of 3 - Adding package WinPE-Rejuv-Package~31bf3856ad364e35~amd64~de-DE~10.0.18362.1
    [==========================100.0%==========================]
    Processing 3 of 3 - Adding package WinPE-StorageWMI-Package~31bf3856ad364e35~amd64~de-DE~10.0.18362.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Update language settings
    ============================================================
    
    
    ============================================================
    Unmount boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image File : J:\W10MUI_11\_DVD\sources\boot.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mount boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Add LPs to boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.18362.1
    
    Processing 1 of 4 - Adding package Microsoft-Windows-WinPE-LanguagePack-Package~31bf3856ad364e35~amd64~de-DE~10.0.18362.1
    [==========================100.0%==========================]
    Processing 2 of 4 - Adding package WinPE-SRT-Package~31bf3856ad364e35~amd64~de-DE~10.0.18362.1
    [==========================100.0%==========================]
    Processing 3 of 4 - Adding package WinPE-Setup-Package~31bf3856ad364e35~amd64~de-DE~10.0.18362.1
    [==========================100.0%==========================]
    Processing 4 of 4 - Adding package WinPE-Setup-Client-Package~31bf3856ad364e35~amd64~de-DE~10.0.18362.1
    [==========================100.0%==========================]
    
    Error: 0x800f081e
    
    The specified package is not applicable to this image.
    The specified package is not applicable to this image.
    The command completed with errors.
    For more information, refer to the log file.
    
    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
    
    ============================================================
    Update language settings
    ============================================================
    
    
    ============================================================
    Unmount boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image File : J:\W10MUI_11\_DVD\sources\boot.wim
    Image Index : 2
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Rebuild boot.wim
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Rebuild install.wim
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Cleanup ISO payload
    ============================================================
    
    
    ============================================================
    Create 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
    Scanning source tree complete (29 files in 12 directories)
    
    Computing directory information complete
    
    Image file is 4323672064 bytes (before optimization)
    
    Writing 29 files in 12 directories to mu_windows_10_18362_x64_de_en.iso
    
    100% complete
    
    Storage optimization saved 4 files, 278528 bytes (1% of image)
    
    After optimization, image file is 4323463168 bytes
    Space saved because of embedding, sparseness or optimization = 278528
    
    Done.
    
    ============================================================
    Remove temporary directories
    ============================================================
    
    
    ============================================================
    Finished
    ============================================================
    
    Press any Key to Exit.
    
    
    @abbodi1406
    The script gives an error on boot.wim index:2

    It offers German at initial setup, but the setup images still are English-US, after the first reboot it's partially en-US and de-DE, Windows itself is in German:
    Pictures (read from bottom up)
     
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,900
    340
    That's expected with UUP boot.wim, because setup files are added manually, not real CBS packages

    W10MUI was designed to handle normal boot.wim, or old UUP boot.wim (1-index)

    i will see if i can fix that :)
     
  3. VittorM

    VittorM MDL Novice

    Jun 12, 2018
    1
    0
    0
    Thank you for such fantasticoolous work!!!
     
  4. vze2mp9g

    vze2mp9g MDL Addicted

    Oct 13, 2012
    660
    117
    30

    @Enthousiast

    Were you able to figure out the ISO's with the information I provided? Should I get riden of the two ISO's because I have no idea what the are.
    Thank you again.
     
  5. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,274
    94,765
    450
    My test and the reply by @abbodi1406 should inform you that all worked, but with ISO, originated from UUP files, some error will occur during the integration in boot.wim index2.
     
  6. vze2mp9g

    vze2mp9g MDL Addicted

    Oct 13, 2012
    660
    117
    30
    Okay, so what your saying if I use an original Win10 ISO, not from UUP files, everything should work fine? I tried to use the 18362-OnDemand-Rename.cmd and it did not rename anything. I was hoping that it would rename some files so I would see hand writing, OCR, speach, etc.

    I'm sorry for misunderstanding your original reply.
    Again, Thank you.
     
  7. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,274
    94,765
    450
    18362.30 needs re-installation of CU after integrating Languages. You could put the 18362.30 boot.wim into the 18362.1 UUP>ISO, or wait to see if @abbodi1406 can fix this for UUP>ISO boot.wim files.
     
  8. whatever127

    whatever127 MDL PHP Wizard

    Nov 9, 2012
    1,050
    7,345
    60
    I have a theoretical workaround to fix this:
    1. Get the WinPE-Setup_xx-XX.cab
    2. Extract only directories from it and merge their contents to single directory
    3. Rename directory to which the files were extracted to xx-xx (for example pl-pl)
    4. Add the xx-xx directory to the \sources in second index of boot.wim

    This is only theory, I have not tested this.

    Another way is to simply copy files from metadata UUP for desired language, but nobody sane will download metadata UUP which is 400MB to extract about 1MB of files.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,900
    340
    Main lang pack (for install.wim) contain \setup\sources\xx-XX, which stand place WinPE-Setup_xx-XX.cab (with few extra files and folders for iso\sources\)

    it is ment for such scenario (manual localization of boot.wim index 2)
     
  10. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,900
    340
  11. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,900
    340
  12. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,900
    340
    #752 abbodi1406, May 21, 2019
    Last edited: May 21, 2019
    (OP)
    Office Scrubber v4

    Added Uninstall_Keys.cmd and Uninstall_Licenses.cmd, to try to solve activation/licensing confliction without removing Office (thanks to @Windows_Addict for suggestion)
     
  13. vze2mp9g

    vze2mp9g MDL Addicted

    Oct 13, 2012
    660
    117
    30
    Hello,
    I need the Langs & On Demand download lists. I keep getting this error EMPTY_FILELIST
    I would really appreciate any and all assistance.
    Thank you...
     
  14. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,900
    340
    Try again
     
  15. vze2mp9g

    vze2mp9g MDL Addicted

    Oct 13, 2012
    660
    117
    30
    #755 vze2mp9g, May 26, 2019
    Last edited: May 26, 2019
  16. vze2mp9g

    vze2mp9g MDL Addicted

    Oct 13, 2012
    660
    117
    30
  17. whatever127

    whatever127 MDL PHP Wizard

    Nov 9, 2012
    1,050
    7,345
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,900
    340
    W10UI v6.5

    - Enhanced processing DU
    now if you choose install.wim (or boot.wim) as target from inside \sources\ folder, DU will be processed and extracted

    - Enhanced UUP boot.wim index 2 updating
    if DU is detected, \sources\ folder will be updated with newer files
     
  19. vze2mp9g

    vze2mp9g MDL Addicted

    Oct 13, 2012
    660
    117
    30
    Thank you for your quick reply. Last two questiosn:

    What is the query for language packs for the 64-bit for en-gb?

    What is the query for language feature for the 64-bit for en-gb?

    I appreciate all the help your provided.
    Thank You.