Slimdown10 – turn Windows 10 22H2 or LTSC 2021 into classic/legacy Windows

Discussion in 'Windows 10' started by Deleted member 190847, Feb 15, 2023.

  1. mustafa gotr

    mustafa gotr MDL Junior Member

    Apr 17, 2018
    72
    197
    0
    #2361 mustafa gotr, Feb 25, 2025
    Last edited: Feb 25, 2025
  2. bendeyar

    bendeyar MDL Junior Member

    Mar 14, 2019
    86
    162
    0
    #2363 bendeyar, Feb 27, 2025
    Last edited: Feb 27, 2025
    Today I had to modify Windows 11 ltsc 24H2.
    before working with ntlite;
    install.wim=3,998,184 kb
    after working with ntlite;
    install.win=3,406,571 kb
    Here is what I use in NTLite.
     

    Attached Files:

  3. sainfo

    sainfo MDL Senior Member

    Dec 6, 2021
    332
    666
    10
    Thanks, I'll try this version of the preset too.

    By the way: the version of the preset proposed by SunLion is also not bad at all.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. sainfo

    sainfo MDL Senior Member

    Dec 6, 2021
    332
    666
    10
    #2365 sainfo, Feb 27, 2025
    Last edited: Feb 28, 2025
    Did you use the image 26100.1742 or 26100.1 ? I get approximately the same results with image 26100.1742 and 200 MB less with image 26100.1 if I update them to version 26100.2894 and more by the same 200 MB than you if I update the image to version 26100.3321. Apparently MS added even more “garbage” in update 26100.3321, which we are not removing yet.
    :thinking:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. wuliyen

    wuliyen MDL Novice

    Oct 6, 2009
    34
    55
    0
    Reduce size by removing unnecessary features
     

    Attached Files:

  6. sainfo

    sainfo MDL Senior Member

    Dec 6, 2021
    332
    666
    10
    Now all that remains is to figure out how to attach these .txt files to the SunLion script or to the NTLite preset so that they are deleted correctly.

    The list for deletion is quite large, are you sure that all this can be painlessly removed from the image and without “breaking” the system itself?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. wuliyen

    wuliyen MDL Novice

    Oct 6, 2009
    34
    55
    0
    I will provide some examples later
     
  8. sainfo

    sainfo MDL Senior Member

    Dec 6, 2021
    332
    666
    10
    Ok, thank you, I will test the option you suggested. My motto: the smaller the image and the less “garbage” left in it, the better. Of course, if all this does not cause disruption to the basic functions of the system. Of course, version “G” meets all these requirements almost 100%, but MS wouldn’t be MS if they hadn’t messed up here too.

    This system is only in English and Chinese. I tried to localize it to my own, ru-RU, image, it is localized without any problems at all, but the localized system does not start - the blue screen of death.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. wuliyen

    wuliyen MDL Novice

    Oct 6, 2009
    34
    55
    0
    Example of deleting a file to reduce its size
    Based on windows 11 24H2 26100
    The default system is installed on the C drive
    Boot the system using PE and then run the batch process
    Please test with a virtual machine first
    To apply the list to an offline image, some modifications may be required
     

    Attached Files:

  10. bendeyar

    bendeyar MDL Junior Member

    Mar 14, 2019
    86
    162
    0
    Only 26100.1742 images
     
  11. sainfo

    sainfo MDL Senior Member

    Dec 6, 2021
    332
    666
    10
    #2372 sainfo, Feb 28, 2025
    Last edited: Feb 28, 2025
    But since we mainly work with the SunLion tool, that is, with the connected image, it will probably be something like this:
    Code:
    
    
    echo.
    ECHO.
    ECHO =============================================================
    ECHO Cleaning install.wim image
    ECHO =============================================================
    for /d %%p in ("%~dp0mount\PerfLogs\*") do rd /s /q %%p
    del /f /s /q "%~dp0mount\Windows\WinSxS\Backup\*" >nul 2>&1
    del /f /s /q "%~dp0mount\Windows\WinSxS\ManifestCache\*.bin" >nul 2>&1
    del /f /s /q "%~dp0mount\Windows\WinSxS\Temp\PendingDeletes\*" >nul 2>&1
    for /d %%p in ("%~dp0mount\Windows\WinSxS\Temp\InFlight\*") do rd /s /q %%p
    del /f /s /q "%~dp0mount\Windows\WinSxS\Temp\TransformerRollbackData\*" >nul 2>&1
    del /f /s /q "%~dp0mount\Windows\CbsTemp\*" >nul 2>&1
    del /f /s /q "%~dp0mount\Windows\inf\*.log" >nul 2>&1
    del /f /s /q "%~dp0mount\Windows\System32\config\*.log*" >nul 2>&1
    del /f /s /q "%~dp0mount\Windows\System32\config\*.blf*" >nul 2>&1
    del /f /s /q "%~dp0mount\Windows\System32\config\*.regtrans-ms*" >nul 2>&1
    del /f /s /q "%~dp0mount\Windows\System32\SMI\Store\Machine\*.log*" >nul 2>&1
    del /f /s /q "%~dp0mount\Windows\System32\SMI\Store\Machine\*.blf*" >nul 2>&1
    del /f /s /q "%~dp0mount\Windows\System32\SMI\Store\Machine\*.regtrans-ms*" >nul 2>&1
    If Exist "%~dp0mount\Users\Administrator" del /f /s /q "%~dp0mount\Users\Administrator\*.log*" >nul 2>&1
    IF Exist "%~dp0mount\Users\Administrator" del /f /s /q "%~dp0mount\Users\Administrator\*.blf*" >nul 2>&1
    IF Exist "%~dp0mount\Users\Administrator" del /f /s /q "%~dp0mount\Users\Administrator\*.regtrans-ms*" >nul 2>&1
    If Exist "%~dp0mount\Users\Administrator" del /f /s /q "%~dp0mount\Users\Administrador\*.log*" >nul 2>&1
    IF Exist "%~dp0mount\Users\Administrator" del /f /s /q "%~dp0mount\Users\Administrador\*.blf*" >nul 2>&1
    IF Exist "%~dp0mount\Users\Administrator" del /f /s /q "%~dp0mount\Users\Administrador\*.regtrans-ms*" >nul 2>&1
    del /f /s /q "%~dp0mount\Users\Default\*.log*" >nul 2>&1
    del /f /s /q "%~dp0mount\Users\Default\*.blf*" >nul 2>&1
    del /f /s /q "%~dp0mount\Users\Default\*.regtrans-ms*" >nul 2>&1
    del /f /s /q "%~dp0Mount\Windows\System32\InputMethod\*" >nul 2>&1
    del /f /s /q "%~dp0Mount\Windows\System32\migration\*" >nul 2>&1
    del /f /s /q "%~dp0Mount\Windows\System32\migwiz\*" >nul 2>&1
    del /f /s /q "%~dp0Mount\Windows\System32\Recovery\*" >nul 2>&1

    del /f /s /q "%~dp0Mount\Windows\System32\aadcloudap.dll*" >nul 2>&1
    del /f /s /q "%~dp0Mount\Windows\System32\aadjcsp.dll*" >nul 2>&1
    del /f /s /q "%~dp0Mount\Windows\System32\aitstatic.exe*" >nul 2>&1
    del /f /s /q "%~dp0Mount\Windows\System32\alg.exe*" >nul 2>&1
    .
    .
    .
    and so on the code, in the same spirit ...
    Thank you very much, we will test this one too, your option for cleaning the image from unnecessary “garbage”!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. wuliyen

    wuliyen MDL Novice

    Oct 6, 2009
    34
    55
    0
    yes
    del /s /q c:\Windows\System32\*.*
    to
    del /s /q "%~dp0Mount\Windows\System32\*.*
     
  13. wuliyen

    wuliyen MDL Novice

    Oct 6, 2009
    34
    55
    0
    rem == delete Defender ==
    rd /s /q "mount\Program Files\Windows Defender"
    rd /s /q "mount\Program Files\Windows Defender Advanced Threat Protection"
    rd /s /q "mount\Program Files (x86)\Windows Defender"
    rd /s /q "mount\ProgramData\Microsoft\Windows Defender"
    rd /s /q "mount\ProgramData\Microsoft\Windows Defender Advanced Threat Protection"
    rd /s /q "mount\ProgramData\Microsoft\Windows Security Health"
    rd /s /q "mount\Users\All Users\Microsoft\Windows Defender"
    rd /s /q "mount\Users\All Users\Microsoft\Windows Defender Advanced Threat Protection"
    rd /s /q "mount\Users\All Users\Microsoft\Windows Security Health"
    rd /s /q "mount\Windows\System32\SecurityHealth"
    del /s /q mount\Windows\System32\SecurityHealth*.*
    del /s /q mount\Windows\System32\smartscreen*.*
    del /s /q mount\Windows\System32\winshfhc.dll
    del /s /q mount\Windows\System32\SenseSubAuth.dll
    del /s /q mount\Windows\System32\webthreatdefsvc.dll
    del /s /q mount\Windows\System32\webthreatdefusersvc.dll
    del /s /q mount\Windows\System32\drivers\WdNisDrv.sys
     
  14. sainfo

    sainfo MDL Senior Member

    Dec 6, 2021
    332
    666
    10
    Great, now the floor is up to SunLion. Looking forward to an updated Integrator tool from him in light of new proposals. Perhaps, in order not to complicate the already complex script code, it makes sense to place all these additional files to be deleted in Capabilities3 and Capabilities4. Of course, if this is possible, but he knows better ...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. SunLion

    SunLion MDL Addicted

    May 11, 2011
    960
    2,923
    30
    I'll try to adjust it and put it to the test...
     
  16. sainfo

    sainfo MDL Senior Member

    Dec 6, 2021
    332
    666
    10
    #2379 sainfo, Mar 1, 2025
    Last edited: Mar 1, 2025
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. SunLion

    SunLion MDL Addicted

    May 11, 2011
    960
    2,923
    30

    Attached Files: