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. bachru2

    bachru2 MDL Novice

    Nov 8, 2009
    5
    7
    0
    I created wim from 24H2 ver 2.6 default. reporting 2 problem
    1-Although selected defender enable. defender is not working cant start defender and windows security services access denied
    2-Search box is inactive cant type anything.
    if Openshell or StartallBack is installed search function start functioning
    rest everything works smoothly and less than 100 services running
     
  2. sergey130270

    sergey130270 MDL Senior Member

    May 15, 2014
    291
    368
    10
    Removing Client.CoreAI - breaks the search on the taskbar, it is directly responsible for the operation of intelligent search in Windows 11
    Find the line Client.CoreAI in your script and delete it and the taskbar search will work.
    These lines are approximately like this:

    setlocal EnableDelayedExpansion

    If "%RemoveTelemetryApps%"=="1" (
    echo.
    echo.
    echo ============================================================
    echo Remove SystemApps with telemetry from InboxApplications
    echo ============================================================
    echo.
    set "AppxKey=HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications"
    for %%i in (
    Client.AIX
    Client.CBS
    Client.CoreAI
    ) do (
    for /f %%a in ('reg query "!AppxKey!" /f %%i /k ^| find /i "InboxApplications"') do (
    reg delete "%%a" /f >nul 2>&1
    if "!ERRORLEVEL!"=="0" (
    echo [OK] Removed: %%i from %%a
    ) else (
    echo [ERROR] Failed to remove: %%i from %%a
    )
    )
    )
    )
    endlocal
     
  3. sainfo

    sainfo MDL Addicted

    Dec 6, 2021
    536
    1,171
    30
    #3323 sainfo, Aug 1, 2025
    Last edited: Aug 5, 2025
    This script is based on the script from SunLion. I think that SunLion will fix this problem. Or just follow sergey130270's advice and remove the Client.CoreAI line from the script.
    Code:
    
    echo.
    echo ============================================================
    echo === Delete SystemApps with telemetry from InboxApplications to prevent them getting deployed ===
    echo ============================================================
    echo.
    set key="HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications"
    for %%i in (
    Client.AIX
    Client.CBS
      ) do (
    for /f %%a in ('reg query "%key%" /f %%i /k ^| find /i "InboxApplications"') do if not errorlevel 1 (reg delete %%a /f)
    echo %%i
      )
    )
    
    
    Actually, all this needs to be tested, because I never deleted this Client.CoreAI and I never had problems with Search. I compiled assembly 26200.5733 for myself using this script. It works fine, I have no problems with searching.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. DrakeBond

    DrakeBond MDL Novice

    Oct 28, 2020
    35
    48
    0
    Yes that fixed it for me.
    You are the best. Thank you Very much!
     
  5. sainfo

    sainfo MDL Addicted

    Dec 6, 2021
    536
    1,171
    30
    #3325 sainfo, Aug 5, 2025
    Last edited: Aug 11, 2025
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Mavericks Choice

    Mavericks Choice MDL Guru

    Aug 5, 2015
    3,782
    15,345
    120
    #3326 Mavericks Choice, Aug 6, 2025
    Last edited: Aug 6, 2025
    @sainfo a few errors & wim increased by 2gb
    Code:
     ============================================================
     === Do you want DISABLE Windows Store? ===
     ============================================================
    Yes
     ============================================================
     === Do you want REMOVE ClickToDo, GetStarted, WindowsBackup? ===
     ============================================================
    Yes
     ============================================================
     === Do you want DISABLE Windows Search? ===
     ============================================================
    No
     ============================================================
     === Do you want DISABLE Windows Defender? ===
     ============================================================
    Yes
     ============================================================
     === Do you want to REMOVE Edge completely? ===
     ============================================================
    Yes
     === Do you want to Apply Your PersonalTweaks? ===
    Yes
     ============================================================
     === Do you want Enable Media Player? ===
     ============================================================
    Yes
     ============================================================
     === Do you want Enable Classic Calculator? ===
     ============================================================
    No
     ============================================================
     === Do you want Enable NetFX3? ===
     ============================================================
    No
     ============================================================
     ============================================================
    Yes
     ============================================================
     === Copy Your PersonalTweaks REG to Tweaks Folder ===
     ============================================================
     ============================================================
     === Copy Your PersonalTweaks REG and CMD to $OEM$\$$\Setup ===
     ============================================================
    24H2_UpdateOS_3.5.3 
     ============================================================ 
     === Configured Options at Wed 06/08/2025, 17:55:07.39 ===
     ============================================================ 
    == Disable Store
    == Remove ClickToDo - GetStarted - WindowsBackup
    == Enable WindowsSearch
    == Disable Windows Defender
    == Remove Edge completely
    == Apply PersonalTweaks
    == Enable MediaPlayer
    == Enable Modern Calculator
    == Do Not Enable NetFX3
    == Remove Telemetry Apps from InboxApplications
      ============================================================
     ============================================================
     === Creating Mount Folders and Temporary Folders ===
     === Export wim file to temporary folder ===
     ============================================================
     ============================================================
     === Mount the install.wim image ===
     ============================================================
    Mounting image with index 1
    Mount directory: "C:\Users\MC\Desktop\24H2_UpdateOS_v.3.5.3\Data\Mount"
     ============================================================
     === Running for integrate updates ===
     ============================================================
     ============================================================
     ===  Image optimization of catalog components ===
     ============================================================
     ============================================================
     === Checking Current build ===
     ============================================================
     ============================================================
     === Remove-Edge ===
     ============================================================
     ============================================================
     === Remove MicrosoftEdgeDevToolsClient from Disk ===
     ============================================================
     ============================================================
     === Mount Image Registry ===
     ============================================================
     ============================================================
     === Block installation of Edge Update ===
     ============================================================
     ============================================================
     === Unmounting Image Registry === 
     ============================================================
     ============================================================
     === Remove Capabilities ===
     ============================================================
    App.StepsRecorder~~~~0.0.1.0
    Browser.InternetExplorer~~~~0.0.11.0
    Hello.Face.20134~~~~0.0.1.0
    Microsoft.Windows.PowerShell.ISE~~~~0.0.1.0
    OneCoreUAP.OneSync~~~~0.0.1.0
    Microsoft.Windows.MSPaint~~~~0.0.1.0
    Print.Fax.Scan~~~~0.0.1.0
     ============================================================
     === Remove Provisioned AppxPackages === 
     ============================================================
     ============================================================
     === Mount Image Registry === 
     ============================================================
     ============================================================
     === Set remove the following tasks by default ===
     ============================================================
     ============================================================
     === Remove Provisioned AppxPackages from Registry ===
     ============================================================
    BingWeather
    GetHelp
    Getstarted
    MicrosoftEdge.Stable
    MicrosoftOfficeHub
    MicrosoftSolitaireCollection
    QuickAssist
    WindowsFeedbackHub
     ============================================================ 
     === Remove System UWP Apps from Registry === 
     ============================================================ 
    BioEnrollment
    DevHome
    MicrosoftEdge
    MicrosoftEdgeDevToolsClient
    NarratorQuickStart
    Windows.CBSPreview
     ============================================================
     === Disable AI Data Analysis and Copilot ===
     ============================================================
     ============================================================
     === Disable WindowsStore ===
     ============================================================
     ============================================================
     === Hide Side Folders in Explorer ===
     ============================================================
     ============================================================
     === Remove OneDrive ===
     ============================================================
     ============================================================
     === Disable  Xbox ===
     ============================================================
     ============================================================
     === Disable Services Xbox ===
     ============================================================
    Disabling service XblAuthManager
    Disabling service XblGameSave
    Disabling service xboxgip
    Disabling service XboxGipSvc
    Disabling service XboxNetApiSvc
     ============================================================
     === Remove Xbox Task ===
     ============================================================
    Removing task XblGameSave\XblGameSaveTask
     ============================================================
     === Disable GameDVR ===
     ============================================================
     ============================================================
     === Don't add "- Shortcut" to new shortcuts ===
     ============================================================
     ============================================================
     === Show File Extensions in Explorer ===
     ============================================================
     ============================================================
     === Disable Windows Startup Delay ===
     ============================================================
     ============================================================
     === Disable the Low Disk Space Warning ===
     ============================================================
     ============================================================
     === Disable autorun of removable media ===
     ============================================================
     ============================================================
     === Hide "Recently used files" in Windows Explorer ===
     ============================================================
     ============================================================
     === Enable Long Paths, longer than 260 characters ===
     ============================================================
     ============================================================
     === Disable and Remove Telemetry and Spying ===
     ============================================================
     ============================================================
     === Disable DefenderApiLogger, DefenderAuditLogger ===
     ============================================================
    Disabling tracker DefenderApiLogger
    Disabling tracker DefenderAuditLogger
     ============================================================
     === Disable Services WinDefender ===
     ============================================================
    Disabling service MsSecFlt
    Disabling service SecurityHealthService
    Disabling service Sense
    Disabling service WdBoot
    Disabling service WdFilter
    Disabling service WdNisDrv
    Disabling service WdNisSvc
    Disabling service WinDefend
    Disabling service wscsvc
     ============================================================
     === Delete Scheduled Tasks WinDefender ===
     ============================================================
    Removing task Windows Defender\Windows Defender Cache Maintenance
    Removing task Windows Defender\Windows Defender Cleanup
    Removing task Windows Defender\Windows Defender Scheduled Scan
    Removing task Windows Defender\Windows Defender Verification
    Removing task ExploitGuard\ExploitGuard MDM policy Refresh
     ============================================================
     === Disable SmartScreen ===
     ============================================================
     ============================================================
     === Disable Services Prefetcher and WSearch ===
     ============================================================
    Disabling service WSearch
    Disabling service SysMain
     ============================================================
     === Disable Prefetcher Task ===
     ============================================================
    Removing task Sysmain\HybridDriveCachePrepopulate
    Removing task Sysmain\HybridDriveCacheRebalance
    Removing task Sysmain\ResPriStaticDbSync
    Removing task Sysmain\WsSwapAssessmentTask
    Removing task Shell\IndexerAutomaticMaintenance
     ============================================================
     === Disable App Compatibility Assistant ===
     ============================================================
     ============================================================
     === Meltdown and Spectre Patches ===
     ============================================================
     ============================================================
     === Keep Disabled Apps from Returning ===
     ============================================================
     ============================================================
     === Turn off Smart App Control ===
     ============================================================
     ============================================================
     === Disable DevHome,NewsOutlook,CrossDevice,EdgeUpdate Autoinstall ===
     ============================================================
     ============================================================
     === Disable Bing In Search Menu ===
     ============================================================
     ============================================================
     === Disable Send FeedBack ===
     ============================================================
     ============================================================
     === Disable Bitlocker Forced Encryption and Autoreboot if bluescreen ===
     ============================================================
     ============================================================
     === Restoring the context menu item Create - Text document ===
     ============================================================
     ============================================================
     === Removing tasks from task scheduler ===
     ============================================================
    Removing task Application Experience\AitAgent
    Removing task Application Experience\Microsoft Compatibility Appraiser
    Removing task Application Experience\ProgramDataUpdater
    Removing task Application Experience\StartupAppTask
    Removing task AppListBackup\Backup
    Removing task Autochk\Proxy
    Removing task BrokerInfrastructure\BgTaskRegistrationMaintenanceTask
    Removing task Chkdsk\ProactiveScan
    Removing task Chkdsk\SyspartRepair
    Removing task Customer Experience Improvement Program\Consolidator
    Removing task Customer Experience Improvement Program\KernelCeipTask
    Removing task Customer Experience Improvement Program\UsbCeip
    Removing task Defrag\ScheduledDefrag
    Removing task Device Information\Device
    Removing task Device Information\Device User
    Removing task DeviceDirectoryClient\HandleCommand
    Removing task DeviceDirectoryClient\HandleWnsCommand
    Removing task DeviceDirectoryClient\IntegrityCheck
    Removing task DeviceDirectoryClient\LocateCommandUserSession
    Removing task DeviceDirectoryClient\RegisterDeviceAccountChange
    Removing task DeviceDirectoryClient\RegisterDeviceLocationRightsChange
    Removing task DeviceDirectoryClient\RegisterDevicePeriodic24
    Removing task DeviceDirectoryClient\RegisterDevicePolicyChange
    Removing task DeviceDirectoryClient\RegisterDeviceProtectionStateChanged
    Removing task DeviceDirectoryClient\RegisterDeviceSettingChange
    Removing task DeviceDirectoryClient\RegisterUserDevice
    Removing task Diagnosis\RecommendedTroubleshootingScanner
    Removing task Diagnosis\Scheduled
    Removing task DiskCleanup\SilentCleanup
    Removing task DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector
    Removing task DiskFootprint\Diagnostics
    Removing task DUSM\dusmtask
    Removing task Feedback\Siuf\DmClient
    Removing task Feedback\Siuf\DmClientOnScenarioDownload
    Removing task Flighting\FeatureConfig\ReconcileFeatures
    Removing task Flighting\FeatureConfig\UsageDataFlushing
    Removing task Flighting\FeatureConfig\UsageDataReporting
    Removing task Flighting\OneSettings\RefreshCache
    Removing task InstallService\ScanForUpdates
    Removing task InstallService\ScanForUpdatesAsUser
    Removing task InstallService\SmartRetry
    Removing task InstallService\WakeUpAndContinueUpdates
    Removing task InstallService\WakeUpAndScanForUpdates
    Removing task Maintenance\WinSAT
    Removing task Management\Autopilot\DetectHardwareChange
    Removing task Management\Autopilot\RemediateHardwareChange
    Removing task MemoryDiagnostic\ProcessMemoryDiagnosticEvents
    Removing task MemoryDiagnostic\RunFullMemoryDiagnostic
    Removing task NetTrace\GatherNetworkInfo
    Removing task PI\Sqm-Tasks
    Removing task Power Efficiency Diagnostics\AnalyzeSystem
    Removing task SettingSync\BackgroundUploadTask
    Removing task SettingSync\BackupTask
    Removing task SettingSync\NetworkStateChangeTask
    Removing task UPnP\UPnPHostConfig
    Removing task Windows Error Reporting\QueueReporting
    Removing task Windows Media Sharing\UpdateLibrary
    Removing task WwanSvc\NotificationTask
    ============================================================
    === Integrate DirectX9c into install.wim ===
    ============================================================
    Importing [DirectX9c_w11_x64.reg] to Image Registry...
     ============================================================
     === Integrate Classic Calculator ===
     ============================================================
     ============================================================
     === Import RegTweaks to install.wim ===
     ============================================================
    Importing [disableacryl.reg] to Image Registry...
    Importing [Enable_Classic_context_menu.reg] to Image Registry...
    Importing [Enable_Notification_Center.reg] to Image Registry...
    Importing [Enable_PhotoViewer.reg] to Image Registry...
    Importing [firstlogon.reg] to Image Registry...
    Importing [meltdown.reg] to Image Registry...
    Importing [menu.reg] to Image Registry...
    Importing [privacy.reg] to Image Registry...
    Importing [Removal Recommended.reg] to Image Registry...
    Importing [setupcomplete.reg] to Image Registry...
    Importing [ShowSearchBoxTaskbar.reg] to Image Registry...
    Importing [specialize.reg] to Image Registry...
    Importing [telemetry.reg] to Image Registry...
    Importing [ThisPC-Bin.reg] to Image Registry...
    Importing [wsearch.reg] to Image Registry...
     ============================================================
     === Remove SystemApps with telemetry from InboxApplications
     ============================================================
    [OK] Removed: Client.CBS from HKEY_LOCAL_MACHINE\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications\MicrosoftWindows.Client.CBS_1000.26100.197.0_x64__cw5n1h2txyewy
     ============================================================
     === UnMounting Image Registry ===
     ============================================================
    Finalized...
     ============================================================
     === Applying Tweaks to Registry Keys, Loading Registry ===
     ============================================================
    Importing [HideSearchBoxTaskbar.reg] to Image Registry...
    Importing [ShowSearchBoxTaskbar.reg] to Image Registry...
    Importing [SOFTWARE.reg] to Image Registry...
    Importing [SYSTEM.reg] to Image Registry...
    Importing [USER.reg] to Image Registry...
     ============================================================
     === Deleting files Telemetry===
     ============================================================
    Deleting .job file: ""\Windows\DiagTrack""
    Deleting .job file: ""\Windows\System32\AggregatorHost.exe""
    Deleting .job file: ""\Windows\System32\diagnosticdataquery.dll""
    Deleting .job file: ""\Windows\System32\diagtrack.dll""
    Deleting .job file: ""\Windows\System32\dtdump.exe""
    Deleting .job file: ""\Windows\System32\runexehelper.exe""
    Deleting .job file: ""\Windows\System32\UtcDecoderHost.exe""
    Deleting .job file: ""\Windows\System32\Windows.System.Diagnostics.Telemetry.PlatformTelemetryClient.dll""
    Deleting .job file: ""\Windows\System32\utcutil.dll""
    Deleting .job file: ""\Windows\SysWOW64\diagnosticdataquery.dll""
    Deleting .job file: ""\Windows\SysWOW64\dtdump.exe""
    Deleting .job file: ""\Windows\SysWOW64\Windows.System.Diagnostics.Telemetry.PlatformTelemetryClient.dll""
     ============================================================
     === Updating Provisioned AppxPackages ===
     ============================================================
    Microsoft.NET.Native.Framework.2.2_2.2.29512.0_x64__8wekyb3d8bbwe.Appx
    Microsoft.NET.Native.Runtime.2.2_2.2.28604.0_x64__8wekyb3d8bbwe.Appx
    Microsoft.UI.Xaml.2.8_8.2501.31001.0_x64__8wekyb3d8bbwe.Appx
    Microsoft.UI.Xaml.2.4_2.42007.9001.0_x64__8wekyb3d8bbwe.Appx
    Microsoft.VCLibs.140.00_14.0.33519.0_x64__8wekyb3d8bbwe.Appx
    Microsoft.VCLibs.140.00.UWPDesktop_14.0.33728.0_x64__8wekyb3d8bbwe.Appx
    Microsoft.HEIFImageExtension_1.2.20.0_neutral_~_8wekyb3d8bbwe.AppxBundle
    Microsoft.HEVCVideoExtension_2.4.13.0_neutral_~_8wekyb3d8bbwe.AppxBundle
    Microsoft.VP9VideoExtensions_1.2.6.0_neutral_~_8wekyb3d8bbwe.AppxBundle
    Microsoft.WebMediaExtensions_1.2.14.0_neutral_~_8wekyb3d8bbwe.AppxBundle
    Microsoft.WebpImageExtension_1.2.10.0_neutral_~_8wekyb3d8bbwe.AppxBundle
     ============================================================
     === Optimize Provisioned AppxPackages ===
     ============================================================
     ============================================================
     === Disable Windows Optional Features ===
     ============================================================
     ============================================================
     === Cleaning install.wim image ===
     ============================================================
     ============================================================
     === Registry Tweaks and WinSxS Cleanup in Mounted Image ====
     ============================================================
    Processing mounted image...
     ============================================================
     === Create panther folder and add unnatend.xml ===
     ============================================================
     ============================================================
     === Disable Not needed Windows Optional Features ===
     ============================================================
    Disable: %f
     ============================================================
     === Save Listing ===
     ============================================================
    Get-Features
    Get-Capabilities
    Get-ProvisionedAppxPackages
     ============================================================
     === Unmounting install.wim image ===
     ============================================================
    OK: install.wim Unmounted
     ============================================================
     === Re-Building Source [Install.wim] Image ===
     ============================================================
     ============================================================
     === Get-WInfo ===
     ============================================================
    [18:14:05.98] asTrustedInstaller 
     
     ============================================================
     === SCRIPT COMPLETED SUCCESSFULLY IN 18:14:05.99 ===
     ============================================================
    All finished.
    Press any key to end the script.
    
     
  7. sainfo

    sainfo MDL Addicted

    Dec 6, 2021
    536
    1,171
    30
    #3328 sainfo, Aug 13, 2025
    Last edited: Aug 14, 2025
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,210
    4,127
    60
    In my tests, I don't have all of these apps pinned to the Start menu.

    As far as I know, they won't install unless you do.
     

    Attached Files:

  9. Mavericks Choice

    Mavericks Choice MDL Guru

    Aug 5, 2015
    3,782
    15,345
    120
    In your tests are your results in the default or slim option?
     
  10. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,210
    4,127
    60
    In both modes, you can see the illustrative images inside the Docs folder.
     
  11. sainfo

    sainfo MDL Addicted

    Dec 6, 2021
    536
    1,171
    30
    #3333 sainfo, Aug 15, 2025
    Last edited: Aug 15, 2025
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,210
    4,127
    60
    =====================
    24H2_Integrator_12.7
    =====================
    - Updated to 26100.4946 version


    - Add Defender update when Windows Security is not removed (24H2_CreateDefault_12.7.cmd only)
    NOTE:
    Windows Security does not work in 24H2. The user must have the Store installed and download Microsoft Defender.

    - returned the option to add tweaks in .cmd format
    - Updated all.txt
    - The script was split into two:
    - 24H2_CreateDefault_12.7.cmd
    - 24H2_CreateSlim_12.7.cmd
    - Several modifications were made to the scripts for better functionality.
    - In the Default script, the user can choose to enable or disable some options.
    - Some apps and tools are not installed correctly during installation, so I chose to add
    WPI24H2 to the package, which contains some essential apps and tools for installation after the desktop
    opens. It's up to the user to install it or not. To do so, simply leave it as is (selected)
    or uncheck what you don't want to install. Or, close WPI and don't install anything.


    Please read the Changelog.txt and README.txt files before using the script.

    https://forums.mydigitallife.net/th...ic-legacy-windows.86552/page-120#post-1872013

    Enjoy!
     
  13. sainfo

    sainfo MDL Addicted

    Dec 6, 2021
    536
    1,171
    30
    Buddy, the problem is not that I don't fully understand English, but that you can't clearly formulate your question. So, what is the question is the answer. I don't need feedback on “my” scripts. Because they are not mine, but modified for my personal needs and requirements scripts from famous people. Here they are provided only for testing for those interested in this topic. If you can offer your own, more interesting script we will consider it with great interest.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. siliconbeaver

    siliconbeaver MDL Member

    Apr 29, 2022
    243
    199
    10
    Wow,

    Its size much more than doubled. from 394 KB to 904 KB.


    Thank SunLion

     
  15. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,210
    4,127
    60
    Some more appx (store and dependencies) were added and also defender update.
     
  16. Mavericks Choice

    Mavericks Choice MDL Guru

    Aug 5, 2015
    3,782
    15,345
    120
    @SunLion Script ran well & installed in a VM only two issues
    1. Mod calc selected, shows icon, app won't start.
    2. Media player selected, shows icon, app won't start.
    So far much better release than Sainfos last offering.

    Code:
    ===========================================================
    24H2_CreateDefault_12.7
    Configured Options at Sat 16/08/2025,  5:06:38.42
    ===========================================================
    Running in NORMAL mode
    Disable Store
    Do not Remove ClickToDo - GetStarted - WindowsBackup
    Enable WindowsSearch
    Disable Windows Defender
    Remove Edge completely
    Do Not Enable NetFX3
    Enable Modern Calculator
    Do not Integrate NDP481 
    Enable MediaPlayer
    Do not Remove WinRE.wim
    Integrate Dart into WinRE.wim
    Show ThisPC + Bin + User + ControlPanel + Network Icons on Desktop
    Apply PersonalTweaks
    =========================================================== 
     
  17. SunLion

    SunLion MDL Expert

    May 11, 2011
    1,210
    4,127
    60
    I'll test with your settings here...