From Code: :: Setting Custom Windows Recovery Image file path according to selected Source OS set "RecoveryImage=%RecoveryImage%\%SelectedSourceOS%\%ImageArchitecture%" :: Checking whether Custom Windows Recovery Image file exist if not exist "%RecoveryImage%\winre.wim" ( echo.Custom Windows Recovery Image file "winre.wim" not found... echo. echo.Please copy the above file to ^<Custom\RecoveryImage\%SelectedSourceOS%\%ImageArchitecture%^> folder... goto :Stop ) echo.------------------------------------------------------------------------------- echo.####Starting Integrating Custom Windows Recovery Image######################### echo.------------------------------------------------------------------------------- echo. echo. Image : Install.wim if /i "%ImageIndexNo%" equ "A" echo. Image Indexes : 1-%ImageCount% if /i "%ImageIndexNo%" neq "A" echo. Image Index : %ImageIndexNo% echo. Image Architecture : %ImageArchitecture% echo. Image Version : %ImageVersion%.%ImageServicePackBuild%.%ImageServicePackLevel% echo. echo.------------------------------------------------------------------------------- echo.####Integrating Custom Windows Recovery Image################################## echo.------------------------------------------------------------------------------- for /l %%i in (1, 1, %ImageCount%) do ( if exist "%InstallMount%\%%i" ( echo. if not %%i gtr 9 echo.=====================[Install.wim, Index : %%i -^> WinRE.wim]==================== if %%i gtr 9 echo.=====================[Install.wim, Index : %%i -^> WinRE.wim]=================== echo. echo.Copying Custom Windows Recovery Environment (WinRE) Image... to Code: :: Setting Custom Windows Recovery Image file path according to selected Source OS set "RecoveryImage=%CustomRecoveryImage%\%SelectedSourceOS%\%ImageArchitecture%" :: Checking whether Custom Windows Recovery Image file exist if not exist "%RecoveryImage%\winre.wim" ( echo.Custom Windows Recovery Image file "winre.wim" not found... echo. echo.Please copy the above file to ^<%RecoveryImage%^> folder... goto :Stop ) echo.------------------------------------------------------------------------------- echo.####Starting Integrating Custom Windows Recovery Image######################### echo.------------------------------------------------------------------------------- echo. echo. Image : Install.wim if /i "%ImageIndexNo%" equ "A" echo. Image Indexes : 1-%ImageCount% if /i "%ImageIndexNo%" neq "A" echo. Image Index : %ImageIndexNo% echo. Image Architecture : %ImageArchitecture% echo. Image Version : %ImageVersion%.%ImageServicePackBuild%.%ImageServicePackLevel% echo. echo.------------------------------------------------------------------------------- echo.####Integrating Custom Windows Recovery Image################################## echo.------------------------------------------------------------------------------- for /l %%i in (1, 1, %ImageCount%) do ( if exist "%InstallMount%\%%i" ( echo. if not %%i gtr 9 echo.=====================[Install.wim, Index : %%i -^> WinRE.wim]==================== if %%i gtr 9 echo.=====================[Install.wim, Index : %%i -^> WinRE.wim]=================== echo. echo.Copying Custom Windows Recovery Environment ^(WinRE^) Image... With the correction suggested by, @正义羊
It has been on Removing Package Files for 15 minutes now? It says: '' Component: Screensketch Removing Package Files... '' does it take this long to remove a file?
It has been on Removing Package Files for 20 minutes now? It says: '' Component: Screensketch Removing Package Files... '' does it take this long to remove a file?
Use the latest version of Toolkit + the latest Toolkit script uploaded separately in the download link. You need to choose the components first and then start removing the components and yes it will take some time to start the removal process but doesn't take a long time for each components like in previous versions.
If you haven't selected the recovery image for mounting while selecting the source then you can remove it but can't say if it breaks the OS without testing.
@MSMG: There may be an issue with the "disable windows update" tweak in the script. Line 1164 and line 1165: Code: Reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DODownloadMode" /t REG_DWORD /d "0" /f >nul 2>&1 Reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DODownloadMode" /t REG_DWORD /d "63" /f >nul 2>&1 The policy setting is being repeated, as you can see. But besides that, the value "63" is not valid. Valid would be 0, 1, 99 and 100 according to MS docs. Leaving this uncorrected will flood the event viewer with delivery optimization warnings. Cheers.