abbodi1406's Batch Scripts Repo

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

  1. Senjanov

    Senjanov MDL Member

    Jul 29, 2011
    217
    44
    10
    ok, thanks anyway. :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. sr3tlaw

    sr3tlaw MDL Novice

    Jun 26, 2013
    40
    8
    0
    Uhhhhhh I love you. lol. Is there an RSS/ATOM feed or something I can subscribe that notifies when you update these?
     
  3. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,226
    84,917
    340
    Well, you can watch this thread :)
     
  4. LoverOfLove

    LoverOfLove MDL Member

    Oct 17, 2017
    125
    32
    10
    Hi abbodi1406 thanks for making these useful tools. :)
    i've succesfully used win 10 update installer.
    but i've problem in 8.1 and 7.
    in 10 i've used
    Code:
    set "target=E:\MSDN Original Windows OS\en_windows_10_multi-edition_version_1709_updated_sept_2017_x64_dvd_100090817"
    this line for target os folder and it worked. but this type of line is not working in 8.1. in 8.1 it still shows target current os.
    but in 7 it detect my os folder but it shows x86 version instead of x64, and when i proceed it shows error
    Code:
    ERROR: Detected target online/offline image is not Windows 7 SP1
    i've sha1 verified msdn win 7, 8.1 iso.
    pls help me with setting target folder in win 7 8.1 update installer.
    thank you very much :)
     
  5. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,226
    84,917
    340
    - Windows 7 script does not support iso or wim, just current OS or already mounted image/another partition

    - It would not hurt not to use spaces in path
    for Windows 8.1 try this, search for:
    Code:
    echo "%target%"| findstr /I "\.wim" >nul
    replace with
    Code:
    echo %target%| findstr /E /I "\.wim" >nul
     
  6. LoverOfLove

    LoverOfLove MDL Member

    Oct 17, 2017
    125
    32
    10
    #166 LoverOfLove, Nov 29, 2017
    Last edited: Nov 29, 2017
    thanks for replying..
    i really dont know where to put your suggested commands.
    here is my situation in 8.1 scenario.
    i have placed WHD-W81UI.cmd file next to WHDownloader.
    i have extracted win 8.1 iso folder in
    Code:
    E:\MSDN Original Windows OS\en_windows_8.1_with_update_x64_dvd_6051480
    in script i'm suppose to change target to this folder so script can work.
    default target set line is
    Code:
    set "target="
    i've tried various way to set target but i've failed.

    but when i set target in w10ui script
    Code:
    set "target=E:\MSDN Original Windows OS\en_windows_10_multi-edition_version_1709_updated_sept_2017_x64_dvd_100090817"
    it worked perfectly in win 10.
    pls help me with 8.1
     
  7. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,226
    84,917
    340
    Edit WHD-W81UI.cmd with notepad, search for that line, and replace it with the sugeested line
     
  8. LoverOfLove

    LoverOfLove MDL Member

    Oct 17, 2017
    125
    32
    10
    i've followed your suggestion and replaced the suggested lines. but it still not working.
    this is still showing "current online os" and not detecting my extracted iso folder.
     
  9. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,226
    84,917
    340
    Oops, i forgot that Windows 8.1 script also do not support ISO distribution
    you need to specify install.wim path directly, after you applied the script fix
    i.e.
    Code:
    E:\MSDN Original Windows OS\en_windows_8.1_with_update_x64_dvd_6051480\sources\install.wim
     
  10. LoverOfLove

    LoverOfLove MDL Member

    Oct 17, 2017
    125
    32
    10
    THANK YOU,,, now its working..
    is there any way possible i can integrate windows 7 updates in extracted iso folder or install.wim?
     
  11. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,226
    84,917
    340
    No currently

    i may add that suppport eventually, but it will take a lot of time, since W 7/8.1 updates are scattered in different folders
     
  12. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,965
    908
    60
    #172 Flipp3r, Dec 1, 2017
    Last edited: Dec 1, 2017
    Can the W10UI v3.7 script update SVR 2016? It seems to be integrating the updates ok but I get an error enabeling .Net:
    Code:
    Deployment Image Servicing and Management tool
    Version: 10.0.15063.0
    
    Image Version: 10.0.14393.0
    
    Processing 1 of 2 - Adding package Package_for_KB3186568~31bf3856ad364e35~amd64~~10.0.1.1044
    [==========================100.0%==========================]
    Processing 2 of 2 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~14393.1914.1.4
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding .NET Framework 3.5 feature
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.15063.0
    
    Image Version: 10.0.14393.0
    
    Enabling feature(s)
    [==========================100.0%==========================]
    
    Error: 50
    
    The operation is complete but NetFx3 feature was not enabled.
    A required parent feature may not be enabled. You can use the /enable-feature /all option to automatically enable each parent feature from the following list. If the parent feature(s) are already enabled, refer to the log file for further diagnostics.
    NetFx3ServerFeatures

    Would I have to add this to the .Net section?
    Code:
    "%dismroot%" %dismtarget% /NoRestart /Enable-Feature /FeatureName:NetFx3ServerFeatures /Source:"%net35source%"
    Update: Just tried it & it worked...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. LoverOfLove

    LoverOfLove MDL Member

    Oct 17, 2017
    125
    32
    10
    7 and 8.1 both have updates in scattered folder and you have already provided us way to integrate updates in 8.1 install.wim,, now only 7 is remaining.
    i'm waiting for your update in WHD-W7UI so we can also integrate updates in install.wim.
    thank you very much for your work :)
     
  14. yre

    yre MDL Novice

    Nov 6, 2017
    5
    1
    0
  15. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,575
    15,646
    270
    Having a legit Windows activation, this activator won't touch it. Rest assured.
    Same applies to Office legit activation, in case someone asks.

    @abbodi1406 , @CODYQX4 and others are not newbies doing this stuff for ages. They have taken into account such scenarios.
     
  16. Nucleus

    Nucleus MDL Guru

    Aug 4, 2009
    2,868
    2,950
    90
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,226
    84,917
    340
    Thanks boys :)

    @yre
    if you Windows activation is permanent (Retail/OEM/MAK), KMS_VL_ALL will not change it
    but if you insist, edit Activate-Local.cmd (or KMS_VL_ALL.cmd), search for this line
    Code:
    if %office% equ 0 if %gvlk% equ 1 exit /b
    and replace with
    Code:
    if %office% equ 0 exit /b
     
  18. yre

    yre MDL Novice

    Nov 6, 2017
    5
    1
    0
    thanks i will try that
     
  19. MonarchX

    MonarchX MDL Expert

    May 5, 2007
    1,732
    313
    60
    during boot from USB. It stated I had missing drivers. The same did not happen when using stock boot.wim and when using boot.wim updated with NTLite... All to the same version 1914... LTSB x64...
     
  20. Senjanov

    Senjanov MDL Member

    Jul 29, 2011
    217
    44
    10
    try posting script setting if you using W10UI_3.7(if you edit sript also)
    as a long install.wim, boot.wim in same folder in sources. will not happen using W10UI_3.7.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...