Optimize-Offline Guide - Windows Debloating Tool, Windows 1803, 1903, 19H2, 1909, 20H1 and LTSC 2019

Discussion in 'Windows 10' started by KedarWolf, Jul 30, 2019.

  1. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,347
    2,302
    60
    There is a contributor @GodHand , producing a script (in his own time - without payment, or requesting payment for his efforts), with clearly defined support options

    ... and you have the nerve to come in here and suggest (putting it mildly) what he should, or shouldn't do with HIS script (designed for his own purposes)

    I have pointed this out to you before, the script is a base (a starting Point), if you want it to do more than is (officially) intended...
    then you have to do the work (YOURSELF), and stop expecting members here to cook your food, put it on a plate and deliver it to your table (That is [or was] your Mum's job)

    ... as mentioned previously, solutions are readily availabe within the thread... provided by Myself, @KedarWolf, @spanishfly, @gdeliana and @mdl052020 to mention a few

    start reading/searching... and stop being a lazy ^^^^, and put some effort in to figuring out (at least some of the) solutions for yourself
     
  2. ashish1989

    ashish1989 MDL Senior Member

    Sep 20, 2013
    357
    30
    10
    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
     
  3. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,347
    2,302
    60
    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.

    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
    ***************************************************************************************************
    
     
  4. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    363
    410
    10
    #926 gdeliana, Jul 21, 2021
    Last edited: Jul 21, 2021
    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 :)
     
  5. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    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?
     
  6. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    363
    410
    10
    Yes sure, tomorrow though will give you feedback. But primarily i have tested W11. But sure let's keep this as compatible as possible.
     
  7. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    I can test it on VMWare tonight. :)
     
  8. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    363
    410
    10
    Ok, guys test and let me know, the path to modding windows is loooong :D

    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 :p
     
  9. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    Tested it with Windows 10 19044, works great!!
     
  10. strotee

    strotee MDL Member

    Jan 30, 2011
    228
    204
    10
  11. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,347
    2,302
    60
    ... was under the impression (thought) that this was a Store dependency