abbodi1406's Batch Scripts Repo

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

  1. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,191
    84,706
    340
  2. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,328
    7,044
    210
    Small typo in line 15: unintalled > uninstalled

    All good, otherwise.
     
  3. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,191
    84,706
    340
  4. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,191
    84,706
    340
  5. alnaloty

    alnaloty MDL Novice

    Aug 29, 2009
    44
    15
    0
    can u add create script to change picture of background of windows setup ?

    as this
    [​IMG]

    its only change in

    1- boot.wim


    setup.bmp
    in
    Windows\System32

    2-install.wim

    - change picture in spwizimg.dll
    - change background.bmp
     
  6. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,191
    84,706
    340
  7. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,681
    1,929
    60


    for what do you need something like that, for 1x installation
    or to show at school *g
     
  8. alnaloty

    alnaloty MDL Novice

    Aug 29, 2009
    44
    15
    0
    #1249 alnaloty, Oct 21, 2020
    Last edited: Oct 21, 2020
    nice work . thank u so much

    its work 100%
    just script need to run as administrator
     
  9. alnaloty

    alnaloty MDL Novice

    Aug 29, 2009
    44
    15
    0
    i need script to only mount
    no just for 100x installation & to show at house *g
     
  10. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,191
    84,706
    340
    YAOCTRU v7.3

    - Expanded TLS 1.2 enable workaround for all Windows OS
     
  11. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,191
    84,706
    340
  12. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,191
    84,706
    340
    W10UI v8.9

    - Improved processing for 20H2 Enablement/EdgeChromium package

    SkipEdge=0
    20H2Enablement-Package will be added separately with regular updates (like v8.8)
    KB4562830 will be added normally (Install pending)

    SkipEdge=1
    KB4562830 will be added with workaround (no pending, Edge installer suppressed)

    - Added ESU support to install Win10 v1607 updates for unsupported editions (non Enterprise LTSB)

    - Fixed detection for Adobe Flash Removal Update KB4577586

    - Defender update (defender-dism-[x86|x64].cab) will not be processed for online live OS

    thanks to @Enthousiast for testing
     
  13. Hasefroch

    Hasefroch MDL Senior Member

    Dec 24, 2018
    283
    170
    10
    Hello to all. Win8.1UI works perfectly for integrating the updates for W8.1, but when I mark the options Cleanup System Image and Reset Base it does nothing of these. The ISO weighs almost 6GB. It is a bug on W8.1UI or do I need to install anything? I used Win8.1 and Win10 as host OS, and I placed the cdimage.exe next to the script
     
  14. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,191
    84,706
    340
    Integrate updates = install pending = no offline cleanup

    install in audit mode + run online cleanup/resetbase + sysprep + capture new install.wim
     
  15. MUKESH

    MUKESH MDL Junior Member

    Sep 1, 2011
    61
    31
    0
    1.Settings Chosen :
    [​IMG]
    [​IMG]
    Code:
    ============================================================
    Running UUP -> ISO v51
    ============================================================
    
    ============================================================
    Checking UUP Info . . .
    ============================================================
    
    ============================================================
    Configured Options . . .
    ============================================================
    
    AutoStart 1
    StartVirtual
    
    ============================================================
    Preparing Reference ESDs . . .
    ============================================================
    
    CAB->ESD: microsoft-onecore-applicationmodel-sync-desktop-fod-package-amd64
    CAB->ESD: microsoft-onecore-directx-database-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-mspaint-fod-package-amd64
    CAB->ESD: microsoft-windows-notepad-fod-package-amd64
    CAB->ESD: microsoft-windows-powershell-ise-fod-package-amd64
    CAB->ESD: microsoft-windows-printing-pmcppc-fod-package-amd64
    CAB->ESD: microsoft-windows-printing-wfs-fod-package-amd64
    CAB->ESD: microsoft-windows-quickassist-package-amd64
    CAB->ESD: microsoft-windows-stepsrecorder-package-amd64
    CAB->ESD: microsoft-windows-tabletpcmath-package-amd64
    CAB->ESD: microsoft-windows-userexperience-desktop-package-amd64
    CAB->ESD: microsoft-windows-wordpad-fod-package-amd64
    CAB->ESD: openssh-client-package-amd64
    
    ============================================================
    Creating Setup Media Layout . . .
    ============================================================
    
    
    ============================================================
    Creating install.wim . . .
    ============================================================
    
    Using LZX compression with 4 threads
    Archiving file data: 7202 MiB of 7202 MiB (100%) done
    Using LZX compression with 4 threads
    Archiving file data: 244 MiB of 244 MiB (100%) done
    Using LZX compression with 4 threads
    Archiving file data: 197 MiB of 197 MiB (100%) done
    Using LZX compression with 4 threads
    Archiving file data: 223 MiB of 223 MiB (100%) done
    
    ============================================================
    Creating winre.wim . . .
    ============================================================
    
    Using LZX compression with 4 threads
    Archiving file data: 971 MiB of 971 MiB (100%) done
    
    ============================================================
    Adding winre.wim to install.wim . . .
    ============================================================
    
    
    ============================================================
    Creating boot.wim . . .
    ============================================================
    
    
    ============================================================
    Checking Distribution Info . . .
    ============================================================
    
    ============================================================
    Configured Virtual Options . . .
    ============================================================
    
    AutoStart
    AutoEditions: Enterprise,Education,ProfessionalEducation,ProfessionalWorkstation,EnterpriseN,EducationN,ProfessionalEducationN,ProfessionalWorkstationN,CoreSingleLanguage,ServerRdsh,IoTEnterprise,IoTEnterpriseS
    
    ============================================================
    Copying install.wim . . .
    ============================================================
    
    ============================================================
    Creating Edition: Enterprise
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 5 to "Enterprise".
    Setting the FLAGS property of image 5 to "Enterprise".
    Setting the DISPLAYNAME property of image 5 to "Windows 10 Enterprise".
    Setting the DISPLAYDESCRIPTION property of image 5 to "Windows 10 Enterprise".
    
    ============================================================
    Creating Edition: Education
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 6 to "Education".
    Setting the FLAGS property of image 6 to "Education".
    Setting the DISPLAYNAME property of image 6 to "Windows 10 Education".
    Setting the DISPLAYDESCRIPTION property of image 6 to "Windows 10 Education".
    
    ============================================================
    Creating Edition: Pro Education
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 7 to "ProfessionalEducation".
    Setting the FLAGS property of image 7 to "ProfessionalEducation".
    Setting the DISPLAYNAME property of image 7 to "Windows 10 Pro Education".
    Setting the DISPLAYDESCRIPTION property of image 7 to "Windows 10 Pro Education".
    
    ============================================================
    Creating Edition: Pro for Workstations
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 8 to "ProfessionalWorkstation".
    Setting the FLAGS property of image 8 to "ProfessionalWorkstation".
    Setting the DISPLAYNAME property of image 8 to "Windows 10 Pro for Workstations".
    Setting the DISPLAYDESCRIPTION property of image 8 to "Windows 10 Pro for Workstations".
    
    ============================================================
    Creating Edition: Enterprise N
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 9 to "EnterpriseN".
    Setting the FLAGS property of image 9 to "EnterpriseN".
    Setting the DISPLAYNAME property of image 9 to "Windows 10 Enterprise N".
    Setting the DISPLAYDESCRIPTION property of image 9 to "Windows 10 Enterprise N".
    
    ============================================================
    Creating Edition: Education N
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 10 to "EducationN".
    Setting the FLAGS property of image 10 to "EducationN".
    Setting the DISPLAYNAME property of image 10 to "Windows 10 Education N".
    Setting the DISPLAYDESCRIPTION property of image 10 to "Windows 10 Education N".
    
    ============================================================
    Creating Edition: Pro Education N
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 11 to "ProfessionalEducationN".
    Setting the FLAGS property of image 11 to "ProfessionalEducationN".
    Setting the DISPLAYNAME property of image 11 to "Windows 10 Pro Education N".
    Setting the DISPLAYDESCRIPTION property of image 11 to "Windows 10 Pro Education N".
    
    ============================================================
    Creating Edition: Pro N for Workstations
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 12 to "ProfessionalWorkstationN".
    Setting the FLAGS property of image 12 to "ProfessionalWorkstationN".
    Setting the DISPLAYNAME property of image 12 to "Windows 10 Pro N for Workstations".
    Setting the DISPLAYDESCRIPTION property of image 12 to "Windows 10 Pro N for Workstations".
    
    ============================================================
    Creating Edition: Home Single Language
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 13 to "CoreSingleLanguage".
    Setting the FLAGS property of image 13 to "CoreSingleLanguage".
    Setting the DISPLAYNAME property of image 13 to "Windows 10 Home Single Language".
    Setting the DISPLAYDESCRIPTION property of image 13 to "Windows 10 Home Single Language".
    
    ============================================================
    Creating Edition: Enterprise for Virtual Desktops
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 14 to "ServerRdsh".
    Setting the FLAGS property of image 14 to "ServerRdsh".
    Setting the DISPLAYNAME property of image 14 to "Windows 10 Enterprise for Virtual Desktops".
    Setting the DISPLAYDESCRIPTION property of image 14 to "Windows 10 Enterprise for Virtual Desktops".
    
    ============================================================
    Creating Edition: IoT Enterprise
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 15 to "IoTEnterprise".
    Setting the FLAGS property of image 15 to "IoTEnterprise".
    Setting the DISPLAYNAME property of image 15 to "Windows 10 IoT Enterprise".
    Setting the DISPLAYDESCRIPTION property of image 15 to "Windows 10 IoT Enterprise".
    
    ============================================================
    Rebuilding install.wim . . .
    ============================================================
    
    "ISOFOLDER\sources\install.wim" original size: 3896286 KiB
    Using LZX compression with 4 threads
    Archiving file data: 8996 MiB of 8996 MiB (100%) done
    "ISOFOLDER\sources\install.wim" optimized size: 3753987 KiB
    Space saved: 142299 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 41 directories)
    Scanning source tree complete (899 files in 85 directories)
    
    Computing directory information complete
    
    Image file is 4525752320 bytes (before optimization)
    
    Writing 899 files in 85 directories to 19041.1.191206-1406.VB_RELEASE_CLIENTMULTI_X64FRE_EN-US.ISO
    
    100% complete
    
    Storage optimization saved 25 files, 14200832 bytes (1% of image)
    
    After optimization, image file is 4513589248 bytes
    Space saved because of embedding, sparseness or optimization = 14200832
    
    Done.
    
    
    Press 0 to exit.
    
    Here, in the list of additional editions it also shows the edition - "IoT EnterpriseS" but it does not gets created.
    Also, i cross checked the whole thing with the details provided by enthousiast in the post no.2888, page no.145 of the thread - Windows 10 ESD Repository and things were the same. is this normal that the IoT EnterpriseS edition does not gets created?

    2.When specifically locating the install.wim file as the Target, W10UI 8.9 wrongly shows the dism version as 10.0.19041.1 on a 10 17763.1554 Host OS only at the point of mounting the image ( see the code section below for details ). apart from that the rest of the things looks fine.

    Settings Chosen :
    [​IMG]

    Code:
    ============================================================
    Running W10UI v8.9
    ============================================================
    
    ============================================================
    Extracting .cab files from .msu files
    ============================================================
    
    1/5: Windows10.0-KB4562830-x64.msu
    2/5: Windows10.0-KB4577266-x64.msu
    3/5: windows10.0-kb4580325-x64_b6e8f5b34fd68a4e3c29a540000327f6d0675a7f.msu
    4/5: Windows10.0-KB4580364-x64.msu
    5/5: Windows10.0-KB4580419-x64-NDP48.msu
    
    ============================================================
    Extracting files from update cabinets (.cab)
    *** This will require some disk space, please be patient ***
    ============================================================
    
    1/6: defender-dism-x64.cab
    2/6: Windows10.0-KB4562830-x64_PSFX.cab [Enablement / EdgeChromium]
    3/6: Windows10.0-KB4577266-x64.cab [SSU]
    4/6: Windows10.0-KB4580325-x64.cab [Flash]
    5/6: Windows10.0-KB4580364-x64_PSFX.cab [LCU]
    6/6: Windows10.0-KB4580419-x64-NDP48.cab [NetFx]
    
    ============================================================
    Mounting install.wim - index 15/15
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1518
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_KB4577266~31bf3856ad364e35~amd64~~19041.504.1.2
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1518
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 3 - Adding package Microsoft-Windows-20H2Enablement-Package~31bf3856ad364e35~amd64~~10.0.19041.479
    [==========================100.0%==========================]
    Processing 2 of 3 - Adding package Package_for_KB4580325~31bf3856ad364e35~amd64~~10.0.1.0
    [==========================100.0%==========================]
    Processing 3 of 3 - Adding package Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.4270.2
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1518
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.610.1.11
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding Defender update...
    ============================================================
    
    
    ============================================================
    Installing EdgeChromium update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1518
    
    Image Version: 10.0.19042.610
    
    Processing 1 of 1 - Adding package Package_for_KB4562830~31bf3856ad364e35~amd64~~10.0.1.2
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding .NET Framework 3.5 feature
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1518
    
    Image Version: 10.0.19042.610
    
    Enabling feature(s)
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Reinstalling cumulative update(s)...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1518
    
    Image Version: 10.0.19042.610
    
    Processing 1 of 2 - Adding package Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.4270.2
    [==========================100.0%==========================]
    Processing 2 of 2 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.610.1.11
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Updating winre.wim
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1518
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1518
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_KB4577266~31bf3856ad364e35~amd64~~19041.504.1.2
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1518
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.610.1.11
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1518
    
    Image Version: 10.0.19041.610
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1518
    
    Image Version: 10.0.19041.610
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1518
    
    Image File : G:\WHDownloader\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.17763.1518
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding updated winre.wim
    ============================================================
    
            1 file(s) copied.
    
    ============================================================
    Unmounting install.wim - index 15/15
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1518
    
    Image File : D:\ISO1\sources\install.wim
    Image Index : 15
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Rebuilding install.wim
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.1
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Removing temporary extracted files...
    ============================================================
    
    
    ============================================================
       Finished
    ============================================================
    
    
    Press 9 to exit.
    
    NOTE :
    1.Source ISO : 19041.1.191206-1406.VB_RELEASE_CLIENTMULTI_X64FRE_EN-US.ISO created using the uup files from uupdump.ml ( See point 1 code section for details ).
    ( regarding point 2, only proceeded with the image 15 - IoT Enterprise ).
    2.Host OS : Windows 10 Professional 17763.1554 64-bit.
    3.uup-converter-wimlib-51.7z
    4.W10UI_8.9.zip
     
  16. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,191
    84,706
    340
    @MUKESH

    1- IoTEnterpriseS require EnterpriseS build 18298 or later, not yet available
    it exists in the script just as placeholder

    2- It's not technically wrong
    when mounting/rebuilding single install.wim target, W10UI change directory to install.wim location to to avoid path issues
    sources folder from ISO contain dism.exe which get used instead

    this does not affect the operation, both dism.exe versions mount/export wim files similary
     
  17. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,191
    84,706
    340
  18. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,681
    1,929
    60
    #1259 KleineZiege, Nov 9, 2020
    Last edited: Nov 9, 2020
    W10MUI v15 works very well :)

    Code:
    ============================================================
    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 9699131392 bytes (before optimization)
    
    Writing 29 files in 12 directories to mu_windows_10_19041_x64_de_ar_bg_cs_da_el_en-gb_en_es_es-mx_et_fi_fr-ca_fr_he_hr_hu_it_ja_ko_lt_lv_nb_nl_pl_pt_pp_ro_ru_sk_sl_sr-latn_sv_th_tr_uk_cn_ct.iso
    
    100% complete
    
    Storage optimization saved 4 files, 276480 bytes (1% of image)
    
    After optimization, image file is 9698926592 bytes
    Space saved because of embedding, sparseness or optimization = 276480
    
    Done.
    
    ============================================================
    Remove temporary directories
    ============================================================
    
    
    ============================================================
    Finished
    ============================================================
    9.03GB :D

    here my complete log is too big for the codebox * g
    https://easyupload.io/x659df

    only the iso designation is not exact, I created the languages with 19042.630
     

    Attached Files:

  19. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,681
    1,929
    60
    Testing W10MUI_15 English US
    mu_windows_10_19041_x64_de_ar_bg_cs_da_el_en-gb_en_es_es-mx_et_fi_fr-ca_fr_he_hr_hu_it_ja_ko_lt_lv_nb_nl_pl_pt_pp_ro_ru_sk_sl_sr-latn_sv_th_tr_uk_cn_ct.iso

    can you have a look at this.

    Could it be that I took the wrong version. 19042.630?
    instead of 19041.1

    The settings don't open for me.
    The initial ISO was a German version with 19042.630, which I created with W10UI_8.9.

    add video to download
    https://easyupload.io/igkor3