abbodi1406's Batch Scripts Repo

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

  1. kandido

    kandido MDL Junior Member

    Jun 14, 2015
    60
    37
    0
    Thank You very much
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,204
    90,765
    340
  3. Senjanov

    Senjanov MDL Member

    Jul 29, 2011
    217
    44
    10
    abbodi, had you fix direct link W10UI_4.1(first link)? I try download then try offline update its still show W10UI_4.0
    but if second link is real show W10UI_4.1 when script opening

    also wanna ask if this code shows in script while updating..
    whats mean "All applicable updates are found installed"
    it show when updating winre.wim and boot.wim - index 1/2
    below update logs W10UI_4.1, before apply that 2 updates, I've updated servicing stack update.
    Code:
    ============================================================
    Running W10UI v4.1
    ============================================================
    
    ============================================================
    Extracting .cab files from .msu files
    ============================================================
    
    1/2: windows10.0-kb3161102-x64_2707817e3c3ae5c2451401355c699583694085c4.msu / Update to remove Windows Journal components
    2/2: windows10.0-kb3172729-x64_3721c0d77731ca564387070698812dd496810bd8.msu / Security update for Secure Boot
    
    ============================================================
    Extracting files from update cabinets (.cab)
    *** This will require some disk space, please be patient ***
    ============================================================
    
    1/2: Windows10.0-KB3161102-x64.cab
    2/2: Windows10.0-KB3172729-x64.cab
    
    ============================================================
    Mounting install.wim - index 1/1
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.16299.15
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.16299.15
    
    Image Version: 10.0.10240.17020
    
    Processing 1 of 2 - Adding package Package_for_KB3161102~31bf3856ad364e35~amd64~~10.0.1.3
    [==========================100.0%==========================]
    Processing 2 of 2 - Adding package Package_for_KB3172729~31bf3856ad364e35~amd64~~10.0.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Updating winre.wim
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.16299.15
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    All applicable updates are found installed
    
    Deployment Image Servicing and Management tool
    Version: 10.0.16299.15
    
    Image File : D:\Update Windows 10\W10UI_4.1\winre.wim
    Image Index : 1
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding updated winre.wim
    ============================================================
    
            1 file(s) copied.
    
    ============================================================
    Unmounting install.wim - index 1/1
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.16299.15
    
    Image File : D:\Burn\windows 10 1507 RTM\esd-decrypter-wimlib-7_0\10240_x64_dvd\sources\install.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Rebuilding install.wim
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.16299.15
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.16299.15
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    All applicable updates are found installed
    
    ============================================================
    Unmounting boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.16299.15
    
    Image File : D:\Burn\windows 10 1507 RTM\esd-decrypter-wimlib-7_0\10240_x64_dvd\sources\boot.wim
    Image Index : 1
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.16299.15
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    All applicable updates are found installed
    
    ============================================================
    Unmounting boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.16299.15
    
    Image File : D:\Burn\windows 10 1507 RTM\esd-decrypter-wimlib-7_0\10240_x64_dvd\sources\boot.wim
    Image Index : 2
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Rebuilding boot.wim
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.16299.15
    
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Removing temporary extracted files...
    ============================================================
    
    
    ============================================================
       Finished
    ============================================================
    
    
    Press any key to exit.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,656
    103,453
    450
    #204 Enthousiast, Dec 17, 2017
    Last edited: Dec 17, 2017
    The updates you are integrating are not meant for winpe (not for boot.wim nor winre.wim).
    So the message "All applicable updates are found installed" when the script checks the winpe images, is because of the 2 updates not being applicable on those mounted wim files.

    kb3161102
    Code:
    ApplicabilityInfo="Windows 10.0 Client;Windows 10.0 Server Core;Windows 10.0 Server;"
    KB3172729
    Code:
    ApplicabilityInfo="Windows 10.0 Client;"
    BTW:
    KB3172729 is one of a set of 2:
    [​IMG]
    kb3173428 would be applicable to winpe images.
    Code:
    ApplicabilityInfo="Windows 10.0 Client;Windows 10.0 WinPE;"
     
  5. Senjanov

    Senjanov MDL Member

    Jul 29, 2011
    217
    44
    10
    I see, that why show it..
    thank you Enthousiast..

    by the way, there happens to be something I want to ask you, Error: 0x8000ffff and error 0x800f0922 when using W10UI_4.1. this time only use SSU kb3173427, CU kb4032695 and Flash kb4053577. for flash i admit the error because it was update for LTSB or maybe not (for all 10240). and to log the script W10UI_4.1 I forgot to not record it for the whole error when the third update applying in script. windows 10240 but not LTSB. can you tried it?

    question 2, I tried integrated update but my laptop sleep while process, then resume it while I know that my laptop sleep, what happen then? I'll try it updated iso in vm first. in this session different version windows.. while quention 1 using 10240 and question 2 is 16299
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,656
    103,453
    450
    10240 aka 1507 is not supported anymore, 2015 LTSB only, the updates won't take on the other sku's.
     
  7. Senjanov

    Senjanov MDL Member

    Jul 29, 2011
    217
    44
    10
    I dont mind that, but kb4032695 I think last update before service end by microsoft.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,204
    90,765
    340
    10240 CU can't be integrated offline since August 2016 one, due a bug in SSU
    Microsoft doesn't seem interested to fix it
     
  9. l33tissw00t

    l33tissw00t MDL Addicted

    Dec 6, 2012
    819
    522
    30
    @abbodi1406 , can I use ESD>WIM :

    3- ISO with 1 shared serviceable install.wim (smaller overall size)
    this will combine both architectures images into one install.wim, which will be duplicated in each architecture directory,
    then, ISO optimization feature is used to reduce the overall size by storing it once (shared file)


    and then add 2nd language to both arch's?

    for example, will this work:
    use above option 3 with en_us x64 & x86
    integrate en_uk with W10MUI to above wim?

    final product to be:
    index 1: en_us x64
    index 2: en_us x86
    index 3: en_uk x64
    index 4: en_uk x86

    i'm assuming yes based on:
    [​IMG]
     
  10. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,204
    90,765
    340
    You can add another language to multi-arch install.wim
    where each index will be multlingual, not each index have different language
    i.e.
    index 1: en_us/en-uk x64
    index 2: en_us/en-uk x86


    sure you can use ESD2WIM-WIM2ESD to combine any indexes you want and with whatever language
    but you have to use one lang.ini file that have all languages
    and in setup window, select the language that match the index language you will be choose
     
  11. l33tissw00t

    l33tissw00t MDL Addicted

    Dec 6, 2012
    819
    522
    30
    @abbodi1406 thank you for replying.

    I've currently downloaded en_us x64 and x86 ESD's.
    then did 3- ISO with 1 shared serviceable install.wim (smaller overall size)

    However, when running MUI, it errors that no sources/install.wim
    which is because install.wim is in x64 and x86

    i see you wrote to update each individually (in readme), but im not sure how to go about that.

    can you please suggest what's the best way to get in 1 ISO:

    en_us x86
    en_us x64
    lang2 x86
    lang2 x64

    really appreciate it, sorry for asking of your time!
     
  12. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,656
    103,453
    450
    #212 Enthousiast, Dec 20, 2017
    Last edited: Dec 20, 2017
    Afaik, it doesn't work directly on the multi-arch iso.

    Download the esd's, convert them to 1 iso (as desired), and extract the install.wim (or all files inside the folder) to the W10MUI project folder and run the project after setting the script to your needs.

    When all LP's are integrated, replace the install.wim files on the multi-arch iso with the newly made one.
     
  13. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,204
    90,765
    340
    You need first to manually extract the multi-arch ISO
    then choose x86 or x64 folder as distribution path with W10MUI

    why don't you combine languages?
    i never tried your scenario, and it's hard to accompilsh, and require a lot of manual commands
    specially modifying boot.wim files
     
  14. l33tissw00t

    l33tissw00t MDL Addicted

    Dec 6, 2012
    819
    522
    30
  15. l33tissw00t

    l33tissw00t MDL Addicted

    Dec 6, 2012
    819
    522
    30
    Okay, now I remember how I did it last time. I didn't want to do LP's. I wanted original wim's for each language. So for example:

    merged:
    en_us install.wim
    ar_sa install.wim

    but wouldnt boot because boot.wim only had en_us.
    so i used your tool to fix boot.wim to support both langs.

    make sense?
     
  16. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,204
    90,765
    340
    Yes, that would do it
    modifying boot.wim is the tricky part
     
  17. l33tissw00t

    l33tissw00t MDL Addicted

    Dec 6, 2012
    819
    522
    30
    Thankfully there's this guy abbodi1406 that created a really cool script that helps me with that :)
     
  18. armond

    armond MDL Addicted

    Jun 16, 2008
    737
    237
    30
    Hey abbodi1406,
    Hope this finds you very well.
    So I have an idea here:
    I got used of your scripts in this order, to create a fully up-to-date ISO folder:
    esd-decrypter, W10UI, and also ESD2WIM
    Could you create a separate script just for creating ISO file from the final folder? Yes, W10UI can creat ISO, but I'd like to have install.esd in it.
    Thanks as always.
     
  19. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,656
    103,453
    450
    Why not just let W10UI create the iso, extract the install.wim, compress it to install.esd and open the iso with ultraiso and replace the wim with the .esd?
     
  20. armond

    armond MDL Addicted

    Jun 16, 2008
    737
    237
    30
    #220 armond, Dec 22, 2017
    Last edited: Dec 23, 2017
    Not a good idea IMO. I can use Oscdimg in the end instead.
    Don't like to pay for a 3rd party app when I can get better result for free.
    Edit: Also I see MSMG ToolKit does it very well. Still prefer abbodi1406's work, though.