@sergey130270 In order for the script to run without errors here, I had to make some changes to the lines below: 49 to 66 set ISOName and Unpacking ISO/DVD image 149 to 157 Remove Capabilities The code I use on the SD didn't work in your script, so I adopted an alternative for this: - I captured all capabilities from install.wim - I created the file Files\capabilities.txt, which is used in the code for removal - Examine the Files folder, please. Place the files folder inside X:\Win11Integrator Nothing else was changed. It worked fine, without errors. Do your tests. Cheers password: mdl2024
It does the whole process with the files extracted to DVD folder. If you still want to make your modifications and include something else, do so and then create the ISO with the files from the DVD folder. But, if you want to create the ISO at the end of the process, edit the script and change set CreateISO=0 to set CreateISO=1 (line 148) Good luck!
my install test is done. I made myself an iso file. boot on Ventoy. it's running great. clean-install OS size is about 14 GB. image 5.7 GB. (this is still much bigger than tiny11. tiny OS is some 9 GB. image size 3 GB) I didn't verify all of functionalities. my brief test looked good. (at least, search is working) one thing was noticed, On Windows 10/11, two ways to restart, click "Power" button, or Right-click "user". however, on SD11, right-click "user" cannot obtain "Restart". instead, "Logoff" is an option. "Restart" is gone. nice work,
I also tried to apply this Integrator to the 24H2 IoT LTSC image with your amendments. Everything went without errors, everything is OK!
Just found 1 problem, windows time service is not available. Windows time synchronization failed error.
I feel a bit sad that... pastes`io redirected to justpaste`it`com but it's not accessible, and the download speed of workupload cloud storage is only 10kb per second. After struggling to download 30% using IDM, IDM indicated that the server had closed the connection at 31%. It's truly regrettable. Will there be uploads in the future, like to MediaFire cloud storage? I'm deeply grateful to MarvelX7 for their immense contributions to the Internet! :handshake:
Why are you using this when there is updated version available now https://forums.mydigitallife.net/threads/slimdown10_v2-0-2_26-continued.88599/
@SunLion Done a few tests with the latest 11 script having errors when integrating updates, tried a UUP dump win 11x64 iso & a vanilla MS 11x64 iso both give same output? See attached. Code: ============================================================ Running W10UI v10.45 ============================================================ ============================================================ Extracting dpx.dll file... ============================================================ ============================================================ Extracting .cab files from .msu files... ============================================================ 1/2: Windows11.0-KB5042098-x64-NDP481.msu 2/2: Windows11.0-KB5043080-x64.msu [Combined UUP] ============================================================ Extracting files from update cabinets (.cab)... *** This will require some disk space, please be patient *** ============================================================ 1/2: Windows11.0-KB5042098-x64-NDP481.cab [NetFx] 2/2: Windows11.0-KB5043113-x64_inout.cab [SSU] ============================================================ Checking Updates... ============================================================ ============================================================ Installing servicing stack update... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.19041.1 Image Version: 10.0.22631.2861 Processing 1 of 1 - Adding package Package_for_ServicingStack_1738~31bf3856ad364e35~amd64~~26100.1738.1.3 [==========================100.0%==========================] Error: 0x800f081e The specified package is not applicable to this image. The DISM log file can be found at C:\Windows\Logs\DISM\DismSSU.log ============================================================ Installing updates... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.19041.1 Image Version: 10.0.22631.2861 Processing 1 of 1 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9266.1 [==========================100.0%==========================] Error: 0x800f081e The specified package is not applicable to this image. The DISM log file can be found at C:\Windows\Logs\DISM\DismUpdt.log Windows11.0-KB5043080-x64.msu Deployment Image Servicing and Management tool Version: 10.0.19041.1 Image Version: 10.0.22631.2861 Processing 1 of 1 - Mounting image [ 1.0% ] [= 2.0% ] [=== 6.0% ] [===========================78.0%============= ] [===========================99.0%========================= ] [==========================100.0%==========================] [===========================80.0%============== ] Unmounting image [= 2.0% ] [= 3.0% ] [== 4.0% ] [== 5.0% ] [=== 6.0% ] [==== 7.0% ] [==== 8.0% ] [===== 9.0% ] [===== 10.0% ] [====== 11.0% ] [====== 12.0% ] [======= 13.0% ] [======== 14.0% ] [======== 15.0% ] [========= 16.0% ] [========= 17.0% ] [========== 18.0% ] [=========== 19.0% ] [=========== 20.0% ] [============ 21.0% ] [============ 22.0% ] [============= 23.0% ] [============= 24.0% ] [============== 25.0% ] [=============== 26.0% ] [=============== 27.0% ] [================ 28.0% ] [================ 29.0% ] [================= 30.0% ] [================= 31.0% ] [================== 32.0% ] [=================== 33.0% ] [=================== 34.0% ] [==================== 35.0% ] [==================== 36.0% ] [===================== 37.0% ] [====================== 38.0% ] [====================== 39.0% ] [======================= 40.0% ] [======================= 41.0% ] [======================== 42.0% ] [======================== 43.0% ] [========================= 44.0% ] [========================== 45.0% ] [========================== 46.0% ] [===========================47.0% ] [===========================48.0% ] [===========================49.0% ] [===========================50.0% ] [===========================51.0% ] [===========================52.0% ] [===========================53.0% ] [===========================54.0% ] [===========================55.0% ] [===========================56.0% ] [===========================57.0%= ] [===========================58.0%= ] [===========================59.0%== ] [===========================60.0%== ] [===========================61.0%=== ] [===========================62.0%=== ] [===========================63.0%==== ] [===========================64.0%===== ] [===========================65.0%===== ] [===========================66.0%====== ] [===========================67.0%====== ] [===========================68.0%======= ] [===========================69.0%======== ] [===========================70.0%======== ] [===========================71.0%========= ] [===========================72.0%========= ] [===========================73.0%========== ] [===========================74.0%========== ] [===========================75.0%=========== ] [===========================76.0%============ ] [===========================77.0%============ ] [===========================78.0%============= ] [===========================79.0%============= ] [===========================80.0%============== ] [===========================81.0%============== ] [===========================82.0%=============== ] [===========================83.0%================ ] [===========================84.0%================ ] [===========================85.0%================= ] [===========================86.0%================= ] [===========================87.0%================== ] [===========================88.0%=================== ] [===========================89.0%=================== ] [===========================90.0%==================== ] [===========================91.0%==================== ] [==========================100.0%==========================] Error: 87 Package C:\Users\MC\Desktop\SD114.8\UUP\Windows11.0-KB5043080-x64.msu may have failed due to pending updates to servicing components in the image. Try the command again. The DISM log file can be found at C:\Windows\Logs\DISM\DismLCU.log
Are you trying to update an image other than 26100? The log says "Image Version: 10.0.22631.2861" Then the updates are incompatible. I'll try to include issue 22621/22631 in the script.
Try to force time synchronization by running the commands: net stop w32time && w32tm/unregister && w32tm/register && net start w32time && w32tm /config /update && w32tm/resync Or try adding the command to Capability.txt: W32Time | Installed Well, in vain, as for me, Windosw 11 is much better and more responsive than the dozens. Plus, it works great. From the very beginning of the release of version 24H2 I have been using it and I am simply not overjoyed with its work, everything is just OK! IMHO
Greetings! Question about your integrator connection: I left in Start_W11_Integrator.cmd only what I need from this script at this stage: Code: @echo off TITLE Script for Integrate updates and optimizations for Win 11 24H2 color 1f SETLOCAL ENABLEDELAYEDEXPANSION SETLOCAL ENABLEEXTENSIONS pushd "%~dp0" >nul cd /d "%~dp0" >nul if /I "%~1" equ "asTrustedInstaller" ( echo. echo."%~nx0" Script - Running As Trusted Installer by %~2. ) rem Detect [OS Architecture if exist "%WinDir%\SysWOW64" (set "arch=x64") else (set "arch=x86") rem Getting Admin Rights by Run Script as Trusted Installer with nSudo or PowerRun if /I "%~1" neq "asTrustedInstaller" ( if /I exist "Bin\nSudo.exe" ( rem if /I exist "Bin\PowerRun.exe" ( for /f %%# in ('dir /B /A:-D "%~nx0"') do ("%%~dp#Bin\nSudo.exe" -U=T -P=E -CurrentDirectory=%%~dp# "%%~f#" "asTrustedInstaller" "nSudo") rem for /f %%# in ('dir /B /A:-D "%~nx0"') do ("%%~dp#Bin\PowerRun.exe" /WD:"%%~dp#" "%%~f#" "asTrustedInstaller" "PowerRun") ) else ( echo. echo. echo.Run "%~nx0" Script from Integrator Win11 folder. echo. TIMEOUT.exe /T -1 ) exit ) rem Setting environment path for the Windows setup set "Mount=%~dp0Mount" set "InstallMount=%Mount%\Install" set "WIM=%~dp0DVD\sources\install.wim" set "WimTemp=%~dp0DVD\sources\install_temp.wim" set "DISM=%~dp0Bin\DISM\dism.exe" set "DISM11=%~dp0Bin\DISM11\dism.exe" ::set ISOName= ::for /f "delims=" %%i in ('dir /b /o-n "ISO\*.iso" 2^>nul') do (set "ISOName=%%i") ::if not "%ISOName%"=="" ( ::if exist "DVD" rd /s /q "DVD" >nul 2>&1 set ISOName= for /f "delims=" %%i in ('dir /b "%~dp0*.iso" 2^>nul') do ( echo %%i 2>nul | findstr /r /c:"^Windows10_x[86][46]_[a-zA-Z][a-zA-Z]-[a-zA-Z][a-zA-Z]*\.iso" >nul 2>&1 || set "ISOName=%%i" ) echo. echo ####Unpacking ISO/DVD image: "%ISOName%" to DVD directory####################### ::"Bin\7z" x -y -oDVD\ ISO\%ISOName% ::) rd /s /q "%~dp0DVD" >nul 2>&1 mkdir "%~dp0DVD" >nul 2>&1 "%~dp0Bin\7z.exe" x -y -o"%~dp0DVD" "%~dp0%ISOName%" ECHO =========================================================== ECHO =========================================================== echo. echo ####Export each index to a wim file####################### "%DISM11%" /export-image /sourceimagefile:"%WIM%" /sourceindex:1 /destinationimagefile:"%WimTemp%" move /y "%WimTemp%" "%WIM%" >nul if exist "%Mount%" rd /q /s "%Mount%" if not exist "%Mount%" mkdir "%Mount%" if not exist "%InstallMount%" mkdir "%InstallMount%" for /f "tokens=2" %%a in ('Bin\wimlib-imagex.exe info "%WIM%" ^| find /i "Index:"') do set maxindex=%%a echo %maxindex% for /l %%i in (1,1,%maxindex%) do ( "%DISM11%" /Get-WimInfo /WimFile:"%WIM%" /index:"%%i" echo. echo ####Press any key to launch W10UI#################### pause >nul call "W10UI.cmd" for /f "tokens=2" %%a in ('Bin\wimlib-imagex.exe info "%WIM%" ^| find /i "Index:"') do set maxindex=%%a echo %maxindex% for /l %%i in (1,1,%maxindex%) do ( "%DISM%" /Get-WimInfo /WimFile:"%WIM%" /index:"%%i" echo. echo ####Mounting installation image %maxindex%#################### "%DISM%" /Mount-Wim /WimFile:"%WIM%" /index:%%i /MountDir:"%InstallMount%" echo. echo ####Remove Windows Apps#################### for %%p in (BingWeather,GetHelp,Getstarted,HEIFImageExtension,Microsoft3DViewer,MicrosoftOfficeHub,MicrosoftSolitaireCollection,MicrosoftStickyNotes,MixedReality.Portal,MSPaint,Office.OneNote,People,ScreenSketch,SkypeApp,StorePurchaseApp,VCLibs.140.00,VP9VideoExtensions,Wallet,WebMediaExtensions,WebpImageExtension,WindowsPhotos,WindowsAlarms,WindowsCalculator,WindowsCamera,windowscommunicationsapps,WindowsFeedbackHub,WindowsMaps,WindowsSoundRecorder,YourPhone,ZuneMusic,ZuneVideo) do ( Microsoft.WindowsStore,Microsoft.Xbox.TCUI,Microsoft.XboxApp,Microsoft.XboxGameOverlay,Microsoft.XboxGamingOverlay,Microsoft.XboxIdentityProvider,Microsoft.XboxSpeechToTextOverlay Powershell -C "Write-Host 'Removing Windows App: %%p'" Powershell -C "Get-AppxProvisionedPackage -Path %InstallMount% | Where {$_.DisplayName -match '%%p' } | Remove-AppxProvisionedPackage -Path %InstallMount% -EA ignore" ) ECHO. ECHO. ECHO =========================================================== ECHO Remove Capabilities ECHO =========================================================== for /f %%x in ('findstr /i . files\Capabilities.txt 2^>nul') do ( echo Removing %%x "%DISM%" /english /quiet /image:%InstallMount% /Remove-Capability /CapabilityName:%%x ) echo. echo ####Disable UnNeeded Windows Features#################### for %%p in (Windows-Defender-Default-Definitions,MediaPlayback) do ( Powershell -C "Write-Host 'Disabling Windows Optional Feature: %%p'" Powershell -C "Get-WindowsOptionalFeature -Path '%InstallMount%' | Where {$_.FeatureName -match '%%p' } | Disable-WindowsOptionalFeature -Path '%InstallMount%' -EA ignore" ) echo. echo ####Mount Image Registry#################### timeout /t 3 /NOBREAK >nul reg load HKLM\TK_DEFAULT "%InstallMount%\Windows\System32\config\DEFAULT" reg load HKLM\TK_NTUSER "%InstallMount%\Users\Default\NTUSER.DAT" reg load HKLM\TK_SOFTWARE "%InstallMount%\Windows\System32\config\SOFTWARE" reg load HKLM\TK_SYSTEM "%InstallMount%\Windows\System32\config\SYSTEM" echo. echo Enable My Computer Icon on desktop Reg add "HKLM\TK_NTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /t REG_DWORD /d 0 /f echo. echo Show Control Panel on Desktop reg add "HKLM\TK_NTUSER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}" /t REG_DWORD /d "0" /f echo. echo Don't add "Shortcut" text to the name of newly created shortcuts reg add "HKLM\TK_NTUSER\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "Link" /t REG_BINARY /d 00000000 /f echo. echo Make Explorer windows open This PC instead of Quick Access reg add "HKLM\TK_NTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "LaunchTo" /t REG_DWORD /d "1" /f echo. echo Show file extensions in Explorer reg add "HKLM\TK_NTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d "0" /f echo. echo Reducing the delay in launching applications from startup reg add "HKLM\TK_NTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Serialize" /v "StartupDelayInMSec" /t REG_DWORD /d "0" /f echo. echo Disable the Low Disk Space Warning reg add "HKLM\TK_NTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoLowDiskSpaceChecks" /t REG_DWORD /d "1" /f echo. echo Disable autorun of removable media reg add "HKLM\TK_NTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers" /v "DisableAutoplay" /t REG_DWORD /d "1" /f echo. echo Hide "Recently used files" in Quick access in Windows Explorer reg add "HKLM\TK_NTUSER\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "ShowFrequent" /t REG_DWORD /d "0" /f reg add "HKLM\TK_NTUSER\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "ShowRecent" /t REG_DWORD /d "0" /f reg add "HKLM\TK_NTUSER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackDocs" /t REG_DWORD /d "0" /f reg add "HKLM\TK_NTUSER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackProgs" /t REG_DWORD /d "0" /f echo. echo Enable Long Paths, longer than 260 characters reg add "HKLM\TK_SYSTEM\ControlSet001\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f echo. echo Policies for other Chrome browsers reg add "HKLM\TK_SOFTWARE\Policies\Google\Chrome" /v "BackgroundModeEnabled" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Google\Chrome" /v "SuppressUnsupportedOSWarning" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Google\Chrome" /v "MetricsReportingEnabled" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Google\Chrome" /v "BrowserLabsEnabled" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Google\Chrome" /v "RemoteDebuggingAllowed" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Google\Chrome" /v "PasswordLeakDetectionEnabled" /t REG_DWORD /d "0" /f echo. echo reg add "HKLM\TK_SOFTWARE\Policies\Google\Chrome" /v "DefaultGeolocationSetting" /t REG_DWORD /d "2" /f reg add "HKLM\TK_SOFTWARE\Policies\Google\Chrome" /v "DefaultNotificationsSetting" /t REG_DWORD /d "2" /f reg add "HKLM\TK_SOFTWARE\Policies\Google\Chrome" /v "DefaultSensorsSetting" /t REG_DWORD /d "2" /f echo. echo Disable and Remove Telemetry and Spying reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\SQMClient\Windows" /v "CEIPEnable" /t REG_DWORD /d 0 /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Internet Explorer\SQM" /v "DisableCustomerImprovementProgram" /t REG_DWORD /d 1 /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\PCHealth\ErrorReporting" /v "DoReport" /t REG_DWORD /d 0 /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /v "Disabled" /t REG_DWORD /d 1 /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /v "DontSendAdditionalData" /t REG_DWORD /d 1 /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /v "LoggingDisabled" /t REG_DWORD /d 1 /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowDeviceNameInTelemetry" /t REG_DWORD /d 0 /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowDesktopAnalyticsProcessing" /t REG_DWORD /d 0 /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowCommercialDataPipeline" /t REG_DWORD /d 0 /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowUpdateComplianceProcessing" /t REG_DWORD /d 0 /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowWUfBCloudProcessing" /t REG_DWORD /d 0 /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "DoNotShowFeedbackNotifications" /t REG_DWORD /d 1 /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "DisableEnterpriseAuthProxy" /t REG_DWORD /d 1 /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "DisableOneSettingsDownloads" /t REG_DWORD /d 1 /f reg add "HKLM\TK_SOFTWARE\Microsoft\PolicyManager\default\System\AllowTelemetry" /v "value" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\PreviewBuilds" /v "AllowBuildPreview" /t REG_DWORD /d 0 /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\PreviewBuilds" /v "EnableConfigFlighting" /t REG_DWORD /d 0 /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\PreviewBuilds" /v "EnableExperimentation" /t REG_DWORD /d 0 /f reg add "HKLM\TK_SOFTWARE\Microsoft\PolicyManager\current\Device\System" /v "AllowExperimentation" /t REG_DWORD /d "0" /f echo. echo Delete scheduled tasks Error Reporting, WinSAT for %%t in ("Windows Error Reporting\QueueReporting","Maintenance\WinSAT") do ( for /f "tokens=3 delims= " %%a in ('reg query "HKLM\TK_SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\%%~t" /v "Id" 2^>nul ^| find /i "Id" ^| find /i "REG_SZ"') do ( echo Removing task %%~t reg delete "HKLM\TK_SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\%%~t" /f ) ) echo. echo Disable Windows Defender reg add "HKLM\TK_NTUSER\Software\Microsoft\Windows Security Health\State" /v "AccountProtection_MicrosoftAccount_Disconnected" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Defender Security Center\Notifications" /v "DisableNotifications" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Defender Security Center\Notifications" /v "DisableEnhancedNotifications" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Defender" /v "DisableAntiVirus" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Defender\Features" /v "TamperProtection" /t REG_DWORD /d "4" /f reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Defender\Features" /v "TamperProtectionSource" /t REG_DWORD /d "2" /f reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Defender\Signature Updates" /v "FirstAuGracePeriod" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Defender\UX Configuration" /v "DisablePrivacyMode" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run" /v "SecurityHealth" /t REG_BINARY /d "030000000000000000000000" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\MRT" /v "DontOfferThroughWUAU" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\MRT" /v "DontReportInfectionInformation" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Systray" /v "HideSystray" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender" /v "PUAProtection" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender" /v "RandomizeScheduleTaskTimes" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Exclusions" /v "DisableAutoExclusions" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\MpEngine" /v "MpEnablePus" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Quarantine" /v "LocalSettingOverridePurgeItemsAfterDelay" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Quarantine" /v "PurgeItemsAfterDelay" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableBehaviorMonitoring" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableIOAVProtection" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableOnAccessProtection" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableRealtimeMonitoring" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableRoutinelyTakingAction" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableScanOnRealtimeEnable" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableScriptScanning" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Remediation" /v "Scan_ScheduleDay" /t REG_DWORD /d "8" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Remediation" /v "Scan_ScheduleTime" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Reporting" /v "AdditionalActionTimeOut" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Reporting" /v "CriticalFailureTimeOut" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Reporting" /v "DisableEnhancedNotifications" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Reporting" /v "DisableGenericRePorts" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Reporting" /v "NonCriticalTimeOut" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "AvgCPULoadFactor" /t REG_DWORD /d "16" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "DisableArchiveScanning" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "DisableCatchupFullScan" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "DisableCatchupQuickScan" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "DisableRemovableDriveScanning" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "DisableRestorePoint" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "DisableScanningMappedNetworkDrivesForFullScan" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "DisableScanningNetworkFiles" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "PurgeItemsAfterDelay" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "ScanOnlyIfIdle" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "ScanParameters" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "ScheduleDay" /t REG_DWORD /d "8" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Scan" /v "ScheduleTime" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "DisableUpdateOnStartupWithoutEngine" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "ScheduleDay" /t REG_DWORD /d "8" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "ScheduleTime" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates" /v "SignatureUpdateCatchupInterval" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\SpyNet" /v "DisableBlockAtFirstSeen" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\SpyNet" /v "LocalSettingOverrideSpynetReporting" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\SpyNet" /v "SpyNetReporting" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\SpyNet" /v "SpyNetReportingLocation" /t REG_MULTI_SZ /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\SpyNet" /v "SubmitSamplesConsent" /t REG_DWORD /d "2" /f reg add "HKLM\TK_SYSTEM\ControlSet001\Services\EventLog\System\Microsoft-Antimalware-ShieldProvider" /v "Start" /t REG_DWORD /d "4" /f reg add "HKLM\TK_SYSTEM\ControlSet001\Services\EventLog\System\WinDefend" /v "Start" /t REG_DWORD /d "4" /f rem reg add "HKLM\TK_SYSTEM\ControlSet001\Control\WMI\Autologger\DefenderApiLogger" /v "Start" /t REG_DWORD /d "0" /f rem reg add "HKLM\TK_SYSTEM\ControlSet001\Control\WMI\Autologger\DefenderAuditLogger" /v "Start" /t REG_DWORD /d "0" /f reg add "HKLM\TK_DEFAULT\Software\Microsoft\Windows Security Health\State" /v "AccountProtection_MicrosoftAccount_Disconnected" /t REG_DWORD /d "0" /f reg delete "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "SecurityHealth" /f 1>nul 2>nul echo. echo Disabling trackers/loggers for %%t in (DefenderApiLogger, DefenderAuditLogger) do ( for /f "tokens=1 delims=" %%a in ('reg query "HKLM\TK_SYSTEM\ControlSet001\Control\WMI\Autologger" /e /k /f "%%~t" 2^>nul ^| find /i "%%~t"') do ( echo Disabling tracker %%~t reg add "HKLM\TK_SYSTEM\ControlSet001\Control\WMI\Autologger\%%~t" /v "Start" /t REG_DWORD /d "0" /f ) ) echo Disabling services WinDefender for %%s in (MsSecFlt, SecurityHealthService, Sense, WdBoot, WdFilter, WdNisDrv, WdNisSvc, WinDefend) do ( for /f "tokens=1 delims=" %%a in ('reg query "HKLM\TK_SYSTEM\ControlSet001\Services" /e /k /f "%%s" 2^>nul ^| find /i "%%s"') do ( echo Disabling service %%s reg add "HKLM\TK_SYSTEM\ControlSet001\Services\%%s" /v "Start" /t REG_DWORD /d "4" /f ) ) echo. echo Delete scheduled tasks WinDefender for %%t in ("Windows Defender\Windows Defender Cache Maintenance","Windows Defender\Windows Defender Cleanup","Windows Defender\Windows Defender Scheduled Scan","Windows Defender\Windows Defender Verification","ExploitGuard\ExploitGuard MDM policy Refresh") do ( for /f "tokens=3 delims= " %%a in ('reg query "HKLM\TK_SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\%%~t" /v "Id" 2^>nul ^| find /i "Id" ^| find /i "REG_SZ"') do ( echo Removing task %%~t reg delete "HKLM\TK_SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\%%~t" /f ) ) echo. echo Disable SmartScreen reg add "HKLM\TK_NTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" /v "EnableWebContentEvaluation" /t REG_DWORD /d "0" /f reg add "HKLM\TK_NTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" /v "PreventOverride" /t REG_DWORD /d "0" /f reg add "HKLM\TK_NTUSER\SOFTWARE\Policies\Microsoft\Edge" /v "SmartScreenEnabled" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Security Health\State" /v "AppAndBrowser_StoreAppsSmartScreenOff" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" /v "SmartScreenEnabled" /t REG_SZ /d "Off" /f reg add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "SmartScreenEnabled" /t REG_SZ /d "Off" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Internet Explorer\PhishingFilter" /v "EnabledV9" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Internet Explorer\PhishingFilter" /v "PreventOverride" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\MicrosoftEdge\PhishingFilter" /v "EnabledV9" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\MicrosoftEdge\PhishingFilter" /v "PreventOverride" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\System" /v "EnableSmartScreen" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\SmartScreen" /v "ConfigureAppInstallControl" /t REG_SZ /d "Anywhere" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows Defender\SmartScreen" /v "ConfigureAppInstallControlEnabled" /t REG_DWORD /d "0" /f reg add "HKLM\TK_DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" /v "EnableWebContentEvaluation" /t REG_DWORD /d "0" /f reg add "HKLM\TK_DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" /v "PreventOverride" /t REG_DWORD /d "0" /f reg add "HKLM\TK_DEFAULT\SOFTWARE\Policies\Microsoft\Edge" /v "SmartScreenEnabled" /t REG_DWORD /d "0" /f del /f /s /q "%InstallMount%\Windows\System32\smartscreen.exe" 1>nul 2>nul del /f /s /q "%InstallMount%\Windows\System32\smartscreen.dll" 1>nul 2>nul del /f /s /q "%InstallMount%\Windows\System32\smartscreenps.dll" 1>nul 2>nul echo. echo Disable prefetcher services and WSearch indexing reg add "HKLM\TK_SYSTEM\ControlSet001\Control\WMI\Autologger\ReadyBoot" /v "Start" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SYSTEM\ControlSet001\Control\Session Manager\Memory Management\PrefetchParameters" /v EnableSuperfetch /t REG_DWORD /d "0" /f reg add "HKLM\TK_SYSTEM\ControlSet001\Control\Session Manager\Memory Management\PrefetchParameters" /v EnablePrefetcher /t REG_DWORD /d "0" /f for %%a in (WSearch,SysMain) do ( reg add "HKLM\TK_SYSTEM\ControlSet001\Services\%%a" /v "Start" /t REG_DWORD /d "4" /f ) echo. echo Disable prefetcher services Task for %%t in ("Sysmain\HybridDriveCachePrepopulate","Sysmain\HybridDriveCacheRebalance","Sysmain\ResPriStaticDbSync","Sysmain\WsSwapAssessmentTask","Shell\IndexerAutomaticMaintenance") do ( for /f "tokens=3 delims= " %%a in ('reg query "HKLM\TK_SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\%%~t" /v "Id" 2^>nul ^| find /i "Id" ^| find /i "REG_SZ"') do ( echo Removing task %%~t reg delete "HKLM\TK_SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\%%~t" /f ) ) echo. echo Disable User Account Control reg add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t REG_DWORD /d "0" /f echo. echo Disable App Compatinility Assistant reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisablePCA" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisableInventory" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisableUAR" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "AITEnable" /t REG_DWORD /d "0" /f reg add "HKLM\TK_SYSTEM\ControlSet001\Services\PcaSvc" /v "Start" /t REG_DWORD /d "4" /f echo. echo Meltdown and Spectre Patches reg add "HKLM\TK_SYSTEM\ControlSet001\Control\Session Manager\Memory Management" /v "FeatureSettingsOverride" /t REG_DWORD /d "3" /f reg add "HKLM\TK_SYSTEM\ControlSet001\Control\Session Manager\Memory Management" /v "FeatureSettingsOverrideMask" /t REG_DWORD /d "3" /f echo. echo Disable System Restore... reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore" /v "DisableSR" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore" /v "DisableConfig" /t REG_DWORD /d "1" /f reg add "HKLM\TK_SYSTEM\ControlSet001\Services\swprv" /v "Start" /t REG_DWORD /d "3" /f echo Delete scheduled tasks System Restore for %%t in ("SystemRestore\SR") do ( for /f "tokens=3 delims= " %%a in ('reg query "HKLM\TK_SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\%%~t" /v "Id" 2^>nul ^| find /i "Id" ^| find /i "REG_SZ"') do ( echo Removing task %%~t reg delete "HKLM\TK_SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\%%~t" /f ) ) echo. echo ####Adding Reg into the installation image#################### if exist "Tweaks\Temp" rd /q /s "Tweaks\Temp" 1>nul 2>nul mkdir "Tweaks\Temp" PowerShell -Executionpolicy Bypass -File "Bin\ConvertReg.ps1" "Tweaks" "Tweaks\Temp" for /f "tokens=*" %%i in ('"dir /b "Tweaks\Temp\*.reg"" 2^>nul') do ( echo.Importing [%%i] to Image Registry... regedit.exe /s REG IMPORT "Tweaks\Temp\%%i" ) rd /q /s "Tweaks\Temp" 1>nul 2>nul echo. echo ####Un-Mounting Image Registry#################### timeout /t 5 /NOBREAK >nul reg Unload HKLM\TK_DEFAULT reg Unload HKLM\TK_NTUSER reg Unload HKLM\TK_SOFTWARE reg Unload HKLM\TK_SYSTEM echo. echo ####Cleaning image#################### for /d %%p in ("%InstallMount%\PerfLogs\*") do rd /s /q %%p del /f /s /q "%InstallMount%\Windows\WinSxS\Backup\*" >nul 2>&1 del /f /s /q "%InstallMount%\Windows\WinSxS\ManifestCache\*.bin" >nul 2>&1 del /f /s /q "%InstallMount%\Windows\WinSxS\Temp\PendingDeletes\*" >nul 2>&1 for /d %%p in ("%InstallMount%\Windows\WinSxS\Temp\InFlight\*") do rd /s /q %%p del /f /s /q "%InstallMount%\Windows\WinSxS\Temp\TransformerRollbackData\*" >nul 2>&1 del /f /s /q "%InstallMount%\Windows\CbsTemp\*" >nul 2>&1 del /f /s /q "%InstallMount%\Windows\inf\*.log" >nul 2>&1 del /f /s /q "%InstallMount%\Windows\System32\config\*.log*" >nul 2>&1 del /f /s /q "%InstallMount%\Windows\System32\config\*.blf*" >nul 2>&1 del /f /s /q "%InstallMount%\Windows\System32\config\*.regtrans-ms*" >nul 2>&1 del /f /s /q "%InstallMount%\Windows\System32\SMI\Store\Machine\*.log*" >nul 2>&1 del /f /s /q "%InstallMount%\Windows\System32\SMI\Store\Machine\*.blf*" >nul 2>&1 del /f /s /q "%InstallMount%\Windows\System32\SMI\Store\Machine\*.regtrans-ms*" >nul 2>&1 if exist "%InstallMount%\Users\Administrator" del /f /s /q "%InstallMount%\Users\Administrator\*.log*" >nul 2>&1 if exist "%InstallMount%\Users\Administrator" del /f /s /q "%InstallMount%\Users\Administrator\*.blf*" >nul 2>&1 if exist "%InstallMount%\Users\Administrator" del /f /s /q "%InstallMount%\Users\Administrator\*.regtrans-ms*" >nul 2>&1 del /f /s /q "%InstallMount%\Users\Default\*.log*" >nul 2>&1 del /f /s /q "%InstallMount%\Users\Default\*.blf*" >nul 2>&1 del /f /s /q "%InstallMount%\Users\Default\*.regtrans-ms*" >nul 2>&1 echo. echo Get-Features listing "%DISM%" /Image:"%InstallMount%" /Get-Features /English /Format:Table > RemoveList\Features.txt echo Get-Capabilities listing "%DISM%" /Image:"%InstallMount%" /Get-Capabilities /English /Format:Table > RemoveList\Capability.txt rem Unmounting image "%DISM11%" /Unmount-Wim /MountDir:"%InstallMount%" /commit ) echo. echo ####Copying [Dart-Files] to Windows Setup#################### "%DISM11%" /Apply-image /ImageFile:"Addons\Dart_W11\Dart.tpk" /Index:%index% /ApplyDir:"%BootMount%" "%DISM11%" /Apply-image /ImageFile:"Addons\Dart_W11\Dart_ru-RU.tpk" /Index:%index% /ApplyDir:"%BootMount%" "%DISM11%" /Apply-image /ImageFile:"Addons\Dart_W11\DebugTools_10.0.26100.tpk" /Index:%index% /ApplyDir:"%BootMount%" echo. echo ####Cleaning image#################### del /f /q "%BootMount%\Windows\WinSxS\Backup\*" >nul 2>&1 del /f /q "%BootMount%\Windows\WinSxS\ManifestCache\*.bin" >nul 2>&1 del /f /q "%BootMount%\Windows\WinSxS\Temp\PendingDeletes\*" >nul 2>&1 for /d %%p in ("%BootMount%\Windows\WinSxS\Temp\InFlight\*") do rd /s /q %%p del /f /q "%BootMount%\Windows\WinSxS\Temp\TransformerRollbackData\*" >nul 2>&1 del /f /q "%BootMount%\Windows\CbsTemp\*" >nul 2>&1 del /f /q "%BootMount%\Windows\inf\*.log" >nul 2>&1 rem Unmounting image "%DISM11%" /Unmount-Wim /MountDir:"%BootMount%" /commit echo. echo ####Copy the [$OEM$] folder to the sources folder############################ if exist "DVD\sources\$OEM$" rd /q /s "DVD\sources\$OEM$" if not exist "DVD\sources\$OEM$\$$\Setup" mkdir "DVD\sources\$OEM$\$$\Setup" copy /y "OEM\*.*" "DVD\sources\$OEM$\$$\Setup" >nul xcopy "OEM\Regfiles\" "DVD\sources\$OEM$\$$\Setup\Regfiles\" /s /q /y xcopy "OEM\Scripts\" "DVD\sources\$OEM$\$$\Setup\Scripts\" /s /q /y xcopy "OEM\Batfiles\" "DVD\sources\$OEM$\$$\Setup\Batfiles\" /s /q /y rem xcopy "OEM\Panther\" "DVD\sources\$OEM$\$$\Panther\" /s /q /y xcopy "OEM\$1\" "DVD\sources\$OEM$\$1\" /s /q /y echo. echo ####Re-Building Source [Install.wim] Image ####################### "Bin\wimlib-imagex.exe" export "%Wim%" all "%WimTemp%" --compress=LZX move /y "%WimTemp%" "%Wim%" >nul if exist "DVD\sources\sxs\microsoft-windows-netfx3-*" del /f /q "DVD\sources\sxs\microsoft-windows-netfx3-*" >nul 2>&1 rd /q /s "%Mount%" >nul 2>&1 echo. echo ####Re-Building Source [boot.wim] Image...#################### "Bin\wimlib-imagex.exe" export "%BootWim%" all "%BootWimTmp%" --recompress --compress=LZX --boot move /y "%BootWimTmp%" "%BootWim%" >nul "%DISM%" /Cleanup-Wim echo. echo All finished. echo. echo Press any key to end the script. echo. pause >nul exit The image is unpacked into the DVD folder created by the script, the script reaches the code Code: echo ####Export each index to a wim file####################### "%DISM11%" /export-image /sourceimagefile:"%WIM%" /sourceindex:1 /destinationimagefile:"%WimTemp%" move /y "%WimTemp%" "%WIM%" >nul Displays the message Export each index to a wim file and in my opinion the first row and cmd collapses. The image being processed is ru-RU 26100.1 Windows 11 Enterprise G. Can you tell me what’s wrong, what could be the problem?