Toying with a way to comment parameters within .json, would this work? Code: { "_Info": [ "This is a JSON based Configuration file for Optimize-Offline.", "Ensure proper formatting is used when editing the JSON parameter values.", "Boolean parameter values use true and false. String parameter values must be enclosed in double-quotes." ], "SourcePath": "D:\\22000.100\\sources\\install.wim", "_Info": [ "Available Options "All", "Select". "Whitelist"." ], "WindowsApps": "Whitelist", "_Info": [ "Available Options "All", "Select". "Whitelist"." ], "SystemApps": "Whitelist", "_Info": [ "Available Options "All", "Select". "Whitelist"." ], "Capabilities": "Whitelist", "_Info": [ "Available Options "All", "Blacklist", "None", "Select". "Whitelist"." ], "Packages": "None" } }
Can anybody tell me why this error has come in between the process Spoiler: error *************************************************************************************************** Running Module : Optimize-Offline 4.0.1.7 Optimize Start : 08/04/2021 05:36:46 PM Identity Name : Aditya Computer Name : ADITYA-PC *************************************************************************************************** 2021-08-04T17:36:46 [INFO]: Supported Image Build: [19043] 2021-08-04T17:36:49 [INFO]: Mounting Windows 10 Pro 2021-08-04T17:41:08 [INFO]: Pre-Optimization Image Health State: [Healthy] 2021-08-04T17:41:18 [INFO]: Removing Provisioned App Package: CortanaApp.View.App 2021-08-04T17:41:26 [INFO]: Removing Provisioned App Package: Microsoft.BingWeather 2021-08-04T17:41:35 [INFO]: Removing Provisioned App Package: Microsoft.GetHelp 2021-08-04T17:41:42 [INFO]: Removing Provisioned App Package: Microsoft.Getstarted 2021-08-04T17:41:51 [INFO]: Removing Provisioned App Package: Microsoft.Microsoft3DViewer 2021-08-04T17:41:59 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftOfficeHub 2021-08-04T17:42:07 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftSolitaireCollection 2021-08-04T17:42:16 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftStickyNotes 2021-08-04T17:42:24 [INFO]: Removing Provisioned App Package: Microsoft.MixedReality.Portal 2021-08-04T17:42:32 [INFO]: Removing Provisioned App Package: Microsoft.MSPaint 2021-08-04T17:42:40 [INFO]: Removing Provisioned App Package: Microsoft.Office.OneNote 2021-08-04T17:42:50 [INFO]: Removing Provisioned App Package: Microsoft.People 2021-08-04T17:42:58 [INFO]: Removing Provisioned App Package: Microsoft.ScreenSketch 2021-08-04T17:43:06 [INFO]: Removing Provisioned App Package: Microsoft.SkypeApp 2021-08-04T17:43:15 [INFO]: Removing Provisioned App Package: Microsoft.Windows.Photos 2021-08-04T17:43:23 [INFO]: Removing Provisioned App Package: Microsoft.WindowsAlarms 2021-08-04T17:43:32 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCalculator 2021-08-04T17:43:40 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCamera 2021-08-04T17:43:48 [INFO]: Removing Provisioned App Package: microsoft.windowscommunicationsapps 2021-08-04T17:43:57 [INFO]: Removing Provisioned App Package: Microsoft.WindowsFeedbackHub 2021-08-04T17:44:05 [INFO]: Removing Provisioned App Package: Microsoft.WindowsMaps 2021-08-04T17:44:14 [INFO]: Removing Provisioned App Package: Microsoft.WindowsSoundRecorder 2021-08-04T17:44:22 [INFO]: Removing Provisioned App Package: Microsoft.YourPhone 2021-08-04T17:44:30 [INFO]: Removing Provisioned App Package: Microsoft.ZuneMusic 2021-08-04T17:44:38 [INFO]: Removing Provisioned App Package: Microsoft.ZuneVideo 2021-08-04T17:44:55 [INFO]: Removing System App: Microsoft.AAD.BrokerPlugin 2021-08-04T17:44:57 [INFO]: Removing System App: Microsoft.BioEnrollment 2021-08-04T17:44:59 [INFO]: Removing System App: Microsoft.ECApp 2021-08-04T17:45:02 [INFO]: Removing System App: Microsoft.LockApp 2021-08-04T17:45:04 [INFO]: Removing System App: Microsoft.MicrosoftEdge 2021-08-04T17:45:06 [INFO]: Removing System App: Microsoft.MicrosoftEdgeDevToolsClient 2021-08-04T17:45:08 [INFO]: Removing System App: Microsoft.Win32WebViewHost 2021-08-04T17:45:10 [INFO]: Removing System App: Microsoft.Windows.AddSuggestedFoldersToLibarayDialog 2021-08-04T17:45:12 [INFO]: Removing System App: Microsoft.Windows.FileExplorer 2021-08-04T17:45:14 [INFO]: Removing System App: Microsoft.Windows.FilePicker 2021-08-04T17:45:16 [INFO]: Removing System App: Microsoft.Windows.ParentalControls 2021-08-04T17:45:18 [INFO]: Removing System App: Microsoft.Windows.PeopleExperienceHost 2021-08-04T17:45:20 [INFO]: Removing System App: Microsoft.Windows.SecHealthUI 2021-08-04T17:45:23 [INFO]: Removing System App: NcsiUwpApp 2021-08-04T17:45:26 [INFO]: Disabling Services, Drivers and Integration Content for Removed Apps. 2021-08-04T17:45:48 [INFO]: Removing Windows Biometric Capability Packages. 2021-08-04T17:46:52 [INFO]: Disabling Optional Feature: Windows-Defender-Default-Definitions 2021-08-04T17:47:05 [INFO]: Importing Custom App Associations. 2021-08-04T17:47:22 [INFO]: Removing Windows Capability: App.StepsRecorder 2021-08-04T17:47:35 [INFO]: Removing Windows Capability: App.Support.QuickAssist 2021-08-04T17:47:50 [INFO]: Removing Windows Capability: MathRecognizer 2021-08-04T1704 [INFO]: Removing Windows Capability: Media.WindowsMediaPlayer 2021-08-04T1725 [INFO]: Removing Windows Capability: Microsoft.Windows.Notepad 2021-08-04T1739 [INFO]: Removing Windows Capability: Microsoft.Windows.WordPad 2021-08-04T1753 [INFO]: Removing Windows Capability: OneCoreUAP.OneSync 2021-08-04T17:49:10 [INFO]: Removing Windows Capability: OpenSSH.Client 2021-08-04T17:49:32 [INFO]: Removing Windows Package: Microsoft-OneCore-DirectX-Database-FOD 2021-08-04T17:49:45 [INFO]: Removing Windows Package: Microsoft-Windows-Client-LanguagePack 2021-08-04T17:49:59 [ERROR]: Failed to Remove Windows Packages. 2021-08-04T17:49:59 [INFO]: Discarding any Images and Terminating Optimizations. *************************************************************************************************** Optimizations Failed : 08/04/2021 05:49:59 PM *************************************************************************************************** @zbigniew59 the json file provided by @KedarWolf bro is working but I don't know why the process is stopped automatically I am using the whitelist provided by @KedarWolf
That's a very good question that I wish I was skilled enough to answer. Your code looks alright, but I fear that I might end-up permanently cross-eyed trying to figure the cause of an error in case there was a problem. @gdeliana seems to have a much better handle on JSON files and can maybe answer this question?
@ashish1989 - TRY ALL MY - RAR FILE I HAVE SHARED! - sorry - I don't want to scream. To \\ 1 \\ - extract YOUR iso.
When using your given json without changing anything, the process is completed successfully without any errors But when I am changing this line only "Packages": "Whitelist", This error is coming Code: Removing Windows Package: Microsoft-OneCore-DirectX-Database-FOD Removing Windows Package: Microsoft-Windows-Client-LanguagePack Failed to Remove Windows Packages. Discarding any Images and Terminating Optimizations. Active mount points detected. Performing clean-up.
Have made a complete restructuring of lists, hopefully people now should not get lost with them. Will update the readme with detailed description
Code: Post-Optimization Image Health State: [Healthy] Saving and Dismounting Windows 10 Pro Rebuilding and Exporting Windows 10 Pro using Solid compression. Optimizing the Installation Media File Structure. Creating a No-Prompt Bootable Windows Installation Media ISO. Finalizing Optimizations. Optimize-Offline completed in [80] minutes with [0] errors. Finally.............. completed I have 2 questions 1. How can I minimize the time taken by OO, currently with solid compression, it is taking 80 minutes, how can I use fast compression, to minimize my time 2. During this step Code: Removing Windows Package: Microsoft-OneCore-DirectX-Database-FOD I have to manually press yes to remove the package, how can I automate this process? I used the fast compression method, this is my log Spoiler: log *************************************************************************************************** Running Module : Optimize-Offline 4.0.1.7 Optimize Start : 08/04/2021 09:08:20 PM Identity Name : Aditya Computer Name : ADITYA-PC *************************************************************************************************** 2021-08-04T21:08:19 [INFO]: Supported Image Build: [19043] 2021-08-04T21:08:23 [INFO]: Mounting Windows 10 Pro 2021-08-04T21:11:53 [INFO]: Pre-Optimization Image Health State: [Healthy] 2021-08-04T21:12:05 [INFO]: Removing Provisioned App Package: CortanaApp.View.App 2021-08-04T21:12:14 [INFO]: Removing Provisioned App Package: Microsoft.BingWeather 2021-08-04T21:12:22 [INFO]: Removing Provisioned App Package: Microsoft.GetHelp 2021-08-04T21:12:31 [INFO]: Removing Provisioned App Package: Microsoft.Getstarted 2021-08-04T21:12:39 [INFO]: Removing Provisioned App Package: Microsoft.Microsoft3DViewer 2021-08-04T21:12:47 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftOfficeHub 2021-08-04T21:12:56 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftSolitaireCollection 2021-08-04T21:13:04 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftStickyNotes 2021-08-04T21:13:13 [INFO]: Removing Provisioned App Package: Microsoft.MixedReality.Portal 2021-08-04T21:13:20 [INFO]: Removing Provisioned App Package: Microsoft.MSPaint 2021-08-04T21:13:28 [INFO]: Removing Provisioned App Package: Microsoft.Office.OneNote 2021-08-04T21:13:37 [INFO]: Removing Provisioned App Package: Microsoft.People 2021-08-04T21:13:45 [INFO]: Removing Provisioned App Package: Microsoft.ScreenSketch 2021-08-04T21:13:54 [INFO]: Removing Provisioned App Package: Microsoft.SkypeApp 2021-08-04T21:14:02 [INFO]: Removing Provisioned App Package: Microsoft.Windows.Photos 2021-08-04T21:14:11 [INFO]: Removing Provisioned App Package: Microsoft.WindowsAlarms 2021-08-04T21:14:19 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCalculator 2021-08-04T21:14:28 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCamera 2021-08-04T21:14:36 [INFO]: Removing Provisioned App Package: microsoft.windowscommunicationsapps 2021-08-04T21:14:46 [INFO]: Removing Provisioned App Package: Microsoft.WindowsFeedbackHub 2021-08-04T21:14:55 [INFO]: Removing Provisioned App Package: Microsoft.WindowsMaps 2021-08-04T21:15:03 [INFO]: Removing Provisioned App Package: Microsoft.WindowsSoundRecorder 2021-08-04T21:15:12 [INFO]: Removing Provisioned App Package: Microsoft.YourPhone 2021-08-04T21:15:20 [INFO]: Removing Provisioned App Package: Microsoft.ZuneMusic 2021-08-04T21:15:28 [INFO]: Removing Provisioned App Package: Microsoft.ZuneVideo 2021-08-04T21:15:45 [INFO]: Removing System App: Microsoft.AAD.BrokerPlugin 2021-08-04T21:15:47 [INFO]: Removing System App: Microsoft.BioEnrollment 2021-08-04T21:15:49 [INFO]: Removing System App: Microsoft.ECApp 2021-08-04T21:15:51 [INFO]: Removing System App: Microsoft.LockApp 2021-08-04T21:15:53 [INFO]: Removing System App: Microsoft.MicrosoftEdge 2021-08-04T21:15:55 [INFO]: Removing System App: Microsoft.MicrosoftEdgeDevToolsClient 2021-08-04T21:15:58 [INFO]: Removing System App: Microsoft.Win32WebViewHost 2021-08-04T21:16:00 [INFO]: Removing System App: Microsoft.Windows.AddSuggestedFoldersToLibarayDialog 2021-08-04T21:16:02 [INFO]: Removing System App: Microsoft.Windows.FileExplorer 2021-08-04T21:16:04 [INFO]: Removing System App: Microsoft.Windows.FilePicker 2021-08-04T21:16:06 [INFO]: Removing System App: Microsoft.Windows.ParentalControls 2021-08-04T21:16:08 [INFO]: Removing System App: Microsoft.Windows.PeopleExperienceHost 2021-08-04T21:16:10 [INFO]: Removing System App: Microsoft.Windows.SecHealthUI 2021-08-04T21:16:12 [INFO]: Removing System App: NcsiUwpApp 2021-08-04T21:16:16 [INFO]: Disabling Services, Drivers and Integration Content for Removed Apps. 2021-08-04T21:16:37 [INFO]: Removing Windows Biometric Capability Packages. 2021-08-04T21:17:40 [INFO]: Disabling Optional Feature: Windows-Defender-Default-Definitions 2021-08-04T21:17:53 [INFO]: Importing Custom App Associations. 2021-08-04T21:18:11 [INFO]: Removing Windows Capability: App.StepsRecorder 2021-08-04T21:18:25 [INFO]: Removing Windows Capability: App.Support.QuickAssist 2021-08-04T21:18:42 [INFO]: Removing Windows Capability: MathRecognizer 2021-08-04T21:18:56 [INFO]: Removing Windows Capability: Media.WindowsMediaPlayer 2021-08-04T21:19:19 [INFO]: Removing Windows Capability: Microsoft.Windows.Notepad 2021-08-04T21:19:32 [INFO]: Removing Windows Capability: Microsoft.Windows.WordPad 2021-08-04T21:19:47 [INFO]: Removing Windows Capability: OneCoreUAP.OneSync 2021-08-04T21:20:06 [INFO]: Removing Windows Capability: OpenSSH.Client 2021-08-04T21:20:35 [INFO]: Removing Windows Package: Microsoft-OneCore-DirectX-Database-FOD 2021-08-04T21:21:06 [INFO]: Disabling Optional Feature: MicrosoftWindowsPowerShellV2Root 2021-08-04T21:21:31 [INFO]: Disabling Optional Feature: MSRDC-Infrastructure 2021-08-04T21:21:44 [INFO]: Disabling Optional Feature: Printing-XPSServices-Features 2021-08-04T21:21:57 [INFO]: Disabling Optional Feature: WorkFolders-Client 2021-08-04T21:22:23 [INFO]: Enabling Optional Feature: Microsoft-Windows-Subsystem-Linux 2021-08-04T21:22:54 [INFO]: Integrating the Win32 Calculator. 2021-08-04T21:23:01 [INFO]: Applying Optimized Registry Settings. 2021-08-04T21:23:30 [INFO]: Applying Setup Content. 2021-08-04T21:23:34 [INFO]: Importing Registry Template: Additional Tweaks.reg 2021-08-04T21:23:50 [INFO]: Cannot perform a clean-up of the Component Store while there are pending installations. 2021-08-04T21:23:50 [INFO]: Cleaning-up the Start Menu Layout. 2021-08-04T21:23:54 [INFO]: Disabling automatic driver update 2021-08-04T21:23:56 [INFO]: Enabling dormant OneDrive fix 2021-08-04T21:24:07 [INFO]: Post-Optimization Image Health State: [Healthy] 2021-08-04T21:24:10 [INFO]: Saving and Dismounting Windows 10 Pro 2021-08-04T21:29:08 [INFO]: Rebuilding and Exporting Windows 10 Pro using Fast compression. 2021-08-04T21:39:36 [INFO]: Optimizing the Installation Media File Structure. 2021-08-04T21:39:37 [INFO]: Creating a No-Prompt Bootable Windows Installation Media ISO. 2021-08-04T21:42:59 [INFO]: Finalizing Optimizations. 2021-08-04T21:42:59 [INFO]: Optimize-Offline completed in [35] minutes with [0] errors. *************************************************************************************************** Optimizations Finalized : 08/04/2021 09:42:59 PM ***************************************************************************************************
I think those comments in the json file would just make things more difficult to be seen. Now i have simplified the lists, will post a release soon. All lists will have these options available by default: All, None, Select, Whitelist, Blacklist. Features will have: All, None, Select, List
It is known that some packages cannot be removed from windows, we can't do nothing about that. The removal process is based on the DISM executable which is after all Microsoft code.
Which compression type takes minimum time, just asking Can you guide me for this step, how can I automate the process, I have to manually press yes
I don't understand where are you pressing yes? When the script removes: Removing Windows Package: Microsoft-OneCore-DirectX-Database-FOD ? Coz for me this never happened
For me it is happening, if you want I can share you the screenshot And yes only for the above step only popup is coming to press yes or cancel, have to do it manually then
Ok will try to recreate, maybe if you can send a screenie would be good for me to grasp the problem better.