Good day/night everyone. Add your personal tweaks in folders CMD e/or REG *.cmd *.bat *.reg Add your personal settings to the CMD folders, SunLion Add your personal tweaks here how to do it all ?
Hmm, it would take a long time to explain in detail. To simplify, please refer to my script version 24H2_UpdateOS_v.3.0 to see how I did it, and add it to your script using the same approach. In my case, the Hide, REG, Slim, and CMD folders are added with the corresponding scripts.
For 24H2 and later versions, Svchost.cmd will not work Code: @echo off chcp 65001 >nul for /f "tokens=4 delims= " %%i in ('systeminfo ^| find /i "Total Physical Memory"') do (set mem=%%i) for /f "tokens=1 delims= " %%i in ('echo.%mem%') do (set memgb=%%i) set /a "memkb=%memgb%*1024*1024" reg add "HKLM\SYSTEM\ControlSet001\Control" /v "SvcHostSplitThresholdInKB" /t REG_DWORD /d "%memkb%" /f >nul exit /b Some registry files are incorrect, such as in System.reg: ; Disable NVDisplay Service [HKEY_LOCAL_MACHINE\WIM_SYSTEM\ControlSet001\Services\NVDisplay.ContainerLocalSystem] "Start"=dword:00000004 WIM_SYSTEM is a format designed for offline imports
Perhaps I won't argue with you. I apply all these .reg files to the connected image, and judging by the registry values in the DISM++ program, all the values of the .reg files have been applied to the image registry. In other words, this program shows that the same registry entries on 25H2 have been executed as those that were once executed on 21H2 - 23H2.
Keep Svchost.cmd or delete it, have there been any changes after installation? Many of your registry contents are essentially repetitive, which may be why you believe they are all valid.
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
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
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: Spoiler 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
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. Spoiler 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.
@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.
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.