fixed powershell script for unmount install.wim . and need move handle.exe move tools folder Code: [03:15:19] Initializing environment... [03:15:19] WorkingDir: C:\Users\mustafa\Desktop\ee [03:15:19] TempDir: C:\Users\mustafa\Desktop\ee\Temp [03:15:19] MountDir: C:\Users\mustafa\Desktop\ee\Mount [03:15:19] DVDDir: C:\Users\mustafa\Desktop\ee\DVD [03:15:19] ToolsDir: C:\Users\mustafa\Desktop\ee\Tools [03:15:19] DriversDir: C:\Users\mustafa\Desktop\ee\Drivers [03:15:19] handle.exe found at: C:\Users\mustafa\Desktop\ee\Tools\handle.exe [03:15:19] Working directories created successfully at: C:\Users\mustafa\Desktop\ee [03:15:19] Restoring default configuration... [03:15:19] Default configuration restored [03:16:12] Analyzing ISO: en-us_windows_10_iot_enterprise_ltsc_2021_x64_dvd_257ad90f.iso [03:16:12] ISO mounted as drive I: [03:16:12] Found image file: I:\sources\install.wim [03:16:12] Analyzing Index: 1 [03:16:12] Details: Name='Windows 10 Enterprise LTSC', Arch='x64', Build='10.0.19041', LTSC=True [03:16:12] Analyzing Index: 2 [03:16:12] Details: Name='Windows 10 IoT Enterprise LTSC', Arch='x64', Build='10.0.19041', LTSC=True [03:16:13] ISO dismounted successfully [03:16:32] Initializing environment... [03:16:32] WorkingDir: C:\Users\mustafa\Desktop\ee [03:16:32] TempDir: C:\Users\mustafa\Desktop\ee\Temp [03:16:32] MountDir: C:\Users\mustafa\Desktop\ee\Mount [03:16:32] DVDDir: C:\Users\mustafa\Desktop\ee\DVD [03:16:32] ToolsDir: C:\Users\mustafa\Desktop\ee\Tools [03:16:32] DriversDir: C:\Users\mustafa\Desktop\ee\Drivers [03:16:32] handle.exe found at: C:\Users\mustafa\Desktop\ee\Tools\handle.exe [03:16:32] Working directories created successfully at: C:\Users\mustafa\Desktop\ee [03:16:32] Starting ISO extraction process... [03:16:32] Cleaning existing DVD directory: C:\Users\mustafa\Desktop\ee\DVD [03:16:33] Mounting ISO image: C:\Users\mustafa\Desktop\dd\en-us_windows_10_iot_enterprise_ltsc_2021_x64_dvd_257ad90f.iso [03:16:33] ISO mounted successfully as drive: G:\ [03:16:33] Copying ISO contents to: C:\Users\mustafa\Desktop\ee\DVD [03:16:42] ISO contents successfully copied. [03:16:43] ISO dismounted successfully [03:16:43] ISO extraction process completed. [03:16:43] Analyzing extracted Windows image... [03:16:43] Windows image analysis using index 2 complete. [03:16:43] Final Details: Edition='Windows 10 IoT Enterprise LTSC', Arch='x64', Build='10.0.19041', LTSC=True [03:16:43] Renewing install.wim file... [03:16:43] Starting Export WIM Image... [03:16:43] Command: dism.exe /export-image /sourceimagefile:"C:\Users\mustafa\Desktop\ee\DVD\sources\install.wim" /sourceindex:2 /destinationimagefile:"C:\Users\mustafa\Desktop\ee\Temp\install_renew.wim" /compress:max /checkintegrity [03:17:01] Process output: Deployment Image Servicing and Management tool Version: 10.0.26100.1150 Exporting image [ 1.0% ] [= 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%============= ] [===========================82.0%=============== ] [===========================83.0%================ ] [===========================84.0%================ ] [===========================85.0%================= ] [===========================86.0%================= ] [===========================87.0%================== ] [===========================88.0%=================== ] [===========================89.0%=================== ] [===========================90.0%==================== ] [===========================91.0%==================== ] [===========================92.0%===================== ] [===========================93.0%===================== ] [===========================94.0%====================== ] [===========================95.0%======================= ] [===========================96.0%======================= ] [===========================97.0%======================== ] [===========================98.0%======================== ] [===========================99.0%========================= ] [==========================100.0%==========================] The operation completed successfully. [03:17:01] Export WIM Image completed successfully [03:17:04] Old install.wim deleted. [03:17:04] New WIM moved and renamed to install.wim successfully. [03:17:04] Mounting Windows image for editing... [03:17:04] Cleaning existing mount directory... [03:17:05] Starting Mount Windows Image... [03:17:05] Command: dism.exe /mount-wim /wimfile:"C:\Users\mustafa\Desktop\ee\DVD\sources\install.wim" /index:1 /mountdir:"C:\Users\mustafa\Desktop\ee\Mount" [03:18:14] Process output: Deployment Image Servicing and Management tool Version: 10.0.26100.1150 Mounting image [ 1.0% ] [= 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%============== ] [===========================82.0%=============== ] [===========================83.0%================ ] [===========================84.0%================ ] [===========================85.0%================= ] [===========================86.0%================= ] [===========================87.0%================== ] [===========================88.0%=================== ] [===========================89.0%=================== ] [===========================90.0%==================== ] [===========================91.0%==================== ] [===========================92.0%===================== ] [===========================93.0%===================== ] [===========================94.0%====================== ] [===========================95.0%======================= ] [===========================96.0%======================= ] [===========================97.0%======================== ] [===========================98.0%======================== ] [===========================99.0%========================= ] [==========================100.0%==========================] The operation completed successfully. [03:18:14] Mount Windows Image completed successfully [03:18:14] Windows image successfully mounted at C:\Users\mustafa\Desktop\ee\Mount [03:18:14] Update integration is disabled by configuration. Skipping downloads. [03:18:14] Skipping driver import because it's not enabled or driver path is not set. [03:18:14] Skipping WinRE update based on configuration (Slim mode or DaRT not selected). [03:18:14] Removing provisioned AppX packages... [03:18:21] Default mode: Removing apps from the specific list... [03:18:21] No packages to remove based on default criteria. [03:18:21] AppX package removal completed. [03:18:21] Applying comprehensive system tweaks to the image... [03:18:21] Loading registry hives... [03:18:21] Loaded hive: HKLM\TK_SOFTWARE [03:18:21] Loaded hive: HKLM\TK_SYSTEM [03:18:21] Loaded hive: HKLM\TK_DEFAULT [03:18:22] Disabling Telemetry & Data Collection (Comprehensive Method)... [03:18:22] Applying Telemetry policies... [03:18:22] Running with NSUDO: Disable Telemetry [03:18:22] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f [03:18:23] Nsudo command for 'Disable Telemetry' completed successfully [03:18:23] Running with NSUDO: Disable EnterpriseAuthProxy [03:18:23] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v DisableEnterpriseAuthProxy /t REG_DWORD /d 1 /f [03:18:24] Nsudo command for 'Disable EnterpriseAuthProxy' completed successfully [03:18:24] Disabling Customer Experience Improvement Program (CEIP)... [03:18:24] Running with NSUDO: Disable CEIP [03:18:24] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SOFTWARE\Microsoft\SQMClient\Windows" /v CEIPEnable /t REG_DWORD /d 0 /f [03:18:25] Nsudo command for 'Disable CEIP' completed successfully [03:18:25] Disabling Telemetry and Diagnostics services... [03:18:25] Running with NSUDO: Disable DiagTrack [03:18:25] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SYSTEM\ControlSet001\Services\DiagTrack" /v Start /t REG_DWORD /d 4 /f [03:18:26] Nsudo command for 'Disable DiagTrack' completed successfully [03:18:26] Running with NSUDO: Disable diagsvc [03:18:26] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SYSTEM\ControlSet001\Services\diagsvc" /v Start /t REG_DWORD /d 4 /f [03:18:27] Nsudo command for 'Disable diagsvc' completed successfully [03:18:27] Running with NSUDO: Disable WdiSystemHost [03:18:27] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SYSTEM\ControlSet001\Services\WdiSystemHost" /v Start /t REG_DWORD /d 4 /f [03:18:28] Nsudo command for 'Disable WdiSystemHost' completed successfully [03:18:28] Running with NSUDO: Disable PcaSvc [03:18:28] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SYSTEM\ControlSet001\Services\PcaSvc" /v Start /t REG_DWORD /d 4 /f [03:18:29] Nsudo command for 'Disable PcaSvc' completed successfully [03:18:29] Running with NSUDO: Disable DusmSvc [03:18:29] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SYSTEM\ControlSet001\Services\DusmSvc" /v Start /t REG_DWORD /d 4 /f [03:18:30] Nsudo command for 'Disable DusmSvc' completed successfully [03:18:30] Running with NSUDO: Disable WbioSrvc [03:18:31] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SYSTEM\ControlSet001\Services\WbioSrvc" /v Start /t REG_DWORD /d 4 /f [03:18:32] Nsudo command for 'Disable WbioSrvc' completed successfully [03:18:32] Running with NSUDO: Disable dmwappushservice [03:18:32] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SYSTEM\ControlSet001\Services\dmwappushservice" /v Start /t REG_DWORD /d 4 /f [03:18:33] Nsudo command for 'Disable dmwappushservice' completed successfully [03:18:33] Disabling Windows Error Reporting... [03:18:33] Running with NSUDO: Disable WER [03:18:33] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /v Disabled /t REG_DWORD /d 1 /f [03:18:34] Nsudo command for 'Disable WER' completed successfully [03:18:34] Running with NSUDO: Disable WER Throttling [03:18:34] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v DontSendThrottlingData /t REG_DWORD /d 1 /f [03:18:35] Nsudo command for 'Disable WER Throttling' completed successfully [03:18:35] Running with NSUDO: Disable WerSvc [03:18:35] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SYSTEM\ControlSet001\Services\WerSvc" /v Start /t REG_DWORD /d 4 /f [03:18:36] Nsudo command for 'Disable WerSvc' completed successfully [03:18:36] Disabling Telemetry scheduled tasks... [03:18:36] Running with NSUDO: Disable Compatibility Appraiser [03:18:36] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /v Enabled /t REG_DWORD /d 0 /f [03:18:37] Nsudo command for 'Disable Compatibility Appraiser' completed successfully [03:18:37] Running with NSUDO: Disable ProgramDataUpdater [03:18:37] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\Application Experience\ProgramDataUpdater" /v Enabled /t REG_DWORD /d 0 /f [03:18:38] Nsudo command for 'Disable ProgramDataUpdater' completed successfully [03:18:38] Running with NSUDO: Disable CEIP Consolidator [03:18:38] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /v Enabled /t REG_DWORD /d 0 /f [03:18:39] Nsudo command for 'Disable CEIP Consolidator' completed successfully [03:18:39] Running with NSUDO: Disable KernelCeipTask [03:18:39] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /v Enabled /t REG_DWORD /d 0 /f [03:18:40] Nsudo command for 'Disable KernelCeipTask' completed successfully [03:18:40] Running with NSUDO: Disable UsbCeip [03:18:40] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /v Enabled /t REG_DWORD /d 0 /f [03:18:41] Nsudo command for 'Disable UsbCeip' completed successfully [03:18:41] Telemetry and Data Collection disabled comprehensively. [03:18:41] Disabling Cortana (Comprehensive Method)... [03:18:41] Applying Cortana policies... [03:18:41] Disabling Cortana integration in Search settings... [03:18:41] Cortana disabled comprehensively. [03:18:41] Disabling OneDrive (Comprehensive Method)... [03:18:41] Applying OneDrive policies... [03:18:41] Removing OneDrive from Explorer navigation pane... [03:18:41] Blocking OneDrive.exe execution... [03:18:41] Disabling OneDrive scheduled update task... [03:18:41] OneDrive disabled comprehensively. [03:18:41] Applying privacy hardening tweaks (Comprehensive Method)... [03:18:41] Disabling Application Compatibility telemetry... [03:18:41] Disabling Location and Sensors access... [03:18:41] Disabling Activity Feed and Timeline... [03:18:41] Forcing app privacy settings to deny access... [03:18:42] Disabling suggested content and advertisements... [03:18:42] Disabling handwriting recognition data sharing... [03:18:42] Privacy hardening tweaks applied comprehensively. [03:18:42] Applying system-wide performance tweaks... [03:18:42] Applying memory management tweaks... [03:18:42] Applying file system performance tweaks... [03:18:42] Applying kernel and session manager tweaks... [03:18:42] Disabling Power Throttling... [03:18:42] System-wide performance tweaks applied. [03:18:42] Disabling unnecessary services based on specific list... [03:18:42] Services to be disabled: AJRouter, BcastDVRUserService, DiagTrack, dmwappushservice, DoSvc, NcdAutoSetup, OneSyncSvc, PushToInstall, RetailDemo, SgrmBroker, shpamsvc, SSDPSRV, WalletService, wercplsupport, WerSvc, wisvc, wlidsvc, XblAuthManager, XblGameSave, XboxNetApiSvc, diagnosticshub.standardcollector.service, MapsBroker, PhoneSvc, PcaSvc, SEMgrSvc, TokenBroker [03:18:42] Unnecessary services disabled. [03:18:42] Applying startup optimizations... [03:18:42] Startup optimizations applied. [03:18:42] Disabling User Account Control (UAC)... [03:18:42] UAC disabled. [03:18:42] Disabling Windows Update (Comprehensive Method)... [03:18:42] Disabling Windows Update services... [03:18:42] Running with NSUDO: Disable wuauserv [03:18:42] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SYSTEM\ControlSet001\Services\wuauserv" /v Start /t REG_DWORD /d 4 /f [03:18:43] Nsudo command for 'Disable wuauserv' completed successfully [03:18:43] Running with NSUDO: Disable WaaSMedicSvc [03:18:43] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SYSTEM\ControlSet001\Services\WaaSMedicSvc" /v Start /t REG_DWORD /d 4 /f [03:18:44] Nsudo command for 'Disable WaaSMedicSvc' completed successfully [03:18:44] Running with NSUDO: Disable DoSvc [03:18:44] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SYSTEM\ControlSet001\Services\DoSvc" /v Start /t REG_DWORD /d 4 /f [03:18:45] Nsudo command for 'Disable DoSvc' completed successfully [03:18:45] Applying core Windows Update policies... [03:18:45] Running with NSUDO: Disable AutoUpdate [03:18:45] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 1 /f [03:18:46] Nsudo command for 'Disable AutoUpdate' completed successfully [03:18:46] Running with NSUDO: Set AUOptions [03:18:46] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 1 /f [03:18:47] Nsudo command for 'Set AUOptions' completed successfully [03:18:47] Running with NSUDO: Disable AutoReboot [03:18:47] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoRebootWithLoggedOnUsers /t REG_DWORD /d 1 /f [03:18:48] Nsudo command for 'Disable AutoReboot' completed successfully [03:18:48] Running with NSUDO: Disable WU UI Access [03:18:48] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v SetDisableUXWUAccess /t REG_DWORD /d 1 /f [03:18:50] Nsudo command for 'Disable WU UI Access' completed successfully [03:18:50] Excluding driver updates... [03:18:50] Running with NSUDO: Exclude WU Drivers [03:18:50] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v ExcludeWUDriversInQualityUpdate /t REG_DWORD /d 1 /f [03:18:51] Nsudo command for 'Exclude WU Drivers' completed successfully [03:18:51] Disabling Delivery Optimization... [03:18:51] Running with NSUDO: Disable DO [03:18:51] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v DODownloadMode /t REG_DWORD /d 100 /f [03:18:52] Nsudo command for 'Disable DO' completed successfully [03:18:52] Disabling update scheduled tasks... [03:18:52] Running with NSUDO: Disable Schedule Scan [03:18:52] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\UpdateOrchestrator\Schedule Scan" /v Enabled /t REG_DWORD /d 0 /f [03:18:53] Nsudo command for 'Disable Schedule Scan' completed successfully [03:18:53] Running with NSUDO: Disable Wake To Run [03:18:53] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\UpdateOrchestrator\Schedule Wake To Run" /v Enabled /t REG_DWORD /d 0 /f [03:18:54] Nsudo command for 'Disable Wake To Run' completed successfully [03:18:54] Running with NSUDO: Disable Update Assistant [03:18:54] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\UpdateOrchestrator\Update Assistant" /v Enabled /t REG_DWORD /d 0 /f [03:18:55] Nsudo command for 'Disable Update Assistant' completed successfully [03:18:55] Running with NSUDO: Disable Update Assistant CalendarRun [03:18:55] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\UpdateOrchestrator\Update Assistant CalendarRun" /v Enabled /t REG_DWORD /d 0 /f [03:18:56] Nsudo command for 'Disable Update Assistant CalendarRun' completed successfully [03:18:56] Windows Update disabled comprehensively. [03:18:56] Disabling Hibernation and Fast Startup... [03:18:56] Hibernation and Fast Startup disabled. [03:18:56] Applying Power Optimizations (High Performance)... [03:18:56] Setting active power scheme to High Performance... [03:18:56] Running with NSUDO: Set High Performance Power Scheme [03:18:56] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SYSTEM\ControlSet001\Control\Power\User\PowerSchemes" /v ActivePowerScheme /t REG_SZ /d 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c /f [03:18:57] Nsudo command for 'Set High Performance Power Scheme' completed successfully [03:18:57] Forcing specific high-performance settings... [03:18:57] Running with NSUDO: Disable Disk Timeout [03:18:57] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SYSTEM\ControlSet001\Control\Power\PowerSettings\0012ee47-9041-4b5d-9b77-535fba8b1442\6738e2c4-e8a5-4a42-b16a-e040e769756e\8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c" /v ACSettingIndex /t REG_DWORD /d 0 /f [03:18:58] Nsudo command for 'Disable Disk Timeout' completed successfully [03:18:58] Running with NSUDO: Disable Sleep Timeout [03:18:58] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SYSTEM\ControlSet001\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\29f6c1db-86da-48c5-9fdb-f2b67b1f44da\8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c" /v ACSettingIndex /t REG_DWORD /d 0 /f [03:18:59] Nsudo command for 'Disable Sleep Timeout' completed successfully [03:18:59] Running with NSUDO: Disable USB Suspend [03:18:59] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SYSTEM\ControlSet001\Control\Power\PowerSettings\2a737441-1930-4402-8d77-b2bebba308a3\48e6b7a6-50f5-4782-a5d4-53bb8f07e226\8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c" /v ACSettingIndex /t REG_DWORD /d 0 /f [03:19:00] Nsudo command for 'Disable USB Suspend' completed successfully [03:19:00] Running with NSUDO: Disable PCIe Power Management [03:19:00] Nsudo command: C:\Users\mustafa\Desktop\ee\Tools\amd64\Nsudo.exe -U:T -P:E -M:S "C:\WINDOWS\System32\reg.exe" add "HKLM\TK_SYSTEM\ControlSet001\Control\Power\PowerSettings\501a4d13-42af-4429-9fd1-a8218c268e20\ee12f906-d277-404b-b6da-e5fa1a576df5\8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c" /v ACSettingIndex /t REG_DWORD /d 0 /f [03:19:01] Nsudo command for 'Disable PCIe Power Management' completed successfully [03:19:01] Power settings optimized for high performance. [03:19:01] Applying Gaming Mode Tweaks (Comprehensive Method)... [03:19:01] Disabling Game DVR... [03:19:01] Enabling Game Mode policies... [03:19:01] Prioritizing system resources for games... [03:19:01] Disabling network throttling... [03:19:01] Gaming mode tweaks applied. [03:19:01] Applying Network Optimizations (Comprehensive Method)... [03:19:01] Applying TCP latency tweaks... [03:19:01] Optimizing connection and protocol parameters... [03:19:01] Removing QoS reserved bandwidth... [03:19:01] Disabling network adapter power saving... [03:19:01] Network settings optimized comprehensively. [03:19:01] Enabling Classic Photo Viewer for all common image types... [03:19:02] Classic Photo Viewer enabled. [03:19:02] All system tweaks applied successfully [03:19:02] Unloading registry hives... [03:19:02] Configuring Windows UI settings for default user... [03:19:02] Loaded NTUSER hive for UI configuration. [03:19:02] Configuring desktop icons based on selection: ThisPC + Bin [03:19:02] Enabling dark theme... [03:19:02] Customizing taskbar... [03:19:02] Applying visual performance tweaks... [03:19:02] UI configuration completed successfully [03:19:02] Unloaded NTUSER hive. [03:19:02] Unmounting Windows image... [03:19:02] Unloading all registry hives... [03:19:02] Successfully unloaded HKLM\TK_SOFTWARE [03:19:02] Successfully unloaded HKLM\TK_SYSTEM [03:19:02] Successfully unloaded HKLM\TK_DEFAULT [03:19:02] Warning: HKLM\TK_NTUSER was not loaded or already unloaded [03:19:02] Waiting for registry hives to be fully released... [03:19:12] Checking for open handles in mount directory... [03:19:13] Open handles found: wimserv.exe pid: 10656 type: File 1B4: C:\Users\mustafa\Desktop\ee\mount [03:19:13] Attempting to close handle for Process ID 10656 (File: C:\Users\mustafa\Desktop\ee\mount) [03:19:13] Detected wimserv.exe. Attempting to stop DISM service... [03:19:13] WIMMount service stopped. [03:19:18] Running DISM cleanup to release any lingering resources... [03:19:32] DISM cleanup completed. [03:19:37] Attempt 1 to commit changes and unmount... [03:19:37] Starting Unmount Windows Image... [03:19:37] Command: dism.exe /unmount-wim /mountdir:"C:\Users\mustafa\Desktop\ee\Mount" /commit [03:23:38] Process output: Deployment Image Servicing and Management tool Version: 10.0.26100.1150 Image File : C:\Users\mustafa\Desktop\ee\DVD\sources\install.wim Image Index : 1 Saving image [ 1.0% ] [= 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% ] [======================= 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%==================== ] [===========================92.0%===================== ] [===========================93.0%===================== ] [===========================94.0%====================== ] [===========================95.0%======================= ] [===========================96.0%======================= ] [===========================97.0%======================== ] [===========================98.0%======================== ] [===========================99.0%========================= ] [==========================100.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%==================== ] [===========================92.0%===================== ] [===========================93.0%===================== ] [===========================94.0%====================== ] [===========================95.0%======================= ] [===========================96.0%======================= ] [===========================97.0%======================== ] [===========================98.0%======================== ] [===========================99.0%========================= ] [==========================100.0%==========================] The operation completed successfully. [03:23:38] Unmount Windows Image completed successfully [03:23:38] Windows image unmounted successfully [03:23:38] Cleaned mount directory [03:23:38] Creating new ISO file... [03:23:38] Removing existing ISO at C:\Users\mustafa\Desktop\Custom_Windows_by_Tweaker.iso [03:23:38] Starting Create ISO... [03:23:38] Command: C:\Users\mustafa\Desktop\ee\Tools\oscdimg.exe -m -o -u2 -udfver102 -bootdata:2#p0,e,b"C:\Users\mustafa\Desktop\ee\DVD\boot\etfsboot.com"#pEF,e,b"C:\Users\mustafa\Desktop\ee\DVD\efi\microsoft\boot\efisys.bin" "C:\Users\mustafa\Desktop\ee\DVD" "C:\Users\mustafa\Desktop\Custom_Windows_by_Tweaker.iso" [03:24:05] Process output: OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility Copyright (C) Microsoft, 1993-2012. All rights reserved. Licensed only for producing Microsoft authorized content. Scanning source tree Scanning source tree complete (904 files in 86 directories) Computing directory information Computing directory information complete Image file is 4834590720 bytes (before optimization) Writing 904 files in 86 directories to C:\Users\mustafa\Desktop\Custom_Windows_by_Tweaker.iso Storage optimization saved 25 files, 14182400 bytes (1% of image) After optimization, image file is 4822487040 bytes Space saved because of embedding, sparseness or optimization = 14182400 Done. [03:24:05] Process error output: Scanning source tree (500 files in 41 directories) 0% complete 0% complete 0% complete 1% complete 2% complete 3% complete 4% complete 5% complete 6% complete 7% complete 8% complete 9% complete 10% complete 11% complete 12% complete 13% complete 14% complete 15% complete 16% complete 17% complete 18% complete 19% complete 20% complete 21% complete 22% complete 23% complete 24% complete 25% complete 26% complete 27% complete 28% complete 29% complete 30% complete 31% complete 32% complete 33% complete 34% complete 35% complete 36% complete 37% complete 38% complete 39% complete 40% complete 41% complete 42% complete 43% complete 44% complete 45% complete 46% complete 47% complete 48% complete 49% complete 50% complete 51% complete 52% complete 53% complete 54% complete 55% complete 56% complete 57% complete 58% complete 59% complete 60% complete 61% complete 62% complete 63% complete 64% complete 65% complete 66% complete 67% complete 68% complete 69% complete 70% complete 71% complete 72% complete 73% complete 74% complete 75% complete 76% complete 77% complete 78% complete 79% complete 80% complete 81% complete 82% complete 83% complete 84% complete 85% complete 86% complete 87% complete 88% complete 89% complete 90% complete 91% complete 92% complete 93% complete 94% complete 95% complete 96% complete 97% complete 98% complete 99% complete 99% complete 100% complete [03:24:05] Create ISO completed successfully [03:24:05] New ISO created successfully at C:\Users\mustafa\Desktop\Custom_Windows_by_Tweaker.iso (4.49 GB) [03:24:05] Cleaning up environment... [03:24:05] Cleaned directory: C:\Users\mustafa\Desktop\ee\Temp [03:24:05] Cleaned directory: C:\Users\mustafa\Desktop\ee\Mount [03:24:05] Cleaned directory: C:\Users\mustafa\Desktop\ee\DVD [03:24:06] DISM cleanup completed [03:24:06] Environment cleanup completed successfully [03:24:06] Total processing time: 00:07:33
The same error appeared for me. If possible reduce the size of the .ps1. The bottom part of the script is not visible.
Sorry for the inconvenience, does anyone have a script or something to remove Microsoft Edge from an install.wim? In Windows 11, this can be done via DISM, which uninstalls Microsoft Edge and its folders (EdgeCore, etc.). But I want to try this on Windows 10.