abbodi1406's Batch Scripts Repo

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

  1. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,204
    90,765
    340
  2. Alfredo Troncoso

    Alfredo Troncoso MDL Novice

    Sep 12, 2012
    22
    4
    0
    Hello abbodi1406!
    First, thank you very much for all your tools!

    I tried to make a full ISO of Windows 1809 (17763.55) downloading the UUP files and script from website "UUP dump".
    All works well as I get an ISO, but it is 17763.1 (not 17763.55).
    Even before I create the ISO, I check the UUP info and tells is 17763.1 (not 17763.55).

    Can you lead me to some help please?

    Thank you very much in advance.
     
  3. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,656
    103,453
    450
    The UUP download is the 17763.1 version, to get to 17763.55 (or at the most current build 17763.107) you need to integrate the SSU, Flash and CU, you can do this by using @abbodi1406 his W10UI script.
     
  4. Alfredo Troncoso

    Alfredo Troncoso MDL Novice

    Sep 12, 2012
    22
    4
    0
    Thanks for your reply Enthousiast!
    It was very clear!

    But this gives me the following question:
    Why in the UUP dump exists different builds to download, if all minor builds gives the same major build?

    Thanks again!
     
  5. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,656
    103,453
    450
  6. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,204
    90,765
    340
    Because it's a dump for whatever WindowsUpdate offer :)

    and you can upgrade from UUP files directly, in this case you will get 17763.55
    https://forums.mydigitallife.net/posts/1418703
     
  7. nnyymm

    nnyymm MDL Novice

    May 4, 2010
    12
    0
    0
    #487 nnyymm, Nov 4, 2018
    Last edited: Nov 5, 2018
    Hi, can anyone point me the install directory of oscdimg? I just installed ADK(only ticking the one with oscdimg in it)

    I tried W10UI and it went through like 11 'passes' (install.wim index 1/11) I don’t know why. Took me almost 3 hours to integrate my 1809(SSU, CU, Flash and DU) and the end result wasn’t ISO but just the folder all the files.

    Would like to seek help if I’m doing anything wrong.

    Edit: Managed to find the solution from Enthou and S1ave77. Thanks!
     
  8. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,204
    90,765
    340
    x86 OS
    Code:
    C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\x86\Oscdimg\oscdimg.exe
    C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg\oscdimg.exe
    x64 OS
    Code:
    C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\x86\Oscdimg\oscdimg.exe
    C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg\oscdimg.exe
    you may use the attached script to create iso manually
    it require Win10 ADK
     

    Attached Files:

  9. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,204
    90,765
    340
  10. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,397
    2,378
    60
    Hi abbodi, need help with a couple of things
    # Firstly
    When running your convert-UUP.cmd called from
    ))
    echo:
    call :MenuFooter
    call :MenuFooter
    echo:
    set "abbodipresent="
    if exist "convert-UUP.cmd" set "abbodipresent=yes"
    if "%abbodipresent%"=="yes" (
    call :Header "Abbodi1406 UUPtoISO detected"
    CHOICE /C YN /N /M "[ USER ] Start now [Y/N] ?:"
    if !errorlevel!==1 goto:AbbodiStartLatest
    call :Footer
    )
    I get this, not sure what the issue is
    Writing 925 files in 83 directories to 18272.1000.181026-1425.RS_PRERELEASE_CLIENTMULTI_UUP_x64FRE_EN-GB.ISO
    0% complete
    ReadFile failed (\\?\D:\[03]_Win10_Off19\uupdl-master\ISOFOLDER\autorun.inf, off=0 len=800 status=103)
    Error 87: The parameter is incorrect.

    ============================================================
    Backing up Reference ESDs . . .
    ============================================================
    Errors were reported during ISO creation.
    Press any key to exit.

    # Secondly,
    I would like to add a similar call to your convert-UUP.cmd script
    only in this case the call would be for create_virtual_editions.cmd.
    I can change the call to suit my needs but not sure where to place it within your script for it to work
    or indeed, if the wording (code) needs to be altered to achieve the desired result

    Obviously the intention is to create a continuous process Download -> AIO edition -> Specific edition

    ... thanks in advance
     
  11. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,204
    90,765
    340
    # That error usually occur when you create iso on ReFS partition or mirrored storage spaces volume
    cdimage.exe doesn't support that

    you may get oscdimg.exe from Windows 10 ADK, rename it to cdimage.exe and replace current one
    see if it works

    # Well, create_virtual_editions.cmd doesn't support AutoStart
    it's hard to add it since virtual editions need can vary (i doubt anyone will need all possible editions)
    i will see if it can be done

    currently, you can set AutoStart & SkipISO to 1 in convert-UUP.cmd
    remove exit from last line, and pause from line 291
    then call create_virtual_editions.cmd after it
     
  12. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,397
    2,378
    60
    #492 drew84, Nov 6, 2018
    Last edited: Nov 6, 2018
    Many thanks for the quick response..
    Drive is indeed on a ReFS created Storage Space (Simple [Raid0?])
    ... will have a try later to see if given instructions gets me what I am after.... thanks again

    EDIT 1: Renaming oscdimage worked
     
  13. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,204
    90,765
    340
    #493 abbodi1406, Nov 7, 2018
    Last edited: Dec 9, 2018
    (OP)
    # MSEU.cmd #

    # Microsoft Edge Updater for Windows 10 Enterprise LTSC / LTSB

    - Windows 10 Enterprise 2019 LTSC / LTSC N (build 17763)

    - Windows 10 Enterprise 2016 LTSB / LTSB N (build 14393)

    by default, cumulative update will skip updating MS Edge on EnterpriseS/EnterpriseSN editions

    this script workaround that by temporary registring ProfestionalEdition CBS package, reinstall cumulative update, then removes the CBS package to maintain right CBS status (one active Product Package)

    obviously, you need to install Microsoft Edge first (it does not matter if before or after LCU)
    https://forums.mydigitallife.net/posts/1474137/

    * Important: first, install Latest Cumulative Update (LCU) normally

    * Download LCU msu or cab file, and place it next to MSEU.cmd

    * To update current online OS:
    - leave set "target=" as blank
    - Run MSEU.cmd as administrator

    * To update offline image:
    - you have to manually mount install.wim
    - make sure MS Edge is already integrated/installed
    - edit MSEU.cmd and set the correct mount directory path, or offline image driver letter
    - example: set "target=C:\Mount"
    - Run MSEU.cmd as administrator
    - manually unmount install.wim and commit changes

    * Repeat the same steps order with each new LCU


    PHP:
    https://github.com/abbodi1406/WHD/raw/master/scripts/MSEdgeUpdater_0.3.zip

    https://anonfile.com/j2j5k7n5b1/MSEdgeUpdater_0.3_zip
     

    Attached Files:

  14. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,204
    90,765
    340
  15. Hi,
    i see OCTRI=Office Click-to-Run Installer
    what is YA ? :g:
     
  16. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    18,815
    19,009
    340
    'Yet Another' - remember Y.A.S.U?
     
  17. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,204
    90,765
    340
  18. 4lgo_

    4lgo_ MDL Novice

    Oct 13, 2017
    6
    1
    0
    @abbodi1406 Hi, it worked with my office 2016 (listed as 2019 now) but no with my windows 7. Any advice? Thanks for your work!

    ================================================================
    # Manual (Default):

    To only activate without installing and without renewal, run this script only:

    KMS_VL_ALL.cmd

    you will need to run it again before the activation period expire (6 months by default).

    ================================================================
    # Auto Renewal:

    To install this solution for auto renewal activation:

    - open/edit KMS_VL_ALL.cmd with Notepad
    - change _Task=0 from zero 0 to 1
    - choose the desired schedule _TaskFrequency (Default Weekly)
    - save the script, and run it as administrator

    you may also use Create-Remove-Task.cmd to install the solution

    ================================================================
    # Windows 10 KMS 2038:

    Both KMS_VL_ALL.cmd and setupcomplete.cmd are set by default to
    check and skip offline KMS 2038 activation trick for Windows 10

    However, if you would like to revert or use normal KMS activation:
    - edit KMS_VL_ALL.cmd or setupcomplete.cmd with Notepad
    - change KMS38=1 to zero 0
    - save the script.

    ================================================================
    # Create-Remove-Task.cmd:

    - Install or remove the project and scheduled reactivation task(s).

    - Scheduled tasks will be run silently.

    - You can create more than one task simultaneously.

    - You may change start time/day for Daily/Weekly/Monthly tasks after creation via Task Scheduler.

    For advanced users, you can edit the tasks .xml files in Win32 folder prior creation.

    ================================================================
    # Setup Preactivate:

    - To preactivate the system during installation, copy $oem$ to "sources" folder in the installation media (iso/usb)

    - The default TaskFrequency is Weekly, you may edit setupcomplete.cmd to change it.

    - If you already use another setupcomplete.cmd, rename this one to KMS_VL_ALL.cmd or similar name
    then add a command to run it in your setupcomplete.cmd, example:
    call KMS_VL_ALL.cmd

    - Use Create-Remove-Task.cmd if you want to uninstall the project afterwards.

    - Note: setupcomplete.cmd is disabled if the default installed key for the edition is OEM Channel

    ================================================================
    # Remarks:

    - Some security programs may report infected files, that is false-positive due KMS emulating.
    - Remove any other KMS solutions. Temporary turn off AV security protection. Run as administrator.
    - If you installed the solution, exclude this folder in your security protection program:
    C:\Windows\KMS_VL_ALL

    ================================================================
    # Debug:

    If the activation failed, you may run the debug mode to help determining the reason

    move WinDivert-kms folder to a short path
    with Notepad open/edit KMS_VL_ALL.cmd
    change the zero 0 to 1 in set _Debug=0
    save the script, and run it as administrator
    wait until cmd window is closed and KMS_VL_ALL_Debug.log is created
    then upload or copy/post the log file

    ================================================================
    # Supported Volume Products:

    Windows 7-8-8.1-10
    Windows Server 2008R2-2012-2012R2-2016-2019
    Office 2010-2013-2016-2019

    ================================================================
    # Credits:

    Hotbird64 - vlmcsd KMS Emulator
    Basil - WinDivert
    mishamosherg - FakeClient for WinDivert
    MasterDisaster - initial activation script / WMI methods
    qewpal - KMS-VL-ALL author
    abbodi1406 - KMS_VL_ALL-WinDivert-kms author

    thanks for special assistance:
    NormieLyfe, Nucleus, Enthousiast, rpo
     
  19. Uniqlo

    Uniqlo MDL Junior Member

    Nov 10, 2018
    53
    15
    0
    kms tools dont work with win7 starter, home and ultimate editions. will work Only with win7 pro and enterprise editions.
     
  20. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,656
    103,453
    450
    He talks about office, not windows. Generally KMS will activate office on 7.