abbodi1406's Batch Scripts Repo

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

  1. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,658
    340
    W10UI_10.7r.zip

    fixed small typo
     
  2. fch1993

    fch1993 MDL Senior Member

    Mar 14, 2020
    381
    273
    10
  3. toshikovn

    toshikovn MDL Novice

    Jan 15, 2021
    4
    0
    0
    thank you
     
  4. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,658
    340
    Yes, no use for that now
     
  5. MUKESH

    MUKESH MDL Junior Member

    Sep 1, 2011
    61
    31
    0
    [​IMG] [​IMG]
    ============================================================
    Running W10UI v10.7
    ============================================================

    ============================================================
    Removing temporary extracted files...
    ============================================================


    ============================================================
    Extracting .cab files from .msu files
    ============================================================

    1/1: windows10.0-kb5004331-x64-ndp48_c232f26ba7b9b1555e0ae5aa26e2f7109965761f.msu

    ============================================================
    Extracting files from update cabinets (.cab)
    *** This will require some disk space, please be patient ***
    ============================================================

    1/8: defender-dism-x64.cab
    2/8: windows10.0-kb5000736-x64.cab [Enablement]
    3/8: windows10.0-kb5000983-x64.cab [WinPE]
    4/8: windows10.0-kb5001679-x64.cab
    5/8: windows10.0-kb5004313-x64.cab [Setup DU]
    6/8: Windows10.0-KB5004331-x64-NDP48.cab [NetFx]
    7/8: windows10.0-kb5005033-x64.cab [LCU]
    8/8: Windows10.0-KB5005260-x64.cab [SSU]

    ============================================================
    Mounting sources\install.wim - index 6/16
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Checking Updates...
    ============================================================

    ============================================================
    Installing servicing stack update...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19041.1

    Processing 1 of 1 - Adding package Package_for_ServicingStack~31bf3856ad364e35~amd64~~19041.1161.1.1
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Installing updates...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19041.1

    Processing 1 of 2 - Adding package Package_for_KB5000736~31bf3856ad364e35~amd64~~10.0.1.3
    [==========================100.0%==========================]
    Processing 2 of 2 - Adding package Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.4400.1
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19041.1

    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1165.1.8
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Adding Defender update...
    ============================================================


    ============================================================
    Adding .NET Framework 3.5 feature
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19043.1165

    Enabling feature(s)
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Reinstalling cumulative update(s)...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19043.1165

    Processing 1 of 2 - Adding package Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.4400.1
    [==========================100.0%==========================]
    Processing 2 of 2 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1165.1.8
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Updating winre.wim
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19041.1

    Processing 1 of 1 - Adding package Package_for_ServicingStack~31bf3856ad364e35~amd64~~19041.1161.1.1
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19041.1

    Processing 1 of 1 - Adding package Package_for_KB5000983~31bf3856ad364e35~amd64~~10.0.1.1
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19041.1

    Processing 1 of 1 - Adding package Package_for_KB5000736~31bf3856ad364e35~amd64~~10.0.1.3
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19041.1

    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19041.1

    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image File : F:\19043.1151.210724-1008.21H1_RELEASE_SVC_PROD3_CLIENT_X64FRE_EN-US\winre.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Adding updated winre.wim
    ============================================================

    1 file(s) copied.

    ============================================================
    Unmounting sources\install.wim - index 6/16
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image File : F:\19043.1151.210724-1008.21H1_RELEASE_SVC_PROD3_CLIENT_X64FRE_EN-US\19041.1.191206-1406.VB_RELEASE_CLIENTMULTI_X64FRE_EN-US\sources\install.wim
    Image Index : 6
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Rebuilding sources\install.wim
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Mounting sources\boot.wim - index 1/2
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Checking Updates...
    ============================================================

    ============================================================
    Installing servicing stack update...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19041.1

    Processing 1 of 1 - Adding package Package_for_ServicingStack~31bf3856ad364e35~amd64~~19041.1161.1.1
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Installing updates...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19041.1

    Processing 1 of 1 - Adding package Package_for_KB5000983~31bf3856ad364e35~amd64~~10.0.1.1
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19041.1

    Processing 1 of 1 - Adding package Package_for_KB5000736~31bf3856ad364e35~amd64~~10.0.1.3
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19041.1

    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1165.1.8
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Resetting WinPE image base
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19041.1165

    [===================== 37.7% ]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19041.1165

    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Unmounting sources\boot.wim - index 1/2
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image File : F:\19043.1151.210724-1008.21H1_RELEASE_SVC_PROD3_CLIENT_X64FRE_EN-US\19041.1.191206-1406.VB_RELEASE_CLIENTMULTI_X64FRE_EN-US\sources\boot.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Mounting sources\boot.wim - index 2/2
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Checking Updates...
    ============================================================

    ============================================================
    Installing servicing stack update...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19041.1

    Processing 1 of 1 - Adding package Package_for_ServicingStack~31bf3856ad364e35~amd64~~19041.1161.1.1
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Installing updates...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19041.1

    Processing 1 of 1 - Adding package Package_for_KB5000983~31bf3856ad364e35~amd64~~10.0.1.1
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19041.1

    Processing 1 of 1 - Adding package Package_for_KB5000736~31bf3856ad364e35~amd64~~10.0.1.3
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19041.1

    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1165.1.8
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Resetting WinPE image base
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19041.1165

    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image Version: 10.0.19041.1165

    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Unmounting sources\boot.wim - index 2/2
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image File : F:\19043.1151.210724-1008.21H1_RELEASE_SVC_PROD3_CLIENT_X64FRE_EN-US\19041.1.191206-1406.VB_RELEASE_CLIENTMULTI_X64FRE_EN-US\sources\boot.wim
    Image Index : 2
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Rebuilding sources\boot.wim
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Adding setup dynamic update(s)...
    ============================================================

    windows10.0-kb5004313-x64.cab

    ============================================================
    Removing temporary extracted files...
    ============================================================


    ============================================================
    Creating updated ISO file...
    ============================================================

    ISO Location:
    "F:\19043.1151.210724-1008.21H1_RELEASE_SVC_PROD3_CLIENT_X64FRE_EN-US"
    The system cannot find the path specified.
    At line:22 char:73
    + ... ray=$BOOT}; $CONTENT=$fsi.Root;
    $CONTENT.AddTree($dir,$false); $fsi.V ...
    +
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : OperationStopped: :)) [], Director
    yNotFoundException
    + FullyQualifiedErrorId : System.IO.DirectoryNotFoundExcepti
    on

    0% 2MB 19043.1165.210801-0142.21H1_RELEASE_SVC_PROD1_CLIENT_X64100% 2MB 19043.1165.210801-0142.21H1_RELEASE_SVC_PROD1_CLIENT_X64FRE_EN-US.iso

    ============================================================
    Finished
    ============================================================


    Press 9 to exit.
    While creating the updated iso image errors happened.
    I did not used any cdimage.exe/oscdimg.exe file copied next to the W10UI script for creating the iso image.
    I am doing all this on an external ssd and not on any partition on the primary drive.
    The host OS is Windows 11 ( OS build: 22000.120 ).
     
  6. verndog

    verndog MDL Member

    May 3, 2010
    220
    96
    10
    @MUKESH, It looks like your "f:" location is unkown:
    "F:\19043.1151.210724-1008.21H1_RELEASE_SVC_PROD3_CLIENT_X64FRE_EN-US"
    The system cannot find the path specified.
    DirectoryNotFoundException
     
  7. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,658
    340
    W10UI v10.8

    - Fix updated iso label for Windows 10 1909
     
  8. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,658
    340
    @MUKESH

    Regarding your issue
    you could try to use shorter location path for work folder
     
  9. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,658
    340
    #1569 abbodi1406, Aug 11, 2021
    Last edited: Dec 6, 2021
    (OP)
    # .NET 4.8 Installer/Updater for Windows 10 Version 1507/1511

    - A batch script to install .NET Framework 4.8 packages, by modifying the mum files and remove parent node using powershell.exe

    this however, allow to install the package from offline servicing only (because security catalogs integrity will prevent live online installation)

    ## Supported Updates (cab or msu files)
    - .NET Framework 4.8 for Windows 10 Version 1607 (KB4486129)

    - .NET Framework 4.8 Language Packs for Windows 10 Version 1607

    https://dl.dropboxusercontent.com/s/njib7lf0sny0v8w/NET48-LangPacks1607.txt

    - Latest Cumulative Update for .NET 4.8 Framework for Windows 10 Version 1607

    https://www.catalog.update.microsoft.com/Search.aspx?q=Framework Version 1607

    - See ReadMe.txt for more details

    thanks to @acer-5100 and @spinalGR for testing

    ## Download

    https://github.com/abbodi1406/WHD/raw/master/scripts/dotNetFx48-1507_1511_refresh.zip
    https://download.ru/files/53NJa2ID
     
  10. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,919
    150
    @abbodi1406

    Thanks to you for your great work as usual.;)
     
  11. fch1993

    fch1993 MDL Senior Member

    Mar 14, 2020
    381
    273
    10
    Is that possible to integrate .NET Framework 4.8 updates?

    Such as "KB5004752" : http://support.microsoft.com/kb/5004752

    Also from readme which use the MSU file of the update "KB4486129", Can I use the cab file from this link?

    https://forums.mydigitallife.net/threads/windows-10-hotfix-repository.57050/page-624#post-1656179

    PS: About Windows Server 2008 which only support .NET Framework 4.6 until ,April 26, 2022. Is there's method to install .NET Framework 4.8 too?
     
  12. zb9525

    zb9525 MDL Novice

    Apr 24, 2017
    38
    20
    0
    IoTEnterpriseS only EnterpriseS convert to ?
     
  13. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,658
    340
    Yes, that's the only official way
     
  14. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,658
    340
    Not currently
    i will add support for cab file and updates later

    but it's best to either use the refreshed pack alone, or original pack + updates
    last refresh (2021-08)
    Code:
    http://download.microsoft.com/download/3/a/0/3a0ff55e-226c-41fd-9cb0-b42678056667/Windows10.0-KB4486129-x64.cab
    http://download.microsoft.com/download/3/a/0/3a0ff55e-226c-41fd-9cb0-b42678056667/Windows10.0-KB4486129-x86.cab
    ---
    create Slim 4.8 repack and try to install it on Server 2008, i don't see any specific blocks in the msi file
    https://github.com/abbodi1406/dotNetFx4xW7

    don't forget to install D3D Compiler Update KB4019478 first
    Code:
    http://download.windowsupdate.com/c/msdownload/update/software/updt/2017/07/windows6.0-kb4019478-x64_d89094a97eac486a4807cf1686a3c109bbd6c02a.msu
    http://download.windowsupdate.com/c/msdownload/update/software/updt/2017/07/windows6.0-kb4019478-x86_246d86dae3b75ce3ee0180a18db1f04992a14c1b.msu
     
  15. zb9525

    zb9525 MDL Novice

    Apr 24, 2017
    38
    20
    0
    uup non exis enterpriseS download
     
  16. Das_Human

    Das_Human MDL Junior Member

    Apr 6, 2010
    95
    15
    0
    Hi,

    Thanks for the W7ESUI tool!

    Using it I've successfully installed KB5004951 (PrintNightmare update). Unfortunately as some other users did, I run it to a problem with broken printing functionality. There are few printers in the system - some still work some don't. One of these non working ones are AutoCAD built-in printers (these are print-to-file printers - not hardware ones). I need AutoCAD printers to work (well, for a work). Hence I'd like to uninstall the update in question. Uninstalling the update might not be the best option, but IDK how else to fix the issue (yes I've googled, but solutions are only proposed for W10, while I'm on W7Pro).

    A quick search here revealed that W7ESUI doesn't have such an option (uninstallation). However a "workaround" is mentioned. Could you please elaborate on that "workaround" subject?

    Thanks!
     
  17. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,658
    340
    @Das_Human
    if you only installed one ESU update (KB5004951 in this case), you can uninstall it normally from Control Panel

    but if you have multiple ESU updates installed, you should try BypassESU
    https://forums.mydigitallife.net/threads/80606/
    you only need to use option [2] Install ESU Suppressor
    afterward, you can install or uninstall any ESU update normally
     
  18. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,658
    340
    Wait for official iso
     
  19. Das_Human

    Das_Human MDL Junior Member

    Apr 6, 2010
    95
    15
    0
    @abbodi1406

    Thanks for the answer!

    There are quite a few updates installed already, so I've used the BypassESU. Prior to using it though, I've checked the list of installed updates and to my surprise KB5004951 wasn't listed!
    UPDT.JPG UPDT_2.JPG
    Although I'm 110% sure it was installed successfully. Hence all the issues with printing...

    Out of curiosity I've tried to install the update again (with W7ESUI). It had installed with no issues and after a reboot it had appeared in the list of installed updates. Then uninstalled it via the Control Panel > Installed updates. Uninstallation went with no issues. Unfortunately all the above made no difference, since printing still isn't working properly. What a bummer!
     
    @abbodi1406,
    I updated en_windows_10_enterprise_ltsc_2019_x64_dvd_74865958.iso to 17763.2114 with W10UI 10.8.
    install.wim and boot.wim are properly updated, but winre.wim isn't (LCU not integrated)
    Code:
    ============================================================
    Updating winre.wim
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - Adding package Package_for_KB5005112~31bf3856ad364e35~amd64~~17763.2111.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - Adding package Package_for_KB4506578~31bf3856ad364e35~amd64~~10.0.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - Adding package Package_for_KB4589208~31bf3856ad364e35~amd64~~10.0.2.4
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1
    
    Image Version: 10.0.17763.1
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1
    
    Image Version: 10.0.17763.1
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1
    
    Image File : D:\W10UI_10.8\winre.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.