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

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

  1. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,634
    6,111
    60
    Please explain better. What reg/cmd files, where are they, etc...
     
  2. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,634
    6,111
    60
    It is worth remembering that the script is essentially intended to clean up the image, to make it clean.

    The script you mentioned was edited only for those users who want to keep Defender, without the option to disable it or not.

    I don't think it would be interesting to add it to Default.
     
  3. bendeyar

    bendeyar MDL Member

    Mar 14, 2019
    241
    510
    10
    The script is working fine now.
    No other options need to be added.
     
  4. raptorddd

    raptorddd MDL Addicted

    Aug 17, 2019
    842
    419
    30
    it has 21 hits so seems many users lkes to keep defender.

    Screenshot 2025-03-18 223427.png
     
  5. ashish1989

    ashish1989 MDL Addicted

    Sep 20, 2013
    551
    161
    30
    I think giving the choice to keep defender or not in default option would be good
     
  6. wuliyen

    wuliyen MDL Member

    Oct 6, 2009
    199
    476
    10
    #86 wuliyen, Mar 22, 2025
    Last edited: Mar 22, 2025
    merger process


    Code:
    Reg.exe delete "HKLM\SYSTEM\CurrentControlSet\Control" /v "SvcHostSplitThresholdInKB" /f
    
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\Appinfo" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\AudioEndpointBuilder" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\Audiosrv" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\CoreMessagingRegistrar" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\CryptSvc" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\dot3svc" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\DsmSvc" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\EapHost" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\EventLog" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\EventSystem" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\FontCache" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\gpsvc" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\hidserv" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\lmhosts" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\LSM" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\Netman" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\netprofm" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\nsi" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\PolicyAgent" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\ProfSvc" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\Schedule" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\SENS" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\StateRepository" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\swprv" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\TabletInputService" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\TimeBrokerSvc" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\TokenBroker" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\UserManager" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\Wcmsvc" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\wcncsvc" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\WinHttpAutoProxySvc" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\Winmgmt" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\WpnService" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\WpnUserService" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\wuauserv" /v "SvcHostSplitDisable" /t REG_DWORD /d "1" /f
    
     

    Attached Files:

  7. otvertka

    otvertka MDL Junior Member

    Aug 13, 2009
    50
    71
    0

    wuliyen, Could you give us some more information about these codes? Thank you.
     
  8. siliconbeaver

    siliconbeaver MDL Senior Member

    Apr 29, 2022
    319
    301
    10
    my silly question,

    it's well-known that, this is a thread (scripts by SunLion) for Windows 11 24H2.

    what's the difference to pm67310's thread "Script Create Win11 Version no ADS, Bypass Requirement, Remove Useless APPS, Any Language / Edition".

    my understanding is, both are the scripts for Windows 11 24H2 removing useless APPS.

    what's difference?

    further, which one is better? or which one is easier to use.


    I'm now using SunLion's version for Windows 10. but Windows 10 will be expiring later this year. thinking a plan to move to 24H2.

    Thanks,
     
  9. sainfo

    sainfo MDL Addicted

    Dec 6, 2021
    653
    1,445
    30
    #89 sainfo, Mar 23, 2025
    Last edited: Mar 23, 2025
    Needless to say, the Win11LiteCreator tool is also a pretty interesting solution for cleaning up an image from “junk”. But unless you are a PowerShell expert, you are unlikely to be able to change anything to suit your preferences in this script.

    SunLion's script is not simple either, but it uses dism, which allows a user who is not very knowledgeable in programming to easily edit this script to suit their needs. In general, as they say, to each his own, who likes what. But personally I would prefer the script from SunLion, where the script code is clear to the user and quite easy to edit to your preferences, as for me - a very good script!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. sainfo

    sainfo MDL Addicted

    Dec 6, 2021
    653
    1,445
    30
    #90 sainfo, Mar 23, 2025
    Last edited: Mar 23, 2025
    Hi, can you see what the reason is?

    1. When executing this code, it gives an error:

    !RemoveUWPapp!
    """" is not an internal or external command, essotable program or batch fillet.
    Code:
    echo.
    ECHO.
    ECHO ============================================================
    ECHO Remove Provisioned AppxPackages
    ECHO ============================================================
    for /f "tokens=2 delims=: " %%a in ('start "" /b "%DISM%" /English /Image:"%~dp0mount" /Get-ProvisionedAppxPackages ^| find "PackageName"') do (
    Set "RemoveUWPapp=%%a"
    
    for %%u in (
    DesktopAppInstaller
    SecHealthUI
    ) 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!"
      )
    )
    
    

    2. When executing this code, it gives an error:

    """" is not an internal or external command, essotable program or batch fillet
    Code:
    ECHO.
    ECHO ====================================
    ECHO Cleanup spsuperseded of install.wim
    ECHO ====================================
    "%DISM11%" /English /Image:"%~dp0mount" /Cleanup-Image /spsuperseded
    
    

    3. When executing this code, an error is generated and the Remove-Edge command is not executed:
    Code:
    echo.
    echo.
    echo ============================================================
    echo Remove-Edge
    echo ============================================================
    "%DISM11%" /English /image:"%~dp0mount" /Remove-Edge
    
    
    But if you write the code like this, the Remove-Edge command will run normally.
    Code:
    echo.
    echo.
    echo ============================================================
    echo Remove-Edge
    echo ============================================================
    Dism /Image:"%~dp0mount" /Remove-Edge
    
    
    Otherwise everything is fine, no errors.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. wuliyen

    wuliyen MDL Member

    Oct 6, 2009
    199
    476
    10
    try
    %DISM11% /scratchdir:temp /image:mount /Remove-Edge
     
  12. Low Level Perform

    Low Level Perform MDL Member

    Jul 21, 2024
    154
    124
    10
    Will this command also remove edge webview2?
    I was hoping for a command that would only remove the edge browser, leaving edge webview2.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. wuliyen

    wuliyen MDL Member

    Oct 6, 2009
    199
    476
    10
    \Windows\System32\Microsoft-Edge-WebView will be retained,
    but some software will only recognize this path: \Program Files (x86)\Microsoft\EdgeWebView

    You can just delete it like this
    rd /s /q "mount\Program Files (x86)\Microsoft\Edge"
    rd /s /q "mount\Program Files (x86)\Microsoft\EdgeCore"
    rd /s /q "mount\Program Files (x86)\Microsoft\EdgeUpdate"
     
  14. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,634
    6,111
    60

    Did you change anything in the DISM definition?
    This seems to be happening because of the Host OS and the configured DISM...

    Your Host OS is Windows 11, correct?

    Try changing in command from %DISM11% to %DISM10% and see if everything works...

    I'll test it on the Windows 11 Host OS to see what happens.
     
  15. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,634
    6,111
    60
  16. sainfo

    sainfo MDL Addicted

    Dec 6, 2021
    653
    1,445
    30
    #96 sainfo, Mar 23, 2025
    Last edited: Mar 23, 2025
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,634
    6,111
    60
  18. sainfo

    sainfo MDL Addicted

    Dec 6, 2021
    653
    1,445
    30
    #98 sainfo, Mar 23, 2025
    Last edited: Mar 23, 2025
    Used version 10, Slim parameter. Well, I'll try to figure out this situation.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,634
    6,111
    60
    In the first test I ran 24H2_Integrator_10.0_Start.cmd.

    I ran another test, this time I ran Start10.0.cmd.

    Same result, no errors.

    I don't know what's going on there...

    You could try @wuliyen's suggestion above.
     
  20. sainfo

    sainfo MDL Addicted

    Dec 6, 2021
    653
    1,445
    30
    #100 sainfo, Mar 23, 2025
    Last edited: Mar 23, 2025
    Got it, thanks, I'll try to experiment with this option Removes Appx Packages and Appx Provisioned Packages for All Users:
    Code:
    DISM.exe /Image:<path_to_image_directory> [/Get-ProvisionedAppxPackages | /Add-ProvisionedAppxPackage | /Remove-ProvisionedAppxPackage | /Set-ProvisionedAppxDataFile | /StubPackageOption]
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...