abbodi1406's Batch Scripts Repo

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

  1. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,900
    340
    No, the script is set to use system's dism if host os is Win 8.1 or later
    you may comment this line to use adk 8.1 on Win 10
    Code:
    if %winbuild% geq 9600 goto :mainmenu
     
  2. AeonX

    AeonX MDL Addicted

    May 24, 2013
    793
    719
    30
    Thank you so much :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,900
    340
    updated dotNetFx_AIO for XP
     
  4. mb_force

    mb_force MDL Junior Member

    Mar 24, 2017
    76
    12
    0
    HI, abbodi1406

    You will make a NetFX47 with update KB4043766, for W7?

    Thanks.
     
  5. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,900
    340
    Yes, ASAP
     
  6. mb_force

    mb_force MDL Junior Member

    Mar 24, 2017
    76
    12
    0
    #146 mb_force, Oct 11, 2017
    Last edited: Oct 11, 2017
    @echo off
    for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\sources\install.wim set CDROM=%%i:
    echo Found CD-Rom as drive %CDROM%
    ::Begin hotfix install

    :MSI
    echo Installing MSI
    IF EXIST %SystemRoot%\SysWOW64 start /wait %CDROM%\Files\windows10.0-kb4013214-x64.msi /Q
    IF NOT EXIST %SystemRoot%\SysWOW64 start /wait %CDROM%\Files\windows10.0-kb4013214-x86.msi /Q

    :Malicious software removal tool
    echo Installing Malicious Software Removal Tool
    IF EXIST %SystemRoot%\SysWOW64 start /wait %CDROM%\Files\windows-kb890830-x64.exe /Q
    IF NOT EXIST %SystemRoot%\SysWOW64 start /wait %CDROM%\Files\windows-kb890830-x86.exe /Q

    ::all processing finished, delete used files, and EXIT::
    :CLEANUP
    ::SHUTDOWN /R /T 60
    IF EXIST %windir%\Setup\scripts RD /S /Q %windir%\Setup\scripts >nul
    DEL /F /Q %0% >nul
    exit


    What i did wrong? abbodi?
    it takes more than two hours in wait a moment on instalation
     
  7. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,900
    340
    I do not know, never used any of these

    but kb4013214 may trigger WU scan for upgrade to ver 1703
     
  8. mb_force

    mb_force MDL Junior Member

    Mar 24, 2017
    76
    12
    0
    is not to ver 1703 , is for 1607 and 1511
     
  9. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,900
    340
    I know

    but it's to prepare current OS to upgrade to ver 1703

    it's better not to install it
     
  10. mb_force

    mb_force MDL Junior Member

    Mar 24, 2017
    76
    12
    0

    Oh ok,
    but when istall OS in updates, ask for it
    there is any way to not aks?
     
  11. harry_ds

    harry_ds MDL Novice

    Oct 7, 2017
    33
    10
    0
    hi @abbodi1406 thx for your nice hard work, btw can i req .NET Framework AIO for Windows XP x64 & Server 2003 x64?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,900
    340
    I only update ricktendo's pack, i don't have the knowledge to build one from scratch
    AFAIK, almost all .net updates after 2015 are x86 only
     
  13. °ツ

    °ツ MDL Addicted

    Jun 8, 2014
    816
    1,122
    30
    I thought that UUP > ISO also integrates the CU because it shows "CAB->ESD: Windows10.0-KB4043961-x64" but it does not integrate.......
     
  14. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,900
    340
    Just a converter :)
    any cbs cab file detected will be converted to esd, regardless if it's part of the final complete ESD or not
     
  15. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,900
    340
    W10UI 3.6

    Fixed (thanks @Enthousiast)
    if net35source is set manually, the script still try to check and find another source
     
  16. Senjanov

    Senjanov MDL Member

    Jul 29, 2011
    217
    44
    10
    installing update with W10UI safely,, do I need edit script for target OS : current OS(fall creator updates installed) not for creating my own iso
    like in here (Setting /resetbase to "1" will break the resetpc option, so best to set /resetbase to "0" and cleanup image to "1")
    or just leave it originally while I download it form your thread here. default your script is cleanup = 0 and resetbase = 0.

    just confused because old script not many advanced setting added.
    anyway, always thank you for your script and completely detailed about info windows update in your signature which kbxxx in w10, win8.1, etc also office 2016
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,900
    340
    Enthousiast suggestion is good

    what the options means is:
    cleanup=1 delta-compress superseded components
    Code:
    Dism /Online /Cleanup-Image /StartComponentCleanup
    resetbase=1 removes superseded components
    Code:
    Dism /Online /Cleanup-Image /StartComponentCleanup /ResetBase
     
  18. Senjanov

    Senjanov MDL Member

    Jul 29, 2011
    217
    44
    10
    so then if I want install .msu update on target is my current os.. just edited scrip with resetbase to 0 and cleanup image to 1 like Enthousiast suggestion? still confusing and little scary :D..
    well I read carefully in thread is that means for created your own iso or installing target to current os installed..
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,900
    340
    It's the same for both, either online os or offline image