Why are you so rude all the time, if you are an expert at anything then don't become an over confident veteran, become a teacher, forums are made to help each other not to criticize others and not to pointing out their mistakes all the time. Enough said now, thank you for all your help
Good to know @gdeliana... from an earlier suggestion by @spanishfly, for further automating the process Code: Try { #$CompressionType = 'Solid' $CompressionType = 'Maximum' #$CompressionType = 'Fast' #$CompressionType = 'None' #$CompressionType = Get-CompressionType -ErrorAction Stop user could then simply edit the .psm1 file (prior to running script), uncommenting their preferred compression method. Spoiler: Test Log on 22000 Build (prior to update) Code: *************************************************************************************************** Running Module : Optimize-Offline 4.0.1.8 Optimize Start : 07/21/2021 01:42:58 PM Identity Name : W0LF Computer Name : DESKTOP-XXXXXXX *************************************************************************************************** 2021-07-21T13:42:58 [INFO]: Supported Image Build: [22000] 2021-07-21T13:43:01 [INFO]: Mounting Windows 11 Enterprise 2021-07-21T13:44:21 [INFO]: Pre-Optimization Image Health State: [Healthy] 2021-07-21T13:44:30 [INFO]: Removing Provisioned App Package: CortanaApp.View.App 2021-07-21T13:44:33 [INFO]: Removing Provisioned App Package: Microsoft.BingNews 2021-07-21T13:44:37 [INFO]: Removing Provisioned App Package: Microsoft.BingWeather 2021-07-21T13:44:41 [INFO]: Removing Provisioned App Package: Microsoft.GamingApp 2021-07-21T13:44:45 [INFO]: Removing Provisioned App Package: Microsoft.GetHelp 2021-07-21T13:44:49 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftOfficeHub 2021-07-21T13:44:53 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftSolitaireCollection 2021-07-21T13:44:57 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftStickyNotes 2021-07-21T13:45:00 [INFO]: Removing Provisioned App Package: Microsoft.Paint 2021-07-21T13:45:04 [INFO]: Removing Provisioned App Package: Microsoft.People 2021-07-21T13:45:08 [INFO]: Removing Provisioned App Package: Microsoft.Todos 2021-07-21T13:45:12 [INFO]: Removing Provisioned App Package: Microsoft.Windows.Photos 2021-07-21T13:45:16 [INFO]: Removing Provisioned App Package: Microsoft.WindowsAlarms 2021-07-21T13:45:20 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCalculator 2021-07-21T13:45:24 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCamera 2021-07-21T13:45:27 [INFO]: Removing Provisioned App Package: microsoft.windowscommunicationsapps 2021-07-21T13:45:32 [INFO]: Removing Provisioned App Package: Microsoft.WindowsFeedbackHub 2021-07-21T13:45:36 [INFO]: Removing Provisioned App Package: Microsoft.WindowsMaps 2021-07-21T13:45:40 [INFO]: Removing Provisioned App Package: Microsoft.WindowsSoundRecorder 2021-07-21T13:45:44 [INFO]: Removing Provisioned App Package: Microsoft.YourPhone 2021-07-21T13:45:47 [INFO]: Removing Provisioned App Package: Microsoft.ZuneMusic 2021-07-21T13:45:51 [INFO]: Removing Provisioned App Package: Microsoft.ZuneVideo 2021-07-21T13:46:01 [INFO]: Removing System App: Microsoft.AAD.BrokerPlugin 2021-07-21T13:46:03 [INFO]: Removing System App: Microsoft.BioEnrollment 2021-07-21T13:46:05 [INFO]: Removing System App: Microsoft.ECApp 2021-07-21T13:46:07 [INFO]: Removing System App: Microsoft.LockApp 2021-07-21T13:46:09 [INFO]: Removing System App: Microsoft.MicrosoftEdge 2021-07-21T13:46:11 [INFO]: Removing System App: Microsoft.MicrosoftEdgeDevToolsClient 2021-07-21T13:46:13 [INFO]: Removing System App: Microsoft.Win32WebViewHost 2021-07-21T13:46:15 [INFO]: Removing System App: Microsoft.Windows.AddSuggestedFoldersToLibarayDialog 2021-07-21T13:46:17 [INFO]: Removing System App: Microsoft.Windows.CapturePicker 2021-07-21T13:46:19 [INFO]: Removing System App: Microsoft.Windows.FileExplorer 2021-07-21T13:46:21 [INFO]: Removing System App: Microsoft.Windows.FilePicker 2021-07-21T13:46:23 [INFO]: Removing System App: Microsoft.Windows.NarratorQuickStart 2021-07-21T13:46:25 [INFO]: Removing System App: Windows.CBSPreview 2021-07-21T13:46:28 [INFO]: Disabling Services, Drivers and Integration Content for Removed Apps. 2021-07-21T13:46:36 [INFO]: Removing Windows Biometric Capability Packages. 2021-07-21T13:46:46 [INFO]: Importing Custom App Associations. 2021-07-21T13:46:52 [INFO]: Removing Windows Capability: App.StepsRecorder 2021-07-21T13:46:57 [INFO]: Removing Windows Capability: App.Support.QuickAssist 2021-07-21T13:47:03 [INFO]: Removing Windows Capability: MathRecognizer 2021-07-21T13:47:08 [INFO]: Removing Windows Capability: OneCoreUAP.OneSync 2021-07-21T13:47:14 [INFO]: Removing Windows Capability: Print.Fax.Scan 2021-07-21T13:47:26 [INFO]: Disabling Optional Feature: MicrosoftWindowsPowerShellV2Root 2021-07-21T13:47:50 [INFO]: Disabling Optional Feature: MediaPlayback 2021-07-21T13:47:57 [INFO]: Disabling Optional Feature: WorkFolders-Client 2021-07-21T13:48:24 [INFO]: Enabling Optional Feature: DirectPlay 2021-07-21T13:48:30 [INFO]: Enabling Optional Feature: Microsoft-Windows-Subsystem-Linux 2021-07-21T13:48:37 [INFO]: Enabling Optional Feature: LegacyComponents 2021-07-21T13:48:44 [INFO]: Integrating the Win32 Calculator. 2021-07-21T13:48:48 [INFO]: Applying Optimized Registry Settings. 2021-07-21T13:49:07 [INFO]: Cannot perform a clean-up of the Component Store while there are pending installations. 2021-07-21T13:49:07 [INFO]: Cleaning-up the Start Menu Layout. 2021-07-21T13:49:13 [INFO]: Post-Optimization Image Health State: [Healthy] 2021-07-21T13:49:16 [INFO]: Saving and Dismounting Windows 11 Enterprise 2021-07-21T13:51:25 [INFO]: Rebuilding and Exporting Windows 11 Enterprise using Maximum compression. 2021-07-21T13:51:53 [INFO]: Finalizing Optimizations. 2021-07-21T13:51:53 [INFO]: Optimize-Offline completed in [9] minutes with [0] errors. <<<---- almost halved the operation *************************************************************************************************** Optimizations Finalized : 07/21/2021 01:51:53 PM ***************************************************************************************************
have made the compression type as a parameter in configuration.json named CompressionType If you put select it will show the selection window, otherwise it will use the value inputted. By default have put maximum Thanks for hinting
Did you include the Windows 11 Defender fix? It might have caused me issues when I modified those two lines, then used the script on Windows 10, though I don't understand why it would cause problems. Or is it still do not remove Defender on 11?
Yes sure, tomorrow though will give you feedback. But primarily i have tested W11. But sure let's keep this as compatible as possible.
Ok, guys test and let me know, the path to modding windows is loooong We have to do this on our own, because Microsoft has become a crap company in every sense, but yeah a bit off topic i guess
Never meant to remove: 2021-07-22T21:05:25 [INFO]: Removing Provisioned App Package: Microsoft.XboxSpeechToTextOverlay and 2021-07-22T21:05:35 [INFO]: Removing Provisioned App Package: Microsoft.XboxIdentityProvider I think they are in a different order than what I'm used to seeing on Windows 10 and I overlooked them.