The post was updated according to the new experience and tests ( MSMG + W10-Debloater-SysApps : Thanks to amazing authors!) Now it's time to go back to the 1-st question. How minimum Store config should look for UWP-drivers / appX, AppxBundle OFFLINE installation? Feel free to share your knowledge. I'll be much appreciated for any guess or advice!
Tested today with W10 LTSC 2019 x64 + current CU 1490 and Windows Defender removed using ToolkitHelper. The cleanup works, do test when the new version of Toolkit is released. Code: D:\Work\w10>..\dism\exportimage2wim.cmd ..\Source\w10_rs5_x64.wim 8 install.wim Deployment Image Servicing and Management tool Version: 10.0.19041.329 Exporting image [==========================100.0%==========================] The operation completed successfully. D:\Work\w10> D:\Work\w10>..\dism\mountimage.cmd install.wim 1 mount Deployment Image Servicing and Management tool Version: 10.0.19041.329 Mounting image [==========================100.0%==========================] The operation completed successfully. D:\Work\w10>dism /Image:mount /Add-Package /PackagePath:..\UpdatePack\Windows-10.0.17763-x64\ServicingStack Deployment Image Servicing and Management tool Version: 10.0.19041.329 Image Version: 10.0.17763.1 Processing 1 of 1 - Adding package D:\Work\UpdatePack\Windows-10.0.17763-x64\ServicingStack\windows10.0-kb4570332-x64_e6d793a79a9424f23feef4e4bcc00c5a883b78da.msu [==========================100.0%==========================] The operation completed successfully. D:\Work\w10>dism /Image:mount /Add-Package /PackagePath:..\UpdatePack\Windows-10.0.17763-x64\FlashPlayer Deployment Image Servicing and Management tool Version: 10.0.19041.329 Image Version: 10.0.17763.1 Processing 1 of 1 - Adding package D:\Work\UpdatePack\Windows-10.0.17763-x64\FlashPlayer\windows10.0-kb4561600-x64_00504a2c48850e3897caa5f9f9527881e87af0dd.msu [==========================100.0%==========================] The operation completed successfully. D:\Work\w10>dism /Image:mount /Add-Package /PackagePath:..\UpdatePack\Windows-10.0.17763-x64\NET48 Deployment Image Servicing and Management tool Version: 10.0.19041.329 Image Version: 10.0.17763.1 Processing 1 of 1 - Adding package D:\Work\UpdatePack\Windows-10.0.17763-x64\NET48\windows10.0-kb4486153-x64_43ee33b302bfdba470542a128a9ee0b58faa5412.msu [==========================100.0%==========================] The operation completed successfully. D:\Work\w10>dism /Image:mount /Add-Package /PackagePath:..\UpdatePack\Windows-10.0.17763-x64\NetCumulative Deployment Image Servicing and Management tool Version: 10.0.19041.329 Image Version: 10.0.17763.1 Processing 1 of 1 - Adding package D:\Work\UpdatePack\Windows-10.0.17763-x64\NetCumulative\windows10.0-kb4576946-x64-ndp48_8d287058f0959697ecfc599a9fb54a37a538dc05.msu [==========================100.0%==========================] The operation completed successfully. D:\Work\w10>dism /Image:mount /Add-Package /PackagePath:..\UpdatePack\Windows-10.0.17763-x64\Cumulative Deployment Image Servicing and Management tool Version: 10.0.19041.329 Image Version: 10.0.17763.1 Processing 1 of 1 - Adding package D:\Work\UpdatePack\Windows-10.0.17763-x64\Cumulative\windows10.0-kb4577069-x64_ea0fa6bd418d0684a7a077cb62384ae593d43b7a.msu [==========================100.0%==========================] The operation completed successfully. D:\Work\w10>ToolKitHelper.exe mount WindowsDefender MSMG ToolKit Commandline Helper Version: 1.0.3888.0 Image Version: 10.0.17763.1490 Component : WindowsDefender Removing Package files... Modifying Package files... Loading Image Registry... Modifying Package Registry... Unloading Image Registry... The operation completed successfully. D:\Work\w10>dism /image:mount /cleanup-image /startcomponentcleanup Deployment Image Servicing and Management tool Version: 10.0.19041.329 Image Version: 10.0.17763.1490 [==========================100.0%==========================] The operation completed successfully. D:\Work\w10>sfc /verifyonly /offbootdir=D:\Work\w10\mount /offwindir=D:\Work\w10\mount\windows Beginning system scan. This process will take some time. Windows Resource Protection did not find any integrity violations. D:\Work\w10>
An update to people who have forked the Toolkit script, the new version of Toolkit comes with support for random multi-index servicing and so the Toolkit script has undergone vast amount of code changes. I will be releasing two version of the Toolkit script one with the current published script + changes added so far excluding multi-index servicing support and other one with multi-index servicing support for people who have forked the Toolkit to get more time to make changes to their custom scripts and testing. The new Toolkit script with support for random multi-index servicing has reduced overall code size from 1.51 MB to 1.27 MB and also made it easier to make new changes to the script and it takes less time to update the script now. - The Toolkit provides the option to select the index as 1 or 1,2,3 or 2,5,8 or 'A' (All Indexes) and 'Q' (Go Back to Main Menu). - Be it Single Index, Random Indexes or All Indexes the Toolkit mounts the selected index with their index number For e.g. Index: 1 (Mount\Install\1) Index: 1,2,3 (Mount\Install\1) (Mount\Install\2) (Mount\Install\3) Index: 2,5,8 (Mount\Install\2) (Mount\Install\5) (Mount\Install\8) The same applies for Windows Recovery (Winre.wim) image too. - Irrespective of Single Index, Random Indexes or All Indexes selected, the Toolkit when applying any feature use a loop with a count starting from 1 to Total Indexes to check if their is a mounted folder with the index no in the loop and if found then the feature is applied to that mounted image folder. This makes it easier to use the same code for all modes of selected index and take less time to test the code since testing for a single index is sufficient as it works for all indexes. Do test the new Toolkit script with support for random multi-index servicing and let me know if any bugs needs to be fixed and suggestions are welcome.
Updated the ToolKit to v10.6 Spoiler: Chnagelog v10.6 + Updated ToolKit's Bin folder with Windows 10 20H1 Insider Preview WADK (v10.0.20226.1000) Tools. + Updated the Feature "Integrate WHD Update Pack" to update the Image Version and Build information for Windows 10 Source OS. + Updated the Feature "Remove Windows Component" to support Windows 10 Client v1809 (v10.0.17763.1490) Source OS. + Updated the Feature "Remove Windows Component" to support Windows 10 Client v1903/v1909 (v10.0.18362.1110/v10.0.18363.1110) Source OS. + Updated the Feature "Remove Windows Component" to support Windows 10 Client v2004/v2009 (v10.0.19041.546/v10.0.19042.546) Source OS. + Updated the Feature "Apply Tweaks" with updates for Disable Windows Upgrade Tweak. + Updated the Feature "Apply Tweaks" with Tweak to Disable showing Windows Defender Notification and System Tray Icon. + Fixed Typo Errors (Thanks to MDL Member : 正义羊). Also have uploaded new TooKit script v10.7 Beta with support for Random Multi-Index Image Servicing, do test the new Toolkit script and let me know if any bugs needs to be fixed and suggestions are welcome.
@MSMG Much appreciated for the new versions! I've wanted to say for a long time the MEGA is a whole trash. Every single time I'm expecting troubles with it. It always want smth odd. Or it say that is badly work with Firefox, or won't load. Even trough the TOR. Odd splashing everywere... Nah... Now it says the quota exeeded for v10.7 beta (with TOR). I'm realy tired of this nonsesce, rainy mega-cloud of adds and web-bugs... And it always use an obsoltete standards (like TLS 1.2). (I know I can use Pastebin, but...). Do you agree?
MEGA site works best with Chrome based browsers, With other browsers it requires enough memory for downloading properly, for this the MEGA provides extensions for Firefox, do install it from MEGA site. The reason I do use MEGA is due to 50 GB Free storage and the amount of Toolkit Packs files is around 80GB, that's why I have moved the Toolkit Pack->Language Packs to a second MEGA account. And the other reason is due to DMCA notice issues, so far haven't got any notice from MEGA. Even with MEGA free account you can't download large files (>1GB) from Browser, you need the MEGA Desktop client to download it.
Could this possibly fix my Cleanup (6 > 1) producing SFC errors? Am testing with this step in my method, unless you tell me otherwise.
@MSMG Tested v10.6 and I continue to receive SFC errors. In future I will not integrate Windows Updates, as they seem to cause me problems. Instead, I will install updates after fresh installation. Also note that OOBE screen during setup is still not displayed. While removing the Cleanup (6 > 1) step from my method may fix the SFC issues, it does not fix the missing OOBE screen issue. Spoiler: Files used x86 ISO: 19041.450.200808-0726.VB_RELEASE_SVC_REFRESH_CLIENTENTERPRISE_VOL_X86FRE_EN-GB.ISO x86 SSU: windows10.0-kb4577266-x86_189fc04e250eee5113654f9b2b56a8ce9f764bfe.msu x86 CU: windows10.0-kb4571756-x86_32b08a98d6246f4e0186c74e0280a5c1518d883d.msu x64 ISO: 19041.450.200808-0726.VB_RELEASE_SVC_REFRESH_CLIENTENTERPRISE_VOL_X64FRE_EN-GB.ISO x64 SSU: windows10.0-kb4577266-x64_126987f629769e860cd7985371754db91685ea16.msu x64 CU: windows10.0-kb4571756-x64_66f7130a68dd9748511454436b3ffb61730d9775.msu Spoiler: Method Extract ISO (1 > 3) Select source (1 > 1) (also mount boot and recovery images) Integrate Win32 calculator (3 > 3 > C) Apply SSU and CU updates (3 > 4 > 2 > 1 > 4) Apply setup media update (3 > 4 > 2 > 2) Remove using RemovePkgsList.txt (4 > 3) Spoiler: RemovePkgsList.txt GameExplorer MapControl OneDrive PeopleExperienceHost RetailDemoContent SecureAssessmentBrowser SkypeORTC WindowsMixedReality XboxGameCallableUI 3DViewer AdvertisingXaml Alarms BingWeather Calculator Camera CommunicationsApps Cortana DesktopAppInstaller FeedbackHub GetHelp Getstarted HEIFImageExtension Maps MixedRealityPortal OfficeHub OfficeOneNote Paint3D People Photos ScreenSketch SkypeApp SolitaireCollection SoundRecorder StickyNotes VP9VideoExtensions WalletService WebMediaExtensions WebpImageExtensions WindowsStore XboxApp XboxIdentityProvider YourPhone ZuneMusic ZuneVideo Unpin all Start menu icons (5 > 6) Tweaks for Task View, App Downloads, Photo Viewer (5 > 8 > B/D/J) Cleanup (6 > 1) Apply changes to image (6 > 2 > Y) Rebuild (6 > 1) Convert WIM to ESD (2 > 4) Make ISO (7 > 1) Have attached CBS log files.
@MSMG Image: LTSC 1809 x64 spanish Procedure: - integrated some features - integrated 1490 preview CU and the SSU, flash, .net cu - Removed using package list, defender included in list, toolkithelper method, all OK no errors - Run cleanup image option (with resetbase) Got the following error: And the log again point to missing defender resources: Code: 2020-10-01 18:27:13, Error CSI 00000053 (F) STATUS_OBJECT_NAME_NOT_FOUND #5000126# from Windows::Rtl::SystemImplementation::DirectRegistryProvider::SysOpenKey(flg = (AllowAccessDenied), key = {provider=NULL, handle=0, name= ("null")}, da = (KEY_ALL_ACCESS|KEY_WOW64_64KEY), oa = @0x93afafac48->OBJECT_ATTRIBUTES {s:48; rd:NULL; on:[276]'\Registry\Machine\{bf1a281b-ad7b-4476-ac95-f47682990ce7}M:/msmg/Mount/Install/Windows/System32/config/COMPONENTS\DerivedData\VersionedIndex\10.0.17763.1450 (WinBuild.160101.0800)\ComponentFamilies\amd64_wi[gle=0xd0000034] 2020-10-01 18:27:13, Error CSI ndows-defender-events.resources_31bf3856ad364e35_es-es_bfdb7d752952c540'; a:(OBJ_CASE_INSENSITIVE)}, disp = Unmapped disposition: 2947525160)[gle=0xd0000034] 2020-10-01 18:27:13, Error CSI 00000054@2020/10/1:23:27:13.872 (F) onecore\base\wcp\sil\ntsystem.cpp(5348): Error STATUS_OBJECT_NAME_NOT_FOUND originated in function Windows::Rtl::SystemImplementation::DirectRegistryProvider::SysOpenKey expression: (null) [gle=0x80004005] 2020-10-01 18:27:13, Info CBS Added M:\msmg\Logs\Dism.txt to WER report. 2020-10-01 18:27:13, Info CBS Not able to add current session file to offline WER report. [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND] 2020-10-01 18:27:13, Info CBS Not able to add pending.xml to offline WER report. [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND] 2020-10-01 18:27:13, Error CSI 00000055 (F) STATUS_OBJECT_NAME_NOT_FOUND #5000125# from Windows::Rtl::SystemImplementation::DirectRegistryProvider::SysOpenKey(flg = 0, key = {provider=NULL, handle=0, name= ("null")}, da = (KEY_ALL_ACCESS|KEY_WOW64_64KEY), oa = @0x93afafac48->OBJECT_ATTRIBUTES {s:48; rd:NULL; on:[276]'\Registry\Machine\{bf1a281b-ad7b-4476-ac95-f47682990ce7}M:/msmg/Mount/Install/Windows/System32/config/COMPONENTS\DerivedData\VersionedIndex\10.0.17763.1450 (WinBuild.160101.0800)\ComponentFamilies\amd64_windows-defender-eve[gle=0xd0000034] 2020-10-01 18:27:13, Error CSI nts.resources_31bf3856ad364e35_es-es_bfdb7d752952c540'; a:(OBJ_CASE_INSENSITIVE)}, disp = Unmapped disposition: 2947526272)[gle=0xd0000034] 2020-10-01 18:27:13, Error CSI 00000056@2020/10/1:23:27:13.958 (F) onecore\base\wcp\sil\ntsystem.cpp(5348): Error STATUS_OBJECT_NAME_NOT_FOUND originated in function Windows::Rtl::SystemImplementation::DirectRegistryProvider::SysOpenKey expression: (null) [gle=0x80004005] 2020-10-01 18:27:13, Error CSI 00000057 (F) STATUS_OBJECT_NAME_NOT_FOUND #5000124# from Windows::Rtl::SystemImplementation::CKey::OpenExistingKey(f = 2, da = (KEY_ALL_ACCESS), oa = @0x93afafb0b0, key = NULL, disp = (null))[gle=0xd0000034] 2020-10-01 18:27:13, Info CSI 00000058 Couldn't mark for pending delete: [l:38 ml:39]'\SystemRoot\WinSxS\Temp\PendingDeletes'\[l:44]'b59781614998d6015f0f0000e4227027.msdelta.dll'. Reason: 'Cannot Delete' 2020-10-01 18:27:13, Error CSI 00000059 (F) STATUS_OBJECT_NAME_NOT_FOUND #310417# from CCSDirectTransaction::OperateEnding at index 0 of 1 operations, disposition 0[gle=0xd0000034] 2020-10-01 18:27:13, Error CSI 0000005a (F) HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) #310321# from Windows::COM::CComponentStore::InternalTransact(...)[gle=0x80070002] 2020-10-01 18:27:13, Error CSI 0000005b (F) HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) #310319# from Windows::ServicingAPI::CCSITransaction::ICSITransaction_Commit(Flags = 2070, pSink = NULL, disp = 0)[gle=0x80070002] 2020-10-01 18:27:13, Error CSI 0000005c (F) HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) #310318# 1270686625 us from Windows::ServicingAPI::CCSITransaction_ICSITransaction::Commit(flags = 0x00000816, pSink = NULL, disp = 0) Cleanup+resetbase failed. Have not tried the x86 image yet, will do later. Cheers.
Ok it might be the Spanish language resources related to Windows Defender not being deleted causing the cleanup error.