abbodi1406's Batch Scripts Repo

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

  1. mcluskyism

    mcluskyism MDL Novice

    Jun 22, 2019
    10
    0
    0
    @abbodi1406

    Hello, I comment out the Admin check, and gone a bit further ... but now the script complains about my extracted ISO:
    Code:
    ERROR: Detected wim version is not Windows 7
    It is difficult to get Win7 ISOs today, but I'm pretty sure mine is an N edition with Starter release on board (for an old netbook).
    sha1sum x17-59335.iso
    fda90230e29052b7b20ca408e961c5d2743041f1 x17-59335.iso
    Extracted with 7-Zip under Wine, and also
    Code:
    set "target=..\0iso\sources\install.wim"
    to search up a level, into a directory named Z on the root (C:\) of Wine.
    Please, any clue? Thank you
     
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,211
    84,859
    340
    Dism is used to detect wim version
    are you sure it work under Wine?
     
  3. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,211
    84,859
    340
  4. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,690
    1,932
    60
    everything is ok, I get the selection menu.
    Thank you
     
  5. vze2mp9g

    vze2mp9g MDL Addicted

    Oct 13, 2012
    660
    117
    30
    @abbodi1406

    RE: W10UI_6.6

    Hello
    I attempted to run this command in an administrative cmd. I have ADK Win 10 installed. Every time I go to start to the process, it only returns back to the menu. This is my menu selection

    Code:
    ============================================================
    1. Target (x64): Current OS
    
    2. Select updates location
    
    3. DISM: "Windows 10 ADK"
    
    4. Enable .NET 3.5: YES
    
    5. Cleanup System Image: NO
    
    E. Extraction Directory: "C:\W10UItemp"
    ============================================================
    0. Start the process
    ============================================================
    
    Change a menu option, press 0 to start, or 9 to exit:
    
    Can any assist me with this with my problem? I would appreciate any and all help with my problem.
    Thank you....

    :worthy:
     
  6. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,270
    94,715
    450
    You didn't specify the updates location or put the updates next to the script, and did you intent to update your current OS?
     
  7. vze2mp9g

    vze2mp9g MDL Addicted

    Oct 13, 2012
    660
    117
    30
    I'm updating my current OS. I was under the impression that this script downloaded the updates and then updated the OS.
    Thanks for the quick reply..
     
  8. mcluskyism

    mcluskyism MDL Novice

    Jun 22, 2019
    10
    0
    0
    Hello, sorry for the delay. You're absolutely right, DISM support under Wine ATM is very very poor. I got access to a Win10 machine, with admin rights to run your scripts (no-remove-any-line-of-code-hacks) and my test gone fine ... ISO is a healty Seven N Starter, and the process went smooth.
    But ... can I use your script to only download and retain updates / hotfixes into a folder, rather than update directly the WIMs?
    I know, I could use WHDownloader alone, but I get so little grip in choosing by myself which are correct updates to download ... less cruft is better for me.
    Again, sorry and thank you
     
  9. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,211
    84,859
    340
    I don't have download script, they are just update installers
     
  10. mcluskyism

    mcluskyism MDL Novice

    Jun 22, 2019
    10
    0
    0
    Okay, it doesn't matter, thanks always and anyway for your precious help :v:
     
  11. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,211
    84,859
    340
    WHD-W81UI 4.9

    added support for new SSU KB4504418

    Superseded SSU KB3173424 is still needed to satisfy WU as companion with KB3172729 (secure boot update)
     
  12. Hasefroch

    Hasefroch MDL Senior Member

    Dec 24, 2018
    283
    170
    10
    thanks! I was waiting for this!
    The new SSU also fixes the "windows update not finding updates" problem?
    I will try with a w8.1 pro VL iso in Spanish and install it, because i'm tired with windows 10 slowness because usermode font cache service and antimalweare service executable
     
  13. Hasefroch

    Hasefroch MDL Senior Member

    Dec 24, 2018
    283
    170
    10
    And that the store not working anymore (i believe), now can be better install windows 8.1 industry enterprise, a "LTSC-like" for windows 8.1, because not having store and preinstalled apps
     
  14. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,211
    84,859
    340
    Not really, you need KB3172614 for that (after installing SSU)
     
  15. vze2mp9g

    vze2mp9g MDL Addicted

    Oct 13, 2012
    660
    117
    30
    @abbodi1406

    RE: W10MUI 12.0

    Hello,
    I like to keep my ISOs in an ISO folder. When I put the path to the ISO file, I get an error message cannot find the \sources\install.wim file. Do I always have to put the ISO file next to the script? This is how I have it now:

    Code:
    set DVDPATH=C:\Users\dcms6\Downloads\ISO
    set ISO=1
    set WINPE=1
    set SLIM=1
    set NET35=0
    
    set WINPEPATH=
    
    set DEFAULTLANGUAGE=
    set MOUNTDIR=C:\Users\dcms6\Downloads\MOUNT
    
    DVDPATH
    Path for Windows 10 distribution (without quotation marks)
    you can use the iso file path directly, or path to custom extracted folder, or DVD/USB dive letter.
    leave it blank if you want to use iso file placed next to the script, or prompted to enter path.
    
    Thank you in advance... :hmm:
     
  16. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,270
    94,715
    450
    Is the iso filename "ISO"?
     
  17. set DVDPATH=C:\Users\dcms6\Downloads\ISO
     
  18. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,270
    94,715
    450
    Just an example:
    Code:
    ============================================================
    Enter / Paste the complete path to 1st ISO file
    ============================================================
    
    c:\Users\Enthousiast\Downloads\
    
    ==== ERROR ====
    Specified path is not a valid ISO file
    
    Press any key to continue...
    
    
    or
    Code:
    ============================================================
    Enter / Paste the complete path to 1st ISO file
    ============================================================
    
    c:\Users\\Enthousiast\Downloads\en_windows_10_business_editions_version_1803_updated_july_2019_x64_dvd_b9765305.iso
    
    ============================================================
    Enter / Paste the complete path to 2nd ISO file
    ============================================================
    
    
    
     
  19. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,211
    84,859
    340
    ISO file path must end in .iso