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.
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.
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.
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?
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.
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
But since we mainly work with the SunLion tool, that is, with the connected image, it will probably be something like this: Spoiler 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”!
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
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 ...