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,899
    340
  2. bdl

    bdl MDL Addicted

    Aug 8, 2012
    562
    43
    30
    it is possible to have all office 2021 shortcut like office web ?
     
  3. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    3,759
    5,223
    120
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,274
    94,764
    450
    #2164 Enthousiast, Oct 5, 2022
    Last edited: Oct 5, 2022
    It's one cmd with a bin folder, containing files to be used by the cmd.

    Compared to the previous one with 5 cmd files.
     
  5. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,899
    340
    Should i add self-elevating to the AIO? :)

    FYI, "[1] Scrub ALL" option will only scrub the detected Office versions
    other options will run the scrubbing regardless if the relevant Office is detected or not
     
  6. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    3,759
    5,223
    120
    what about possible scenario ..
    case of you start scrub, script stop, you want run it over again.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Krinal

    Krinal MDL Novice

    Oct 6, 2018
    45
    46
    0
    Self elevating would be great.
    Great you're moving towards AIO. :)
     
  8. spinalGR

    spinalGR MDL Senior Member

    Oct 16, 2014
    409
    81
    10
    abbodi1406 BatUtil for .NetFramework version 4.8 for Windows 10 version 1511
     

    Attached Files:

  9. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,349
    2,939
    60
    #2169 Paul Mercer, Oct 12, 2022
    Last edited: Oct 12, 2022
    @abbodi1406 hi, apps are not integrating into Feature update to Azure Stack HCI, version 23H2, dev build (25217.1000) amd64

    Code:
    ============================================================
    Running UUP -> ISO v84
    ============================================================
    
    ============================================================
    Checking UUP Info . . .
    ============================================================
    
    ============================================================
    Configured Options . . .
    ============================================================
    
    AutoStart 1
    
    ============================================================
    Preparing Reference ESDs . . .
    ============================================================
    
    cabs_Microsoft-Windows-Server-FoDMetadata-Package
    
    ============================================================
    Creating Setup Media Layout . . .
    ============================================================
    
    
    ============================================================
    Creating install.wim . . .
    ============================================================
    
    Using LZX compression with 8 threads
    Archiving file data: 4634 MiB of 4634 MiB (100%) done
    
    ============================================================
    Creating winre.wim . . .
    ============================================================
    
    Using LZX compression with 8 threads
    Archiving file data: 1127 MiB of 1127 MiB (100%) done
    
    ============================================================
    Adding winre.wim to install.wim . . .
    ============================================================
    
    
    ============================================================
    Creating boot.wim . . .
    ============================================================
    
    
    ============================================================
    Creating ISO . . .
    ============================================================
    
    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.
    
    
    Scanning source tree (1000 files in 85 directories)
    Scanning source tree complete (1040 files in 89 directories)
    
    Computing directory information complete
    
    Image file is 3178594304 bytes (before optimization)
    
    Writing 1040 files in 89 directories to 25217.1000.221001-1723.RS_PRERELEASE_SERVERAZURESTACKHCI_RET_X64FRE_EN-US.ISO
    
    100% complete
    
    Storage optimization saved 26 files, 14209024 bytes (1% of image)
    
    After optimization, image file is 3166726144 bytes
    Space saved because of embedding, sparseness or optimization = 14209024
    
    Done.
    Finished.
    
    Press 0 to exit.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,899
    340
    @Paul Mercer
    it's two sides issue
    IPA_WindowsSecurity_Microsoft.SecHealthUI_8wekyb3d8bbwe.appx is not included with downloaded Apps = packs generation issue
    convert-UUP.cmd is set to check for appxbunde/msixbundle only (not single appx)
     
  11. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,349
    2,939
    60
    #2171 Paul Mercer, Oct 12, 2022
    Last edited: Oct 12, 2022
    why we need SecHealthUI app for HCI edition? isn't it terminal-like only?

    I've edited script and added SecHealthUI app based on your suggestions

    Code:
    ============================================================
    Running UUP -> ISO v84
    ============================================================
    
    ============================================================
    Checking UUP Info . . .
    ============================================================
    
    ============================================================
    Configured Options . . .
    ============================================================
    
    AutoStart 1
    
    ============================================================
    Parsing Apps CompDB . . .
    ============================================================
    
    
    ============================================================
    Preparing Reference ESDs . . .
    ============================================================
    
    cabs_Microsoft-Windows-Server-FoDMetadata-Package
    
    ============================================================
    Creating Setup Media Layout . . .
    ============================================================
    
    
    ============================================================
    Creating install.wim . . .
    ============================================================
    
    Using LZX compression with 8 threads
    Archiving file data: 4634 MiB of 4634 MiB (100%) done
    
    ============================================================
    Updating install.wim / 1 image(s) . . .
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Adding Apps . . .
    
    Microsoft.NET.Native.Framework.x64.2.2
    Microsoft.NET.Native.Runtime.x64.2.2
    Microsoft.UI.Xaml
    Microsoft.UI.Xaml.x64.2.1
    Microsoft.UI.Xaml.x64.2.3
    Microsoft.UI.Xaml.x64.2.7
    Microsoft.VCLibs.x64.14.00
    Microsoft.VCLibs.x64.14.00.UWPDesktop
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image File : F:\uup-converter-wimlib-84\ISOFOLDER\sources\install.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    "ISOFOLDER\sources\install.wim" original size: 1963377 KiB
    Using LZX compression with 8 threads
    Archiving file data: 4625 MiB of 4625 MiB (100%) done
    "ISOFOLDER\sources\install.wim" optimized size: 1950390 KiB
    Space saved: 12986 KiB
    
    ============================================================
    Creating winre.wim . . .
    ============================================================
    
    Using LZX compression with 8 threads
    Archiving file data: 1127 MiB of 1127 MiB (100%) done
    
    ============================================================
    Adding winre.wim to install.wim . . .
    ============================================================
    
    
    ============================================================
    Creating boot.wim . . .
    ============================================================
    
    
    ============================================================
    Creating ISO . . .
    ============================================================
    
    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.
    
    
    Scanning source tree (1000 files in 85 directories)
    Scanning source tree complete (1040 files in 89 directories)
    
    Computing directory information complete
    
    Image file is 3177250816 bytes (before optimization)
    
    Writing 1040 files in 89 directories to 25217.1000.221001-1723.RS_PRERELEASE_SERVERAZURESTACKHCI_RET_X64FRE_EN-US.ISO
    
    100% complete
    
    Storage optimization saved 26 files, 14209024 bytes (1% of image)
    
    After optimization, image file is 3165388800 bytes
    Space saved because of embedding, sparseness or optimization = 14209024
    
    Done.
    Finished.
    
    Press 0 to exit.

    Frameworks are integrated, but SecHealthUI is not
    maybe related to empty _AppsEditions.txt file, idk
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,899
    340
    It's is the only one included with this Azure build + Framework apps
    https://uupdump.net/findfiles.php?id=45974967-f2bf-429c-9f5b-cd2e7b9c6c6a&q=ipa_

    you mean we should not integrate it, and add Framework apps only?

    that's actually why packs generation skipped it, because it's not listed in Edition metadata (ServerTargetCompDB_ServerAzureStackHCICor_en-us.xml)
     
  13. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,899
    340
  14. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,349
    2,939
    60
    #2174 Paul Mercer, Oct 12, 2022
    Last edited: Oct 12, 2022
    yes, this is make sense because HCI edition don't have any GUI
    we can double check it on 20348 build anyway

    also I have no idea why we need apps frameworks for GUI-less operating system, but if it's included in edition metadata then I think it is better to be integrated

    yes, it is fine with this version

    Code:
    ============================================================
    Running UUP -> ISO v85
    ============================================================
    
    ============================================================
    Checking UUP Info . . .
    ============================================================
    
    ============================================================
    Configured Options . . .
    ============================================================
    
    AutoStart 1
    
    ============================================================
    Parsing Apps CompDB . . .
    ============================================================
    
    
    ============================================================
    Preparing Reference ESDs . . .
    ============================================================
    
    cabs_Microsoft-Windows-Server-FoDMetadata-Package
    
    ============================================================
    Creating Setup Media Layout . . .
    ============================================================
    
    
    ============================================================
    Creating install.wim . . .
    ============================================================
    
    Using LZX compression with 8 threads
    Archiving file data: 4634 MiB of 4634 MiB (100%) done
    
    ============================================================
    Updating install.wim / 1 image(s) . . .
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Adding Apps . . .
    
    Microsoft.NET.Native.Framework.x64.2.2
    Microsoft.NET.Native.Runtime.x64.2.2
    Microsoft.UI.Xaml
    Microsoft.UI.Xaml.x64.2.1
    Microsoft.UI.Xaml.x64.2.3
    Microsoft.UI.Xaml.x64.2.7
    Microsoft.VCLibs.x64.14.00
    Microsoft.VCLibs.x64.14.00.UWPDesktop
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image File : F:\uup-converter-wimlib-84\ISOFOLDER\sources\install.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    "ISOFOLDER\sources\install.wim" original size: 1963377 KiB
    Using LZX compression with 8 threads
    Archiving file data: 4625 MiB of 4625 MiB (100%) done
    "ISOFOLDER\sources\install.wim" optimized size: 1950390 KiB
    Space saved: 12986 KiB
    
    ============================================================
    Creating winre.wim . . .
    ============================================================
    
    Using LZX compression with 8 threads
    Archiving file data: 1127 MiB of 1127 MiB (100%) done
    
    ============================================================
    Adding winre.wim to install.wim . . .
    ============================================================
    
    
    ============================================================
    Creating boot.wim . . .
    ============================================================
    
    
    ============================================================
    Creating ISO . . .
    ============================================================
    
    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.
    
    
    Scanning source tree (1000 files in 85 directories)
    Scanning source tree complete (1040 files in 89 directories)
    
    Computing directory information complete
    
    Image file is 3177250816 bytes (before optimization)
    
    Writing 1040 files in 89 directories to 25217.1000.221001-1723.RS_PRERELEASE_SERVERAZURESTACKHCI_RET_X64FRE_EN-US.ISO
    
    100% complete
    
    Storage optimization saved 26 files, 14209024 bytes (1% of image)
    
    After optimization, image file is 3165388800 bytes
    Space saved because of embedding, sparseness or optimization = 14209024
    
    Done.
    Finished.
    
    Press 0 to exit.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,349
    2,939
    60
    #2175 Paul Mercer, Oct 12, 2022
    Last edited: Oct 12, 2022
    @abbodi1406 I've checked 20348 build from UUP dump

    these frameworks are available on two GUI editions in Program Files\WindowsApps\ folder:
    Microsoft.UI.Xaml.2.2_2.21909.17002.0_x64__8wekyb3d8bbwe
    Microsoft.UI.Xaml.2.4_2.42007.9001.0_x64__8wekyb3d8bbwe
    Microsoft.VCLibs.140.00_14.0.27810.0_x64__8wekyb3d8bbwe

    but there's no any frameworks or apps on two GUI-less server editions including HCI

    this is confusing, I think we don't need any apps and frameworks for HCI edition at all
    maybe frameworks + SecHealthUI app are just default pack for any edition, this is Microsoft after all

    anyway, if it's included in Edition metadata then we need to integrate it..

    upd: also no frameworks in Windows_InsiderPreview_Server_vNext_en-us_25217.iso in two GUI-less editions
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,899
    340
    I guess the modified v85 script should be enough for now (maybe for future Server LTSC 2025)

    that Azure dev build is for testing mostly
     
  17. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,899
    340
  18. johnnywalls

    johnnywalls MDL Novice

    Aug 21, 2021
    12
    0
    0
    How to uninstall an update for Windows 7 which was installed by using WIN7ESUI? There's an error message: "0x80073712" whenever such an update is tried to by uninstalled.
     
  19. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,222
    84,899
    340
    You cannot uninstall current (active) update in this case, it must be superseded

    or install ESU Bypass (ESU Suppressor), this allow to uninstall any ESU update
     
  20. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,651
    3,398
    60
    #2180 inTerActionVRI, Oct 14, 2022
    Last edited: Oct 14, 2022
    @abbodi1406,

    In this mutiarch.cmd code block is it to be without 19045?
    Code:
    if %revmaj%==19044 (
    if /i "%branch:~0,2%"=="vb" set branch=21h2%branch:~2%
    if %uupver:~0,5%==19041 set uupver=19044%uupver:~5%
    )
    if %revmaj%==19046 (
    if /i "%branch:~0,2%"=="vb" set branch=23h2%branch:~2%
    if %uupver:~0,5%==19041 set uupver=19046%uupver:~5%
    )
    
    Or there was some mistake and should be:
    Code:
    if %revmaj%==19044 (
    if /i "%branch:~0,2%"=="vb" set branch=21h2%branch:~2%
    if %uupver:~0,5%==19041 set uupver=19044%uupver:~5%
    )
    if %revmaj%==19045 (
    if /i "%branch:~0,2%"=="vb" set branch=22h2%branch:~2%
    if %uupver:~0,5%==19041 set uupver=19045%uupver:~5%
    )
    if %revmaj%==19046 (
    if /i "%branch:~0,2%"=="vb" set branch=23h2%branch:~2%
    if %uupver:~0,5%==19041 set uupver=19046%uupver:~5%
    )
    


    In these parts (convert-uup and multiarch too):
    several
    .txt 2>&1
    .log" 2>&1
    .dat" 2>&1

    ex:
    Code:
    >bin\infoall.txt 2>&1
    >bin\info.txt 2>&1
    
    Is the code that way or should it be used with nul?
    Code:
    >nul 2>&1
    1>nul 2>nul
    %_Nul3%
    
    I'm asking because I had never seen this use. I didn't even understand this use if the code is like that.