abbodi1406's Batch Scripts Repo

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

  1. fch1993

    fch1993 MDL Senior Member

    Mar 14, 2020
    382
    275
    10
    @abbodi1406

    Are there some scripts that can set up CDN for Office C2R installation?

    I found a strange issue today.

    Office 2013 C2R

    I can't find the latest version of the files, Which even downloads the July version of the Office 2013.

    I have to use a VPN to find another CDN that I can download the latest version.
     
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,206
    90,780
    340
    What CDNs? there is only one working cdn for Office 2013 (other two not updated since 2019-10)
    Code:
    https://officecdn.microsoft.com/db/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/v32.cab
    https://officecdn.microsoft.com/db/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/v32_15.0.5589.1001.cab
    https://officecdn.microsoft.com/db/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/15.0.5589.1001/i321033.cab
    https://officecdn.microsoft.com/db/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/15.0.5589.1001/s320.cab
    https://officecdn.microsoft.com/db/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/15.0.5589.1001/s321033.cab
    https://officecdn.microsoft.com/db/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/15.0.5589.1001/stream.x86.en-us.dat
    https://officecdn.microsoft.com/db/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/15.0.5589.1001/stream.x86.x-none.dat
    https://officecdn.microsoft.com/db/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/v64.cab
    https://officecdn.microsoft.com/db/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/v64_15.0.5589.1001.cab
    https://officecdn.microsoft.com/db/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/15.0.5589.1001/i641033.cab
    https://officecdn.microsoft.com/db/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/15.0.5589.1001/s640.cab
    https://officecdn.microsoft.com/db/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/15.0.5589.1001/s641033.cab
    https://officecdn.microsoft.com/db/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/15.0.5589.1001/stream.x64.en-us.dat
    https://officecdn.microsoft.com/db/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/15.0.5589.1001/stream.x64.x-none.dat
    

    if /db/ don't work, try /pr/ or /sg/
    or http://officecdn.microsoft.com.edgesuite.net instead https://officecdn.microsoft.com
     
  3. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    4,161
    5,975
    150
    I still have my old tool.
    It works with 2013 ... but I can't share it here
    ( it is against the rules, it has online activator)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. fch1993

    fch1993 MDL Senior Member

    Mar 14, 2020
    382
    275
    10
    @abbodi1406

    I don't mean that I can't download those files.

    What I mean is I can't get those links via my local IP, The Office server will send me old files.

    example via Office 2013-2021 C2R Install.

    [​IMG]

    After I used the VPN changed to the USA IP

    [​IMG]

    What I want to know is: When I check the latest version of Office 2013(not download)Which Server name is used for, Is that also "officecdn.microsoft.com"?
     
  5. shinva

    shinva MDL Novice

    Jun 22, 2020
    12
    1
    0
    Hi @abbodi1406 I noticed SuppressPatches2013 and SuppressPatches2016 on your github repo, what are those for? I couldn't find any info about them... Thanks
     
  6. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,206
    90,780
    340
    Yes it's the same server, i'm not aware of any other way to check for Office 2013 C2R version except v32.cab or v64.cab

    if it's geo-fenced, then it's Microsoft choice

    do you get the same file/version for these links via local IP?
    Code:
    https://officecdn.microsoft.com/db/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/v32.cab
    https://officecdn.microsoft.com/pr/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/v32.cab
    https://officecdn.microsoft.com/sg/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/v32.cab
    http://officecdn.microsoft.com.edgesuite.net/db/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/v32.cab
    http://officecdn.microsoft.com.edgesuite.net/pr/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/v32.cab
    http://officecdn.microsoft.com.edgesuite.net/sg/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/v32.cab
     
  7. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,206
    90,780
    340
  8. fch1993

    fch1993 MDL Senior Member

    Mar 14, 2020
    382
    275
    10
    I have tested the following files on my local IP, The files returned are not the same.


    Code:
    v32_1.cab    0d3151748817d78166ff6ac3ef146fa7    351424031283daa906a9a956348f86cb4f7cdcb0    10,841   
    v32_2.cab    6978c1b1022da1ed8200fcf46b7962f6    66fd51acf3617dfa2b411e3bf0273c187fac3f1b    10,846   
    v32_3.cab    6978c1b1022da1ed8200fcf46b7962f6    66fd51acf3617dfa2b411e3bf0273c187fac3f1b    10,846   
    v32_4.cab    2b5c76cf7a201c6e68d0b5c21e3c0f9d    4d827797a7363cb697fdb0daa56ff507686eef6b    10,840   
    v32_5.cab    2b5c76cf7a201c6e68d0b5c21e3c0f9d    4d827797a7363cb697fdb0daa56ff507686eef6b    10,840   
    v32_6.cab    2b5c76cf7a201c6e68d0b5c21e3c0f9d    4d827797a7363cb697fdb0daa56ff507686eef6b    10,840   
    
     
  9. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,206
    90,780
    340
    There is your answer then, use any of officecdn.microsoft.com.edgesuite.net links
     
  10. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,206
    90,780
    340
    WHD-W81UI v7.4

    - Fixed detection for already installed Rollup

    - Enhanced detection for already installed SSU 2022-04 and later

    - Added detection for required SSU version (for ESU updates)

    - Enhanced "Cleanup System Image" behavior for current online OS:
    RunOnce_AfterRestart_DismCleanup.cmd script will be created on desktop
    if above script is not executed, WHD-W81UI.cmd will prompt once to run or skip cleanup

    thanks to @tf for reporting and testing
     
  11. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,206
    90,780
    340
    W10UI v10.33

    - Export wim indexes one at a time if detected Dism.exe is version 10.0.25115.1000 or later
     
  12. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,768
    7,710
    210
    Would it be possible to substitute DISM with WimLib?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,206
    90,780
    340
    Possible, but it require too unnecessary checks/code
    we already have to use dism.exe anyway
     
  14. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,768
    7,710
    210
    #2554 Carlos Detweiller, Sep 20, 2023
    Last edited: Sep 21, 2023
    If DISM eventually has to export single indexes, and wimlib can still do all in one go, wouldn't it be a lot faster for many indexes?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,206
    90,780
    340
    Probably
    but someone then would want an option to choose between dism and wimlib :oops:
     
  16. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,768
    7,710
    210
    Yeah, something like this: If Wimlib found in path or script directory, use Wimlib, else, fall back to ADK or native DISM.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,206
    90,780
    340
    That's the plan, soon
    someone then might says i don't want Wimlib used without my permission :p
     
  18. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,768
    7,710
    210
    Well, you can't please everyone.

    Or, scratch the path and only search in the script's directory. Everyone not wanting Wimlib to be used, just should not put it there.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,206
    90,780
    340
    @Carlos Detweiller or anyone would like to test
    http://put.nu/files/6kbW6oL.zip

    wimlib-imagex.exe will be detected from PATH (takes precedence), the script's current directory, bin / bin64 subdirectories from current directory (i.e. uup-converter)

    also added manual option "UseWimlib" to turn off the new behavior and always use dism.exe

    p.s. i wonder if imagex.exe from ADK 25115 and later still have the export all support
     
  20. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,668
    103,487
    450
    [​IMG]
    Code:
    C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools>imagex /Export "c:\boot.wim" * "c:\boot2.wim" /Compress maximum
    
    ImageX Tool for Windows
    Copyright (C) Microsoft Corp. All rights reserved.
    Version: 10.0.10011.16384
    
    Exporting: [c:\boot.wim, *] ->
               [c:\boot2.wim]
    
    
    [ 100% ] Exporting progress
    
    Successfully exported image #1.
    
    
    [ 100% ] Exporting progress
    
    Successfully exported image #2.
    
    
    Total elapsed time: 4 sec