1. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,601
    60
    It is a suggestion to display only one option in the Toolkit.

    At IMCK it is already implemented. Specifically because of the conversation you and I had this week about ESD to WIM Conversion.
    Thus, no one would have doubts anymore, putting that, an option makes the ideal choice for each person's case.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. bala1

    bala1 MDL Member

    May 2, 2015
    179
    150
    10
    okay, got it
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. bala1

    bala1 MDL Member

    May 2, 2015
    179
    150
    10
    truth
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,626
    210
    Will fix it.
     
  5. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,626
    210
    I think, I found the cause for the Remote Desktop not working when Windows Mixed Reality is removed, will fix it soon.
     
  6. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,626
    210
    There are plans to merge the Internet and Network menus in future versions, will be moving the Remote Desktop Client to Remoting menu.
     
  7. Knives*

    Knives* MDL Member

    Sep 21, 2013
    239
    142
    10
    @MSMG ,

    The original thread here is still showing "MSMG ToolKit v12.9".
     
  8. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,626
    210
    have uploaded a newer version of ToolKitHelper.exe, can you try the component removal with it and let me know the results.
     
  9. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,626
    210
    Have made the changes.
     
  10. bala1

    bala1 MDL Member

    May 2, 2015
    179
    150
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. qazesz

    qazesz MDL Novice

    Apr 30, 2018
    5
    5
    0
    It's fixed now, thank you.
     
  12. n3ro97

    n3ro97 MDL Member

    Oct 17, 2018
    105
    63
    10
    OS: Windows 10 Enterprise LTSC 2021 21H2 19044.1288
    When I remove other components and keep Windows Store Back-end Client, AAD Broker Plugin, Accounts Control, windows store won't download and install with command line wsreset -i.
    I also tried abbodi1406 Microsoft Store Lite version but when I open it, app ends up with infinite loading screen.
    What component should I also retain then? Because Toolkit description says: Windows Store Back-end Client, AAD Broker Plugin, Accounts Control is only required for windows store to work, but looks like something else is required.

    Windows Store downloads, installs and works flawlessly on the clean original Windows 10 Enterprise LTSC 2021 21H2 19044.1288 with both methods: wsreset -i and abbodi1406 Microsoft Store Lite Version.
     
  13. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,601
    60
    Have you applied the Disable Windows Update Tweak?
    Not necessarily, but that could be it.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. n3ro97

    n3ro97 MDL Member

    Oct 17, 2018
    105
    63
    10
    #24174 n3ro97, Dec 4, 2022
    Last edited: Dec 5, 2022
    Yes, I did. I will try without applying this tweak.
    Please don't tell me I can't use Microsoft Store App with disabled WU...

    Can I at least apply Disable Windows Update tweak and modify one of registry values responsible for blocking Microsoft Store? I wonder which one it is.
    The list of registry entries that are modified when applying Disable Windows Update tweak:
    Code:
    if "%Tweak%" equ "DisableWindowsUpdate"
    (
    Reg add "HKLM\TK_NTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization" /v "SystemSettingsDownloadMode" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\TK_SOFTWARE\Microsoft\Speech_OneCore\Preferences" /v "ModelDownloadAllowed" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization" /v "OptInOOBE" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" /v "DODownloadMode" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" /v "AutoDownload" /t REG_DWORD /d "5" /f >nul 2>&1
    Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Services\7971f918-a847-4430-9279-4a52d1efe18d" /v "RegisteredWithAU" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-DeviceUpdateAgent/Operational" /v "Enabled" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-WindowsUpdateClient/Operational]" /v "Enabled" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\TK_SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "HideMCTLink" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Speech" /v "AllowSpeechModelUpdate" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DODownloadMode" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "DoNotConnectToWindowsUpdateInternetLocations" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "DisableWindowsUpdateAccess" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "WUServer" /t REG_SZ /d " " /f >nul 2>&1
    Reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "WUStatusServer" /t REG_SZ /d " " /f >nul 2>&1
    Reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "UpdateServiceUrlAlternate" /t REG_SZ /d " " /f >nul 2>&1
    Reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "AUOptions" /t REG_DWORD /d "2" /f >nul 2>&1
    Reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "NoAutoUpdate" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "UseWUServer" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKLM\TK_SYSTEM\ControlSet001\Services\wuauserv" /v "Start" /t REG_DWORD /d "4" /f >nul 2>&1
    )
     
  15. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,601
    60
    #24175 inTerActionVRI, Dec 4, 2022
    Last edited: Dec 4, 2022
    I think I modified something on IMCK, on Custom Disable Windows Update.

    I know Downloads through the store work with Windows Update disabled. But I never tested the command: wsreset -i

    EDIT:
    Code:
               if "!T_CustomDisableWindowsUpdateTweaks!" equ "+" (
                   echo.
                   echo.##### Custom Disable Windows Update Tweaks #####
                   reg.exe add "HKLM\TK_NTUSER\Software\Microsoft\Windows\CurrentVersion\DeliveryOptimization" /v "SystemSettingsDownloadMode" /t REG_DWORD /d "0" /f >nul 2>&1
                   reg.exe add "HKLM\TK_DEFAULT\Software\Microsoft\Windows\CurrentVersion\DeliveryOptimization" /v "SystemSettingsDownloadMode" /t REG_DWORD /d "0" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization" /v "OptInOOBE" /t REG_DWORD /d "0" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" /v "DODownloadMode" /t REG_DWORD /d "0" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DODownloadMode" /t REG_DWORD /d "0" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DOMinBackgroundQos" /t REG_DWORD /d "256" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DOMinBatteryPercentageAllowedToUpload" /t REG_DWORD /d "100" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DOMaxUploadBandwidth" /t REG_DWORD /d "1" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DOPercentageMaxDownloadBandwidth" /t REG_DWORD /d "1" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DOMaxDownloadBandwidth" /t REG_DWORD /d "1" /f >nul 2>&1
    
                   reg.exe add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Services\7971f918-a847-4430-9279-4a52d1efe18d" /v "registeredWithAU" /t REG_DWORD /d "0" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v "HideMCTLink" /t REG_DWORD /d "1" /f >nul 2>&1
    
                   if "%ImageDefaultLanguage%" equ "zh-CN" reg.exe add "HKLM\TK_SOFTWARE\Microsoft\LexiconUpdate\loc_0804" /v "HapDownloadEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
                   if "%ImageDefaultLanguage%" equ "zh-HK" reg.exe add "HKLM\TK_SOFTWARE\Microsoft\LexiconUpdate\loc_0804" /v "HapDownloadEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
                   if "%ImageDefaultLanguage%" equ "zh-TW" reg.exe add "HKLM\TK_SOFTWARE\Microsoft\LexiconUpdate\loc_0804" /v "HapDownloadEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
    
                   if "%SelectedSourceOS%" neq "w10" if "%SelectedSourceOS%" neq "w11" (
                       reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\Gwx" /v "DisableGwx" /t REG_DWORD /d "1" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "DisableOSUpgrade" /t REG_DWORD /d "1" /f >nul 2>&1
                   )
                   if "%SelectedSourceOS%" neq "w7" if "%SelectedSourceOS%" neq "w81" (
                       reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "DeferUpdatePeriod" /t REG_DWORD /d "0" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "DeferUpgrade" /t REG_DWORD /d "1" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "DeferUpgradePeriod" /t REG_DWORD /d "1" /f >nul 2>&1
                       rem reg.exe add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Services\Pending\7971f918-a847-4430-9279-4a52d1efe18d" /v "ClientApplicationID" /t REG_SZ /d "MoUpdateOrchestrator" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Services\Pending\7971f918-a847-4430-9279-4a52d1efe18d" /v "RegisterWithAU" /t REG_DWORD /d "0" /f >nul 2>&1
                   )
    
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "AllowAutoWindowsUpdateDownloadOverMeteredNetwork" /t REG_DWORD /d "0" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "DisableDualScan" /t REG_DWORD /d "1" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "DisableOSUpgrade" /t REG_DWORD /d "1" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "ElevateNonAdmins" /t REG_DWORD /d "0" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "ExcludeWUDriversInQualityUpdate" /t REG_DWORD /d "0" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "SetDisableUXWUAccess" /t REG_DWORD /d "1" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "SetRestartWarningSchd" /t REG_DWORD /d "0" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "AlwaysAutoRebootAtScheduledTime" /t REG_DWORD /d "0" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "DoNotConnectToWindowsUpdateInternetLocations" /t REG_DWORD /d "0" /f >nul 2>&1
                   rem reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "DoNotConnectToWindowsUpdateInternetLocations" /t REG_DWORD /d "1" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "DisableWindowsUpdateAccess" /t REG_DWORD /d "0" /f >nul 2>&1
                   rem reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "DisableWindowsUpdateAccess" /t REG_DWORD /d "1" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "WUServer" /t REG_SZ /d " " /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "WUStatusServer" /t REG_SZ /d " " /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "UpdateServiceUrlAlternate" /t REG_SZ /d " " /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "AUOptions" /t REG_DWORD /d "2" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "AutoInstallMinorUpdates" /t REG_DWORD /d "0" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "IncludeRecommendedUpdates" /t REG_DWORD /d "0" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "NoAutoRebootWithLoggedOnUsers" /t REG_DWORD /d "1" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "UseWUServer" /t REG_DWORD /d "0" /f >nul 2>&1
                   rem reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "UseWUServer" /t REG_DWORD /d "1" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "NoAutoUpdate" /t REG_DWORD /d "1" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "RebootRelaunchTimeoutEnabled" /t REG_DWORD /d "1" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "RebootRelaunchTimeout" /t REG_DWORD /d "10" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "RebootWarningTimeoutEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
                   rem reg.exe add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" /v "AutoDownload" /t REG_DWORD /d "4" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" /v "AutoDownload" /t REG_DWORD /d "5" /f >nul 2>&1
                   rem reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\WindowsStore" /v "AutoDownload" /t REG_DWORD /d "4" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\WindowsStore" /v "AutoDownload" /t REG_DWORD /d "5" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SYSTEM\ControlSet001\Services\WaaSMedicSvc" /v "Start" /t REG_DWORD /d "4" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SYSTEM\ControlSet001\Services\wuauserv" /v "Start" /t REG_DWORD /d "3" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Speech" /v "AllowSpeechModelUpdate" /t REG_DWORD /d "1" /f >nul 2>&1
               )
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. OpenSourceGhost

    OpenSourceGhost MDL Member

    Feb 14, 2022
    170
    24
    10
    Is there a Remote Desktop package? I need one for Home version, which does not come with Remote Desktop...
     
  17. Tiger-1

    Tiger-1 MDL Guru

    Oct 18, 2014
    8,296
    11,544
    270
    Oh my good God am I doing something wrong and I can't figure out where? because every time I use Toolkit V13 it always presents the results, see spoiler's; in this way if anyone can help me I will be eternally grateful thank you in advance...;):mad:
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,601
    60
    I must have misunderstood your question... But here we go...

    Were are the spoiler's?

    In the attachments, I saw a nice decrease from the previous size to the final size of the iso. From 7Gb to 3.5Gb

    Would it be this? This is normal for ESD compression and I know you know this.

    So, since it's nothing like that, point exactly:
    What do you suspect is wrong?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. Tiger-1

    Tiger-1 MDL Guru

    Oct 18, 2014
    8,296
    11,544
    270
    #24179 Tiger-1, Dec 5, 2022
    Last edited: Dec 7, 2022
    @inTerActionVRI
    1-Hello good friend, well the problem is the way I'm using the script see if my procedure is correct (although I for some reason know that the way I'm understanding how to remove it is wrong and so far I haven't managed to get to a common denominator in this way my iso resulted in an unexpected size which in the "front" the problems begin to happen; see well by my research here on MDL, Youtube, CTT and several others the iso's of Windows 10 are around of ~2.6, 2.8GB but my iso's no matter how hard I try they are NEVER below 3.31GB and it's exactly the first version I made and also the last iso I made the process so I urgently need to solve this problem.

    2-on the other hand I "discovered" another way to use Toolkit see my reasoning:

    1-copy the Toolkit V13 files (with the new ToolkitHelper) to c:
    2-I follow all the procedures recommended by the MSMG (I believe that my problem is here: maybe the way I understood it is not the same as our Master MSMG
    3. I faithfully follow all the operations that the script asks for but... when I get to the stage of converting from wim to esd, I realize that once again my iso will have ~3,31.3, 3,5 GB and never less than
    4-of course that I can't be happy ok, so with your vast knowledge I believe you should solve my problem in minutes
    5-thank you in advance for your already known attention and goodwill towards the users of this section thanks in advance
    ** Just one last comment: this version I'm using I did the job and installed the system on 20.11.2022 and so far I had no problem with sfc / scannow, no blue screen, and no problem with drivers too :confused:;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,601
    60
    #24180 inTerActionVRI, Dec 5, 2022
    Last edited: Dec 5, 2022
    Remove Winre.wim from all install.wim indexes. It will decrease 500mb.

    Remove WinPE, it's boot.wim index 1.

    I know how to do this. But I don't know if index 2 needs to remain index 2.
    So to do this you need to create an empty index 1 in boot.wim.

    To remove winre.wim Mount your image on the IMCK when asked if you want to mount winre, choose R to remove. Then do the procedure to close the image already converting it into ESD.


    EDIT: @Tiger-1, I implemented removing Index 1 from Boot.wim on IMCK.
    I'll test it and let you know if it's OK.

    I took care to implement a counter for the Boot.wim indices.
    Code:
    :GetImageCount
    
    :: Get total no of Indexes present in the Image.
    for /F "tokens=2 delims=: " %%a in ('%DISM% /Get-ImageInfo /ImageFile:"%~1" ^| findstr.exe /I Index') do (
       if "%~1" equ "%BootWim%" set /A BootCount=%%a
       if "%~1" neq "%BootWim%" set /A ImageCount=%%a
    )
    

    Replaced all mount paths from:
    %BootMount%\2
    to:
    %BootMount%\!BootCount!

    Thus, as all boot.wim checking loops have been replaced from:
    for /L %%i (1, 1, 2) do (
    to:
    for /L %%i (1, 1, !BootCount!) do (

    Thus, no functions that integrate or update Setup Boot will break.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...