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.
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
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,
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!
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. Spoiler 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 Spoiler 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: Spoiler 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. Spoiler Code: echo. echo. echo ============================================================ echo Remove-Edge echo ============================================================ Dism /Image:"%~dp0mount" /Remove-Edge Otherwise everything is fine, no errors.
Will this command also remove edge webview2? I was hoping for a command that would only remove the edge browser, leaving edge webview2.
\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"
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.
This command removes Edge and all its remnants. It does not remove WebView2. But one command blocks the installation of WebView2, as mentioned in a few topics before and as suggested by @sergey130270: https://forums.mydigitallife.net/th...ic-legacy-windows.86552/page-124#post-1873478
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.
Got it, thanks, I'll try to experiment with this option Removes Appx Packages and Appx Provisioned Packages for All Users: Spoiler Code: DISM.exe /Image:<path_to_image_directory> [/Get-ProvisionedAppxPackages | /Add-ProvisionedAppxPackage | /Remove-ProvisionedAppxPackage | /Set-ProvisionedAppxDataFile | /StubPackageOption]