I am trying to use the tool on "WIndows 10 - 1909 - 18362" with the following options: Code: "WindowsApps": "Select", "SystemApps": true, "Capabilities": true, "Packages": true, "Features": true, "DeveloperMode": false, "WindowsStore": false, "MicrosoftEdge": false, "Win32Calc": true, "Dedup": false, "Registry": true, "Additional": { "Setup": false, "Wallpaper": false, "SystemLogo": false, "LockScreen": false, "RegistryTemplates": false, "Unattend": false, "Drivers": false, "NetFx3": true }, "ISO": "No-Prompt" } But I am getting the following error log: Spoiler: Error Log Code: *************************************************************************************************** Running Module : Optimize-Offline 4.0.0.7 Optimize Start : 03/26/2020 09:13:28 PM Identity Name : HOME Computer Name : HOME *************************************************************************************************** 2020-03-26T21:13:28 [INFO]: Supported Image Build: [18362] 2020-03-26T21:13:31 [INFO]: Mounting Windows 10 Pro 2020-03-26T21:14:25 [INFO]: Pre-Optimization Image Health State: [Healthy] 2020-03-26T21:15:36 [INFO]: Removing Provisioned App Package: Microsoft.MixedReality.Portal 2020-03-26T21:15:40 [INFO]: Removing Provisioned App Package: Microsoft.BingWeather 2020-03-26T21:15:43 [INFO]: Removing Provisioned App Package: Microsoft.DesktopAppInstaller 2020-03-26T21:15:47 [INFO]: Removing Provisioned App Package: Microsoft.GetHelp 2020-03-26T21:15:50 [INFO]: Removing Provisioned App Package: Microsoft.Getstarted 2020-03-26T21:15:53 [INFO]: Removing Provisioned App Package: Microsoft.HEIFImageExtension 2020-03-26T21:15:57 [INFO]: Removing Provisioned App Package: Microsoft.Messaging 2020-03-26T21:16:00 [INFO]: Removing Provisioned App Package: Microsoft.Microsoft3DViewer 2020-03-26T21:16:04 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftOfficeHub 2020-03-26T21:16:07 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftSolitaireCollection 2020-03-26T21:16:11 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftStickyNotes 2020-03-26T21:16:14 [INFO]: Removing Provisioned App Package: Microsoft.MSPaint 2020-03-26T21:16:17 [INFO]: Removing Provisioned App Package: Microsoft.Office.OneNote 2020-03-26T21:16:21 [INFO]: Removing Provisioned App Package: Microsoft.OneConnect 2020-03-26T21:16:24 [INFO]: Removing Provisioned App Package: Microsoft.People 2020-03-26T21:16:27 [INFO]: Removing Provisioned App Package: Microsoft.Print3D 2020-03-26T21:16:31 [INFO]: Removing Provisioned App Package: Microsoft.ScreenSketch 2020-03-26T21:16:34 [INFO]: Removing Provisioned App Package: Microsoft.SkypeApp 2020-03-26T21:16:38 [INFO]: Removing Provisioned App Package: Microsoft.StorePurchaseApp 2020-03-26T21:16:41 [INFO]: Removing Provisioned App Package: Microsoft.VP9VideoExtensions 2020-03-26T21:16:44 [INFO]: Removing Provisioned App Package: Microsoft.Wallet 2020-03-26T21:16:47 [INFO]: Removing Provisioned App Package: Microsoft.WebMediaExtensions 2020-03-26T21:16:51 [INFO]: Removing Provisioned App Package: Microsoft.WebpImageExtension 2020-03-26T21:16:54 [INFO]: Removing Provisioned App Package: Microsoft.Windows.Photos 2020-03-26T21:16:58 [INFO]: Removing Provisioned App Package: Microsoft.WindowsAlarms 2020-03-26T21:17:01 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCalculator 2020-03-26T21:17:04 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCamera 2020-03-26T21:17:08 [INFO]: Removing Provisioned App Package: microsoft.windowscommunicationsapps 2020-03-26T21:17:11 [INFO]: Removing Provisioned App Package: Microsoft.WindowsFeedbackHub 2020-03-26T21:17:15 [INFO]: Removing Provisioned App Package: Microsoft.WindowsMaps 2020-03-26T21:17:18 [INFO]: Removing Provisioned App Package: Microsoft.WindowsSoundRecorder 2020-03-26T21:17:21 [INFO]: Removing Provisioned App Package: Microsoft.WindowsStore 2020-03-26T21:17:24 [INFO]: Removing Provisioned App Package: Microsoft.Xbox.TCUI 2020-03-26T21:17:28 [INFO]: Removing Provisioned App Package: Microsoft.XboxApp 2020-03-26T21:17:31 [INFO]: Removing Provisioned App Package: Microsoft.XboxGameOverlay 2020-03-26T21:17:34 [INFO]: Removing Provisioned App Package: Microsoft.XboxGamingOverlay 2020-03-26T21:17:37 [INFO]: Removing Provisioned App Package: Microsoft.XboxIdentityProvider 2020-03-26T21:17:40 [INFO]: Removing Provisioned App Package: Microsoft.XboxSpeechToTextOverlay 2020-03-26T21:17:43 [INFO]: Removing Provisioned App Package: Microsoft.YourPhone 2020-03-26T21:17:47 [INFO]: Removing Provisioned App Package: Microsoft.ZuneMusic 2020-03-26T21:17:50 [INFO]: Removing Provisioned App Package: Microsoft.ZuneVideo 2020-03-26T21:18:58 [INFO]: Removing System App: InputApp 2020-03-26T21:19:00 [INFO]: Removing System App: Microsoft.AAD.BrokerPlugin 2020-03-26T21:19:02 [INFO]: Removing System App: Microsoft.BioEnrollment 2020-03-26T21:19:04 [INFO]: Removing System App: Microsoft.ECApp 2020-03-26T21:19:06 [INFO]: Removing System App: Microsoft.LockApp 2020-03-26T21:19:08 [INFO]: Removing System App: Microsoft.MicrosoftEdge 2020-03-26T21:19:10 [INFO]: Removing System App: Microsoft.MicrosoftEdgeDevToolsClient 2020-03-26T21:19:12 [INFO]: Removing System App: Microsoft.PPIProjection 2020-03-26T21:19:14 [INFO]: Removing System App: Microsoft.Win32WebViewHost 2020-03-26T21:19:16 [INFO]: Removing System App: Microsoft.Windows.AddSuggestedFoldersToLibarayDialog 2020-03-26T21:19:18 [INFO]: Removing System App: Microsoft.Windows.AppResolverUX 2020-03-26T21:19:21 [INFO]: Removing System App: Microsoft.Windows.CallingShellApp 2020-03-26T21:19:23 [INFO]: Removing System App: Microsoft.Windows.ContentDeliveryManager 2020-03-26T21:19:25 [INFO]: Removing System App: Microsoft.Windows.Cortana 2020-03-26T21:19:27 [INFO]: Removing System App: Microsoft.Windows.FileExplorer 2020-03-26T21:19:29 [INFO]: Removing System App: Microsoft.Windows.FilePicker 2020-03-26T21:19:31 [INFO]: Removing System App: Microsoft.Windows.ParentalControls 2020-03-26T21:19:33 [INFO]: Removing System App: Microsoft.Windows.PeopleExperienceHost 2020-03-26T21:19:35 [INFO]: Removing System App: Microsoft.Windows.SecHealthUI 2020-03-26T21:19:37 [INFO]: Removing System App: Microsoft.Windows.SecureAssessmentBrowser 2020-03-26T21:19:39 [INFO]: Removing System App: Microsoft.Windows.XGpuEjectDialog 2020-03-26T21:19:41 [INFO]: Removing System App: Microsoft.XboxGameCallableUI 2020-03-26T21:19:43 [INFO]: Removing System App: Windows.CBSPreview 2020-03-26T21:19:45 [INFO]: Disabling Services, Drivers and Integration Content for Removed Apps. 2020-03-26T21:19:49 [INFO]: Disabling Optional Feature: Windows-Defender-Default-Definitions 2020-03-26T21:19:53 [ERROR]: Failed to Disable Optional Feature: Windows-Defender-Default-Definitions 2020-03-26T21:19:56 [INFO]: Importing Custom App Associations. 2020-03-26T21:20:28 [INFO]: Removing Windows Capability: App.Support.QuickAssist 2020-03-26T21:20:31 [ERROR]: Failed to Remove Windows Capabilities. 2020-03-26T21:20:31 [INFO]: Discarding any Images and Terminating Optimizations. *************************************************************************************************** Optimizations Failed : 03/26/2020 09:20:31 PM *************************************************************************************************** Anyone knows whats going wrong? or how to fix it?
@Disk2019 A little heads up... You keep confusing KedarWolf (OP) with GodHand (Developer) The Safe to Remove image that you posted is a revised recommendation from KedarWolf (this thread's originator) From the Developer's (Godhand [MDL], aka.Ben the Great [Script], aka.DrEmpiricism [GitHub]) Readme: Code: #### System Applications universally safe to remove #### The following System Applications are safe to remove: - BioEnrollment (provided no biometrics will be used) - CallingShellApp (provided no mobile phone will be linked to the device) <<< as an addendum - I think the same may apply to PPIProjection below - MicrosoftEdge (has been replaced by Microsoft Edge Chromium, which is detailed more below) - MicrosoftEdgeDevToolsClient - PPIProjection - SecHealthUI - ContentDeliveryManager - ParentalControls - SecureAssessmentBrowser - XGpuEjectDialog - XboxGameCallableUI *** Cortana can also be removed, though doing so will render the default search feature inoperable and is only recommended if a 3rd party search program like Classic Shell will be used. @radam9 Does the image you are using include all updates, if so how were they applied? Some personal thoughts on what you should consider keeping, having viewed your your log: Spoiler 2020-03-26T21:15:43 [INFO]: Removing Provisioned App Package: Microsoft.DesktopAppInstaller << - Store Related - needed, at the very least for sideloading third party apps 2020-03-26T21:15:53 [INFO]: Removing Provisioned App Package: Microsoft.HEIFImageExtension << - you've kept the video extension, may as well keep this too 2020-03-26T21:16:38 [INFO]: Removing Provisioned App Package: Microsoft.StorePurchaseApp << - Store Related - 2020-03-26T21:16:41 [INFO]: Removing Provisioned App Package: Microsoft.VP9VideoExtensions 2020-03-26T21:16:44 [INFO]: Removing Provisioned App Package: Microsoft.Wallet << - still researching, but may have an effect on Store 2020-03-26T21:16:47 [INFO]: Removing Provisioned App Package: Microsoft.WebMediaExtensions 2020-03-26T21:16:51 [INFO]: Removing Provisioned App Package: Microsoft.WebpImageExtension 2020-03-26T21:17:21 [INFO]: Removing Provisioned App Package: Microsoft.WindowsStore << - not recommended, removing this will have an effect on the OS 2020-03-26T21:17:24 [INFO]: Removing Provisioned App Package: Microsoft.Xbox.TCUI << - removing used to cause issues in the past, not so much now.. but just to be safe 2020-03-26T21:17:28 [INFO]: Removing Provisioned App Package: Microsoft.XboxApp << - Not really needed, i only keep because of the other two 2020-03-26T21:17:37 [INFO]: Removing Provisioned App Package: Microsoft.XboxIdentityProvider << - do not remove unless you insist on removing store 2020-03-26T21:17:43 [INFO]: Removing Provisioned App Package: Microsoft.YourPhone << - as with CallingShellApp and PPIProjection, not sure how this affects the use of mobile phones 2020-03-26T21:19:12 [INFO]: Removing System App: Microsoft.PPIProjection << - Phone Related - as mentioned previously 2020-03-26T21:19:18 [INFO]: Removing System App: Microsoft.Windows.AppResolverUX << - Store (App) Related - 2020-03-26T21:19:21 [INFO]: Removing System App: Microsoft.Windows.CallingShellApp << - Phone Related - as mentioned previously 2020-03-26T21:19:23 [INFO]: Removing System App: Microsoft.Windows.ContentDeliveryManager << - Has its drawbacks, but I prefer to keep 2020-03-26T21:19:25 [INFO]: Removing System App: Microsoft.Windows.Cortana << - See above *** 2020-03-26T21:19:35 [INFO]: Removing System App: Microsoft.Windows.SecHealthUI << - remove if you're a pretty competent user, otherwise best to disable via third party AV 2020-03-26T21:19:37 [INFO]: Removing System App: Microsoft.Windows.SecureAssessmentBrowser << - still researching 2020-03-26T21:19:39 [INFO]: Removing System App: Microsoft.Windows.XGpuEjectDialog << - still researching 2020-03-26T21:19:41 [INFO]: Removing System App: Microsoft.XboxGameCallableUI << - still researching 2020-03-26T21:19:43 [INFO]: Removing System App: Windows.CBSPreview << - still researching
Ok so, I tried to only remove the System apps suggested by Godhand, but I still get the same errors. It seems it doesn't want to remove any "Windows Capabilities" I have also tried to use a fully updated 1909 ISO as well but still get the same issue.
@radam9 Here are the results of my 19041.172 optimizations Configuration.json Code: "SourcePath": "D:\\19041.172_amd64_en-gb\\19041.172.200320-0621.VB_RELEASE_SVC_PROD3_CLIENTENTERPRISE_VOL_X64FRE_EN-GB\\sources\\install.wim", "WindowsApps": "Select", ................<<- If Set to "Whitelist" Operation Fails "SystemApps": true, "Capabilities": true, "Packages": true, .......................<<- Both en-GB and en-US packages are present here, remove any en-US package and Operation Fails "Features": true, "DeveloperMode": false, .................<<- If Set to "true" Operation Fails "WindowsStore": false, "MicrosoftEdge": false, "Win32Calc": false, "Dedup": false, "Registry": true, "Additional": { "Setup": false, "Wallpaper": false, "SystemLogo": false, "LockScreen": false, "RegistryTemplates": true, "Unattend": false, "Drivers": false, "NetFx3": false ........................<<- set to false as already integrated into source image }, "ISO": "Prompt" } Above are the only issues I have experienced apart from the glitch below, which is related to the "packages" mentioned issue above, all selected capabilities packages (including App.Support.QuickAssist) were removed successfully. Running Start-Optimize.ps1 I get this, ------------------------------------------------- WARNING: Optimize-Offline is designed for the "en-GB" regional culture. Not all optimizations will be available for the "en-US" regional culture. << - Not sure here is it picking this up from. Copying WIM from "D:\19041.172_amd64_en-gb\19041.172.200320-0621.VB_RELEASE_SVC_PROD3_CLIENTENTERPRISE_VOL_X64FRE_EN-GB\sources" Spoiler: Optimize-Offline Log *************************************************************************************************** Running Module : Optimize-Offline 4.0.0.7 Optimize Start : 03/27/2020 11:19:40 PM *************************************************************************************************** 2020-03-27T23:19:40 [INFO]: Supported Image Build: [19041] 2020-03-27T23:19:43 [INFO]: Mounting Windows 10 Enterprise 2020-03-27T23:20:26 [INFO]: Pre-Optimization Image Health State: [Healthy] 2020-03-27T23:21:37 [INFO]: Removing Provisioned App Package: Microsoft.549981C3F5F10 2020-03-27T23:21:42 [INFO]: Removing Provisioned App Package: Microsoft.BingWeather 2020-03-27T23:21:46 [INFO]: Removing Provisioned App Package: Microsoft.GetHelp 2020-03-27T23:21:50 [INFO]: Removing Provisioned App Package: Microsoft.Getstarted 2020-03-27T23:21:54 [INFO]: Removing Provisioned App Package: Microsoft.Microsoft3DViewer 2020-03-27T23:21:58 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftOfficeHub 2020-03-27T23:22:02 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftSolitaireCollection 2020-03-27T23:22:06 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftStickyNotes 2020-03-27T23:22:10 [INFO]: Removing Provisioned App Package: Microsoft.MixedReality.Portal 2020-03-27T23:22:14 [INFO]: Removing Provisioned App Package: Microsoft.MSPaint 2020-03-27T23:22:18 [INFO]: Removing Provisioned App Package: Microsoft.Office.OneNote 2020-03-27T23:22:23 [INFO]: Removing Provisioned App Package: Microsoft.People 2020-03-27T23:22:27 [INFO]: Removing Provisioned App Package: Microsoft.ScreenSketch 2020-03-27T23:22:31 [INFO]: Removing Provisioned App Package: Microsoft.SkypeApp 2020-03-27T23:22:35 [INFO]: Removing Provisioned App Package: Microsoft.Windows.Photos 2020-03-27T23:22:39 [INFO]: Removing Provisioned App Package: Microsoft.WindowsAlarms 2020-03-27T23:22:43 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCalculator 2020-03-27T23:22:47 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCamera 2020-03-27T23:22:51 [INFO]: Removing Provisioned App Package: microsoft.windowscommunicationsapps 2020-03-27T23:22:57 [INFO]: Removing Provisioned App Package: Microsoft.WindowsFeedbackHub 2020-03-27T23:23:01 [INFO]: Removing Provisioned App Package: Microsoft.WindowsMaps 2020-03-27T23:23:06 [INFO]: Removing Provisioned App Package: Microsoft.WindowsSoundRecorder 2020-03-27T23:23:10 [INFO]: Removing Provisioned App Package: Microsoft.XboxGameOverlay 2020-03-27T23:23:14 [INFO]: Removing Provisioned App Package: Microsoft.XboxGamingOverlay 2020-03-27T23:23:18 [INFO]: Removing Provisioned App Package: Microsoft.XboxSpeechToTextOverlay 2020-03-27T23:23:22 [INFO]: Removing Provisioned App Package: Microsoft.ZuneMusic 2020-03-27T23:23:26 [INFO]: Removing Provisioned App Package: Microsoft.ZuneVideo 2020-03-27T23:24:54 [INFO]: Removing System App: Microsoft.AAD.BrokerPlugin 2020-03-27T23:24:56 [INFO]: Removing System App: Microsoft.AsyncTextService 2020-03-27T23:24:58 [INFO]: Removing System App: Microsoft.BioEnrollment 2020-03-27T23:25:00 [INFO]: Removing System App: Microsoft.ECApp 2020-03-27T23:25:02 [INFO]: Removing System App: Microsoft.LockApp 2020-03-27T23:25:04 [INFO]: Removing System App: Microsoft.MicrosoftEdge 2020-03-27T23:25:06 [INFO]: Removing System App: Microsoft.MicrosoftEdgeDevToolsClient 2020-03-27T23:25:08 [INFO]: Removing System App: Microsoft.Windows.AddSuggestedFoldersToLibarayDialog 2020-03-27T23:25:10 [INFO]: Removing System App: Microsoft.Windows.AssignedAccessLockApp 2020-03-27T23:25:12 [INFO]: Removing System App: Microsoft.Windows.CapturePicker 2020-03-27T23:25:14 [INFO]: Removing System App: Microsoft.Windows.FileExplorer 2020-03-27T23:25:16 [INFO]: Removing System App: Microsoft.Windows.FilePicker 2020-03-27T23:25:18 [INFO]: Removing System App: Microsoft.Windows.NarratorQuickStart 2020-03-27T23:25:20 [INFO]: Removing System App: Microsoft.Windows.OOBENetworkCaptivePortal 2020-03-27T23:25:22 [INFO]: Removing System App: Microsoft.Windows.OOBENetworkConnectionFlow 2020-03-27T23:25:24 [INFO]: Removing System App: Microsoft.Windows.ParentalControls 2020-03-27T23:25:26 [INFO]: Removing System App: Microsoft.Windows.PeopleExperienceHost 2020-03-27T23:25:29 [INFO]: Removing System App: Microsoft.Windows.PinningConfirmationDialog 2020-03-27T23:25:31 [INFO]: Removing System App: MicrosoftWindows.UndockedDevKit 2020-03-27T23:25:33 [INFO]: Removing System App: NcsiUwpApp 2020-03-27T23:25:35 [INFO]: Removing System App: Windows.PrintDialog 2020-03-27T23:25:37 [INFO]: Disabling Services, Drivers and Integration Content for Removed Apps. 2020-03-27T23:25:38 [INFO]: Importing Custom App Associations. 2020-03-27T23:26:16 [INFO]: Removing Windows Capability: App.StepsRecorder 2020-03-27T23:26:23 [INFO]: Removing Windows Capability: App.Support.QuickAssist 2020-03-27T23:26:28 [INFO]: Removing Windows Capability: Hello.Face.18967 2020-03-27T23:26:34 [INFO]: Removing Windows Capability: Hello.Face.Migration.18967 2020-03-27T23:26:39 [INFO]: Removing Windows Capability: Language.Handwriting 2020-03-27T23:26:45 [INFO]: Removing Windows Capability: Language.OCR 2020-03-27T23:26:49 [INFO]: Removing Windows Capability: Language.Speech 2020-03-27T23:26:56 [INFO]: Removing Windows Capability: MathRecognizer 2020-03-27T23:27:01 [INFO]: Removing Windows Capability: Microsoft.Windows.MSPaint 2020-03-27T23:27:06 [INFO]: Removing Windows Capability: Print.Fax.Scan 2020-03-27T23:27:12 [INFO]: Removing Windows Capability: Print.Management.Console 2020-03-27T23:27:36 [INFO]: Disabling Optional Feature: MicrosoftWindowsPowerShellV2Root 2020-03-27T23:28:09 [INFO]: Disabling Optional Feature: Printing-Foundation-Features 2020-03-27T23:28:14 [INFO]: Disabling Optional Feature: Printing-Foundation-InternetPrinting-Client 2020-03-27T23:28:18 [INFO]: Disabling Optional Feature: Printing-PrintToPDFServices-Features 2020-03-27T23:28:22 [INFO]: Disabling Optional Feature: Printing-XPSServices-Features 2020-03-27T23:28:27 [INFO]: Disabling Optional Feature: SmbDirect 2020-03-27T23:28:32 [INFO]: Disabling Optional Feature: WorkFolders-Client 2020-03-27T23:29:55 [INFO]: Enabling Optional Feature: DirectPlay 2020-03-27T23:30:01 [INFO]: Enabling Optional Feature: Microsoft-Windows-Subsystem-Linux 2020-03-27T23:30:08 [INFO]: Enabling Optional Feature: LegacyComponents 2020-03-27T23:30:13 [INFO]: Applying Optimized Registry Settings. 2020-03-27T23:30:25 [INFO]: Importing Registry Template: Additional Tweaks.reg 2020-03-27T23:30:31 [INFO]: Cleaning-up the Start Menu Layout. 2020-03-27T23:30:34 [INFO]: Creating a Package Summary Log. 2020-03-27T23:30:38 [INFO]: Post-Optimization Image Health State: [Healthy] 2020-03-27T23:30:41 [INFO]: Saving and Dismounting Windows 10 Enterprise 2020-03-27T23:32:10 [INFO]: Rebuilding and Exporting Windows 10 Enterprise using Fast compression. 2020-03-27T23:33:59 [INFO]: Finalizing Optimizations. 2020-03-27T23:33:59 [INFO]: Optimize-Offline completed in [14] minutes with [0] errors. *************************************************************************************************** Optimizations Finalized : 03/27/2020 11:33:59 PM *************************************************************************************************** Looks like you have to take another look at what you've done, just as I have to (as regards en-US and other mentioned issues)
I was able to successfully finish the optimization when I set the "Capabilities: false" in the configuration.json. Even the Defender error didn't appear
I am using the GB English-International, and I am applying it to the Pro edition I have successfully created the ISO, but now the ISO is missing the following: -Support [Folder] -autorun.inf -Setup.exe
try to install it as guest os on any vm application like virtualbox or vmware & it will install fine without any error only if script log doesnt result in any error. why going so deep in depth of optimized iso. if installation went fine then you can use it to install as host os on a real machine .
Virtual Box doesn't see the ISO as a windows iso to install winodws, it gives me "FATAL: No bootable medium found! System halted."
use vmware workstation or player then see if it also result in an error or not. i have used both virtualbox & vmware on a optimised win10 ver 1909 build 18363.592 en-us iso but havent had any issue like this as mentioned by you
ok, I figured it out, now its working fine. Will check if I get any errors after installation. Thanks for your help