Slimdown11 – turn Windows 11 or LTSC 2024 into classic/legacy Windows

Discussion in 'Windows 11' started by SunLion, Mar 2, 2025.

  1. Ace2

    Ace2 MDL Guru

    Oct 10, 2014
    2,248
    1,956
    90
    Does this build of DismAPI_Tool happen to break Windows updates at all?
     
  2. mustafa gotr

    mustafa gotr MDL Senior Member

    Apr 17, 2018
    264
    804
    10
    If you want to compile it yourself, I can provide the source code.
     
  3. Ace2

    Ace2 MDL Guru

    Oct 10, 2014
    2,248
    1,956
    90
    You overestimate my skills, but I appreciate the optimism.
     
  4. otvertka

    otvertka MDL Member

    Aug 13, 2009
    109
    253
    10
    @SunLion Hello,
    There is a path error in the script you provided for 26H1, and because of this, the update isn't working. Here's the line: “Data is written twice”—that's the error.

    Code:
    FOR /F "eol=; tokens=1,2*" %%i in (all.txt) do if not exist "%~dp0DATA\UUP\%%i" echo Downloading: "%%i" & "%~dp0DATA\DATA\tools\%HostArchitecture%\wget.exe" -q --show-progress --no-hsts --no-check-certificate -O "%%i" "%%j"
    Once you fix this line, everything works normally.

    Code:
    FOR /F "eol=; tokens=1,2*" %%i in (all.txt) do if not exist "%~dp0DATA\UUP\%%i" echo Downloading: "%%i" & "%~dp0DATA\tools\%HostArchitecture%\wget.exe" -q --show-progress --no-hsts --no-check-certificate -O "%%i" "%%j"
     
  5. sainfo

    sainfo MDL Addicted

    Dec 6, 2021
    707
    1,590
    30
    #2045 sainfo, Jul 29, 2026
    Last edited: Jul 30, 2026
    del
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,721
    6,563
    60
    Thanks for the help.

    I'm fixing this.

    Best regards,
     
  7. sainfo

    sainfo MDL Addicted

    Dec 6, 2021
    707
    1,590
    30
    #2048 sainfo, Jul 30, 2026
    Last edited: Jul 30, 2026
    Got it, thanks! By the way: it’s not just about English support, because the script doesn’t care at all what language the image is in. The issue here is either with the image you used (it no longer contains these “Capabilities,” or they have different names in it than the ones on my list). But anyway, thank you very much for your help; I’ll take another look at my code just in case...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,721
    6,563
    60
    =========================
    2xH2_Creator_17.2
    =========================
    Update to 26x00.8973


    In this new version, several code snippets suggested by @mustafa gotr have been adopted
    We are very grateful to him for this

    Since we made several modifications and did not test every possible variable, errors may still occur
    If this happens, please let us know

    - Added new code to identify ISO images for selection (thanks to @mustafa gotr)
    - Added "Set Default Values" code, which replaces the questions at the beginning of the script (thanks to @mustafa gotr)
    - Added "Loading the Advanced Package Selector (GUI)" code (thanks to @mustafa gotr)
    - Removed the boot.wim update—which was an attempt to resolve the issue with Ventoy—as it turned out not to be the cause
    - Adjusted MAS codes for script copying options to the OEM folder or install.wim
    - Folder layout modified
    - Various minor modifications implemented

    Test with:
    - pt-br_windows_11_enterprise_ltsc_2024_x64_dvd_2bb6b75b_2.iso
    - 26100.1742.240909-0928.GE_RELEASE_SVC_REFRESH_CLIENTBUSINESS_VOL_X64FRE_PT-BR.ISO


    https://forums.mydigitallife.net/th...to-classic-legacy-windows.90039/#post-1872013


    Enjoy
     
  9. bendeyar

    bendeyar MDL Senior Member

    Mar 14, 2019
    255
    555
    10
    #2050 bendeyar, Aug 1, 2026
    Last edited: Aug 2, 2026
    Thanks to Mustafa Gotr (much better known on another site) and of course to the man
    who has been tirelessly providing us with this wonderful script for a long time, SunLion .
    For the work put into some things, the reward is money.
    For the work put into other things,
    the reward is just one word, but said from the heart and is much more valuable than money.
    And it is:
    Thank you .
     

    Attached Files:

    • 1.PNG
      1.PNG
      File size:
      1.2 KB
      Views:
      22
  10. otvertka

    otvertka MDL Member

    Aug 13, 2009
    109
    253
    10
    Hello, @SunLion
    I tested the latest script and here’s what I observed:
    1- if “%DisableStore%”==“1” echo Disable Store
    if “%DisableStore%”==‘0’ echo Enable Store—in both cases, the store is removed. I resolved this by adding the store to the “Remove ProvisionedAppxPackages” section.

    2- The “if exist” statement was used incorrectly on the OneDrive blog; I did it this way:


    Code:
    ECHO.
    ECHO.
    echo.
    echo ===========================================================
    ECHO Remove OneDrive
    echo ===========================================================
    reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\OneDrive" /v "PreventNetworkTrafficPreUserSignIn" /t REG_DWORD /d 1 /f 
    reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\OneDrive" /v "DisableFileSync" /t REG_DWORD /d 1 /f 
    reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\OneDrive" /v "DisableFileSyncNGSC" /t REG_DWORD /d 1 /f 
    reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\OneDrive" /v "DisableMeteredNetworkFileSync" /t REG_DWORD /d 1 /f 
    reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\OneDrive" /v "DisableLibrariesDefaultSaveToOneDrive" /t REG_DWORD /d 1 /f 
    REM reg delete "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\OneDrive" /v "DisableFileSyncNGSC" /f 
    reg query "HKLM\TK_NTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "OneDriveSetup" >nul 2>&1 && reg delete "HKLM\TK_NTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "OneDriveSetup" /f
    If Exist "%~dp0mount\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk" del /q /f "%~dp0mount\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk">nul 
    If Exist "%~dp0mount\Windows\System32\OneDriveSetup.exe" del /q /f "%~dp0mount\Windows\System32\OneDriveSetup.exe" 
    If Exist "%~dp0mount\Windows\SysWOW64\OneDriveSetup.exe" del /q /f "%~dp0mount\Windows\SysWOW64\OneDriveSetup.exe"
    

    3- If “%RemoveClient%”==‘1’, echo “Remove ClickToDo - GetStarted - WindowsBackup,” the search icon definitely doesn’t work.
    These are my observations; I wanted to share them in the hope that they’ll be helpful. Thank you for your work. Everything went very well; my install.wim size is now 4.90 GB.
    My install.wim is 4.90 GB, yes, but I made significant changes—removing Edge and disabling Defender—which is why the size is so high.
     
  11. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,721
    6,563
    60
    Yes, the search icon doesn't work if that option is enabled.

    Thanks for the feedback.

    I'll check and fix it.

    Best regards,
     
  12. otvertka

    otvertka MDL Member

    Aug 13, 2009
    109
    253
    10

    I noticed one more thing: in some places it said “Integratestore” and in others “IntegratestoreLTSC,” so I made them all the same.
    Changes I made:

    852-853--- IntegrateStore → IntegrateStoreLTSC
    2395--- IntegrateStore → IntegrateStoreLTSC

    and: My list is a little different, so I wanted to share it as an example.


    Code:
    echo.
    ECHO.
    ECHO ============================================================
    ECHO Remove Provisioned AppxPackages
    ECHO ============================================================
    
    set "NoRemUWPapps=Microsoft.SecHealthUI,Microsoft.DesktopAppInstaller"
    set "NoRemUWPapps=%NoRemUWPapps%,Microsoft.HEIFImageExtension,Microsoft.HEVCVideoExtension,Microsoft.VP9VideoExtensions,Microsoft.WebMediaExtensions,Microsoft.WebpImageExtension"
    set "NoRemUWPapps=%NoRemUWPapps%,Microsoft.Windows.CloudExperienceHost,Microsoft.AccountsControl,Microsoft.XboxIdentityProvider"
    set "NoRemUWPapps=%NoRemUWPapps%,Microsoft.NET.Native,Microsoft.UI.Xaml,Microsoft.VCLibs.140.00,Microsoft.WindowsAppRuntime"
    if "%DisableStore%"=="0" set "NoRemUWPapps=%NoRemUWPapps%,Microsoft.WindowsStore,Microsoft.StorePurchaseApp,Microsoft.Services.Store.Engagement"
    
    if "%EnableMediaPlayer%"=="1" set "NoRemUWPapps=%NoRemUWPapps%,Microsoft.ZuneMusic"
    if "%EnableClassicCalculator%"=="0" set "NoRemUWPapps=%NoRemUWPapps%,Microsoft.WindowsCalculator"
    if "%RemoveEdge%"=="0" set "NoRemUWPapps=%NoRemUWPapps%,Microsoft.MicrosoftEdge,MicrosoftEdge,Microsoft.Win32WebViewHost"
    for /f "tokens=2 delims=: " %%a in ('start "" /b "%DISM%" /English /Image:"%~dp0mount" /Get-ProvisionedAppxPackages ^| find "PackageName"') do (
        set "RemoveUWPapp=%%a"
     
        for %%u in (%NoRemUWPapps%) do (
           echo %%a | findstr /l /i /c:"%%u" >nul 2>&1 && set RemoveUWPapp=
        )
    
        if not "!RemoveUWPapp!"=="" (
           ECHO !RemoveUWPapp!
           "%DISM11%" /English /quiet /Image:"%~dp0mount" /Remove-ProvisionedAppxPackage /PackageName:"!RemoveUWPapp!"
        )
    )
     
  13. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,721
    6,563
    60

    OK, I see you've added your preferences to that block.

    In this version, I opted to remove all `ProvisionedAppxPackages` and perform the update using newer files within the `Updating ProvisionedAppxPackages` block.

    The only exception is for BUSINESS images, which I observed were already being updated with the recent packages.

     
  14. otvertka

    otvertka MDL Member

    Aug 13, 2009
    109
    253
    10
    There's one more important thing—please check the :skipNetfx3 tag. It looks like it's in the wrong place.
     
  15. Mavericks Choice

    Mavericks Choice MDL Guru

    Aug 5, 2015
    4,405
    17,028
    150
    I find in my tests the search icon doesn't automatically show, just a matter of toggling in taskbar settings.
     
  16. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,721
    6,563
    60
    #2057 SunLion, Aug 2, 2026
    Last edited: Aug 2, 2026
    (OP)
    I'll check it out...

    That seems correct to me, as this tag begins with the choice of whether or not to enable netfx3 and ends after the re-application of the net481 and LCU updates.

    In other words, if the choice is not to enable netfx3, the updates do not need to be reinstalled.

    Keep in mind that we are talking about the "2xH2_Creator_17.2" script here.
     
  17. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,721
    6,563
    60
    There are a few situations that cause this:

    1 - If you apply the custom WPI settings

    2 - If you choose to disable Windows Search

    3 - If you choose RemoveClient=1
     
  18. otvertka

    otvertka MDL Member

    Aug 13, 2009
    109
    253
    10
    You're absolutely right—I didn't notice that... I went over the entire script and checked all the code line by line... I think I'll finish it today. Thank you.
     
  19. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,721
    6,563
    60
    Thank *you*.

    That way, we feel more confident about what we're doing.

    Thanks!