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. zalim581

    zalim581 MDL Novice

    Aug 12, 2019
    30
    6
    0
    @strotee @KedarWolf thank you both. its ok now.
     
  2. haz367

    haz367 MDL Addicted

    Jan 11, 2020
    805
    1,465
    30
    edit
    nvm....
     
  3. MARKZ1ON

    MARKZ1ON MDL Junior Member

    May 22, 2020
    59
    3
    0
    #483 MARKZ1ON, Jul 9, 2020
    Last edited: Jul 9, 2020
    Unfortunately, this doesn't work on a install.wim which was captured by Sysprep. o_O

    "Failed to retrieve the necessary image metadata from the install.wim"
     
  4. gabeu

    gabeu MDL Novice

    Aug 1, 2017
    3
    0
    0
    Tool tested on a windows 10 Build 2004 French iso.

    had to run it in a US-win10 virtual machine, other than that it works fine.

    Thanks :)
     
  5. haz367

    haz367 MDL Addicted

    Jan 11, 2020
    805
    1,465
    30
    It's a very nice script, thx :)

    Tested on a 2004 Windows 10 ISO. The only weird thing is, when i apply this "install.wim" it trows an error "Config initialize failed" and reboots...

    When i use the original install.wim, they apply/install without a problem. Using the same settings as per the first post. The build ISO is also not the same structure as the original, guess it's supposed to be that way? Could anyone confirm that APPLY should work? Thx.

    Code:
    ***************************************************************************************************
    Running Module : Optimize-Offline 4.0.1.2
    Optimize Start : 07/09/2020 02:03:38 AM
    Identity Name  : Administrator
    Computer Name  : NINJUTSU-OS
    ***************************************************************************************************
    
    2020-07-09T02:03:38 [INFO]: Supported Image Build: [19041]
    2020-07-09T02:03:41 [INFO]: Mounting Windows 10 Pro N
    2020-07-09T02:07:33 [INFO]: Pre-Optimization Image Health State: [Healthy]
    2020-07-09T02:10:21 [INFO]: Removing Provisioned App Package: Microsoft.VCLibs.140.00
    2020-07-09T02:10:27 [INFO]: Removing Provisioned App Package: CortanaApp.View.App
    2020-07-09T02:10:33 [INFO]: Removing Provisioned App Package: Microsoft.BingWeather
    2020-07-09T02:10:38 [INFO]: Removing Provisioned App Package: Microsoft.DesktopAppInstaller
    2020-07-09T02:10:44 [INFO]: Removing Provisioned App Package: Microsoft.GetHelp
    2020-07-09T02:10:50 [INFO]: Removing Provisioned App Package: Microsoft.Getstarted
    2020-07-09T02:10:56 [INFO]: Removing Provisioned App Package: Microsoft.Microsoft3DViewer
    2020-07-09T02:11:02 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftOfficeHub
    2020-07-09T02:11:08 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftSolitaireCollection
    2020-07-09T02:11:14 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftStickyNotes
    2020-07-09T02:11:20 [INFO]: Removing Provisioned App Package: Microsoft.MSPaint
    2020-07-09T02:11:26 [INFO]: Removing Provisioned App Package: Microsoft.Office.OneNote
    2020-07-09T02:11:32 [INFO]: Removing Provisioned App Package: Microsoft.People
    2020-07-09T02:11:38 [INFO]: Removing Provisioned App Package: Microsoft.ScreenSketch
    2020-07-09T02:11:44 [INFO]: Removing Provisioned App Package: Microsoft.StorePurchaseApp
    2020-07-09T02:11:50 [INFO]: Removing Provisioned App Package: Microsoft.Wallet
    2020-07-09T02:11:56 [INFO]: Removing Provisioned App Package: Microsoft.Windows.Photos
    2020-07-09T02:12:04 [INFO]: Removing Provisioned App Package: Microsoft.WindowsAlarms
    2020-07-09T02:12:11 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCalculator
    2020-07-09T02:12:19 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCamera
    2020-07-09T02:12:25 [INFO]: Removing Provisioned App Package: microsoft.windowscommunicationsapps
    2020-07-09T02:12:32 [INFO]: Removing Provisioned App Package: Microsoft.WindowsFeedbackHub
    2020-07-09T02:12:38 [INFO]: Removing Provisioned App Package: Microsoft.WindowsMaps
    2020-07-09T02:12:44 [INFO]: Removing Provisioned App Package: Microsoft.WindowsStore
    2020-07-09T02:12:50 [INFO]: Removing Provisioned App Package: Microsoft.XboxApp
    2020-07-09T02:12:57 [INFO]: Removing Provisioned App Package: Microsoft.XboxGameOverlay
    2020-07-09T02:13:03 [INFO]: Removing Provisioned App Package: Microsoft.XboxIdentityProvider
    2020-07-09T02:13:08 [INFO]: Removing Provisioned App Package: Microsoft.XboxSpeechToTextOverlay
    2020-07-09T02:13:14 [INFO]: Removing Provisioned App Package: Microsoft.YourPhone
    2020-07-09T02:15:29 [INFO]: Removing System App: Microsoft.AAD.BrokerPlugin
    2020-07-09T02:15:32 [INFO]: Removing System App: Microsoft.BioEnrollment
    2020-07-09T02:15:34 [INFO]: Removing System App: Microsoft.ECApp
    2020-07-09T02:15:36 [INFO]: Removing System App: Microsoft.LockApp
    2020-07-09T02:15:38 [INFO]: Removing System App: Microsoft.MicrosoftEdge
    2020-07-09T02:15:40 [INFO]: Removing System App: Microsoft.MicrosoftEdgeDevToolsClient
    2020-07-09T02:15:42 [INFO]: Removing System App: Microsoft.Win32WebViewHost
    2020-07-09T02:15:44 [INFO]: Removing System App: Microsoft.Windows.AddSuggestedFoldersToLibarayDialog
    2020-07-09T02:15:46 [INFO]: Removing System App: Microsoft.Windows.CallingShellApp
    2020-07-09T02:15:48 [INFO]: Removing System App: Microsoft.Windows.ContentDeliveryManager
    2020-07-09T02:15:50 [INFO]: Removing System App: Microsoft.Windows.FileExplorer
    2020-07-09T02:15:52 [INFO]: Removing System App: Microsoft.Windows.FilePicker
    2020-07-09T02:15:54 [INFO]: Removing System App: Microsoft.Windows.ParentalControls
    2020-07-09T02:15:56 [INFO]: Removing System App: Microsoft.Windows.PeopleExperienceHost
    2020-07-09T02:15:58 [INFO]: Removing System App: Microsoft.Windows.SecHealthUI
    2020-07-09T02:16:00 [INFO]: Removing System App: Microsoft.Windows.SecureAssessmentBrowser
    2020-07-09T02:16:02 [INFO]: Removing System App: Microsoft.Windows.XGpuEjectDialog
    2020-07-09T02:16:04 [INFO]: Removing System App: Microsoft.XboxGameCallableUI
    2020-07-09T02:16:07 [INFO]: Removing System App: MicrosoftWindows.Client.CBS
    2020-07-09T02:16:09 [INFO]: Removing System App: Windows.CBSPreview
    2020-07-09T02:16:12 [INFO]: Disabling Services, Drivers and Integration Content for Removed Apps.
    2020-07-09T02:16:26 [INFO]: Disabling Optional Feature: Windows-Defender-Default-Definitions
    2020-07-09T02:17:01 [INFO]: Importing Custom App Associations.
    2020-07-09T02:18:18 [INFO]: Removing Windows Capability: App.Support.QuickAssist
    2020-07-09T02:18:46 [INFO]: Removing Windows Capability: Hello.Face.18967
    2020-07-09T02:19:08 [INFO]: Removing Windows Capability: Hello.Face.Migration.18967
    2020-07-09T02:19:32 [INFO]: Removing Windows Capability: MathRecognizer
    2020-07-09T02:19:57 [INFO]: Removing Windows Capability: OneCoreUAP.OneSync
    2020-07-09T02:20:21 [INFO]: Removing Windows Capability: OpenSSH.Client
    2020-07-09T02:21:24 [INFO]: Removing Windows Package: Microsoft-Windows-LanguageFeatures-Speech-en-us
    2020-07-09T02:21:49 [INFO]: Removing Windows Package: Microsoft-Windows-LanguageFeatures-OCR-en-us
    2020-07-09T02:22:11 [INFO]: Removing Windows Package: Microsoft-Windows-LanguageFeatures-Handwriting-en-us
    2020-07-09T02:22:38 [INFO]: Disabling Optional Feature: MicrosoftWindowsPowerShellV2Root
    2020-07-09T02:24:53 [INFO]: Disabling Optional Feature: Printing-XPSServices-Features
    2020-07-09T02:25:01 [INFO]: Disabling Optional Feature: WorkFolders-Client
    2020-07-09T02:25:10 [INFO]: Disabling Optional Feature: SmbDirect
    2020-07-09T02:25:43 [INFO]: Enabling Optional Feature: DirectPlay
    2020-07-09T02:25:54 [INFO]: Enabling Optional Feature: LegacyComponents
    2020-07-09T02:26:13 [INFO]: Integrating the Win32 Calculator.
    2020-07-09T02:26:20 [INFO]: Applying Optimized Registry Settings.
    2020-07-09T02:26:48 [INFO]: Applying Setup Content.
    2020-07-09T02:26:52 [INFO]: Importing Registry Template: Additional Tweaks.reg
    2020-07-09T02:26:59 [INFO]: Applying Answer File.
    2020-07-09T02:27:13 [INFO]: Enabling Optional Feature: NetFx3
    2020-07-09T02:29:20 [INFO]: Cleaning-up the Start Menu Layout.
    2020-07-09T02:29:24 [INFO]: Creating a Package Summary Log.
    2020-07-09T02:29:40 [INFO]: Post-Optimization Image Health State: [Healthy]
    2020-07-09T02:29:43 [INFO]: Saving and Dismounting Windows 10 Pro N
    2020-07-09T02:37:56 [INFO]: Rebuilding and Exporting Windows 10 Pro N using Fast compression.
    2020-07-09T02:49:21 [INFO]: Optimizing the Installation Media File Structure.
    2020-07-09T02:49:23 [INFO]: Creating a No-Prompt Bootable Windows Installation Media ISO.
    2020-07-09T02:53:32 [INFO]: Finalizing Optimizations.
    2020-07-09T02:53:32 [INFO]: Optimize-Offline completed in [50] minutes with [0] errors.
    
    ***************************************************************************************************
    Optimizations Finalized : 07/09/2020 02:53:32 AM
    ***************************************************************************************************
    
     
  6. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30
    I need to update OP but the issue may be removing the CortanaApp.View.App. Try leaving it in.

    I share my logs what i remove and don't remove when I get home from work.

    Edit: I'm a bit confused. You say it's working on the original ISO but not on which install.wim?
     
  7. haz367

    haz367 MDL Addicted

    Jan 11, 2020
    805
    1,465
    30
    @KedarWolf

    When i apply Index 1 (Home) or Index 7 (Pro) from the Original ISO, both install just fine. Trying the same with the tweaked one (Pro N) It gives the "config initialize failed" on booting it. Testing it again without removing CortanaApp.View.App. Reporting back later on :)
     
  8. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30
    You might want to do a Bug Report with the developer on Github. But you'll need to provide much more detail, you're being very vague, and I don't really understand what you mean. How is your Pro N install.wim 'tweaked', do you mean tweaked using Optimise Offline?
     
  9. haz367

    haz367 MDL Addicted

    Jan 11, 2020
    805
    1,465
    30
    @KedarWolf

    Human error as usual...

    Removed the extra regtweaks and the unattended.xml. Leaved all as per first post and installed just fine...
     
  10. rocoloco95

    rocoloco95 MDL Novice

    Mar 14, 2020
    2
    0
    0
    Excuse my noobish question, I'm new to W10 and I'm looking for a debloater/optimizer, but what does "Offline" mean? Once I apply this method, Windows won't get automatic updates?
     
  11. strotee

    strotee MDL Member

    Jan 30, 2011
    229
    205
    10
    Offline simply refers to pre-installation while online refers to a live installation. If one is sitting in Windows, then that install is the live install while an ISO they're trying to edit for future installs is an offline copy.
     
  12. rocoloco95

    rocoloco95 MDL Novice

    Mar 14, 2020
    2
    0
    0
    Okay so I have to apply this to the ISO before installing the operative system?
     
  13. strotee

    strotee MDL Member

    Jan 30, 2011
    229
    205
    10
    Optimize-Offline, yes, that'll need to get done offline, I tend to test the ISO in a VM to confirm it behaves as to how I like. On a live install? I've heard DISM can do everything O-O is doing but I don't have any experience doing that.
     
  14. 8139david

    8139david MDL Novice

    Mar 4, 2016
    41
    17
    0
    Can this be used with fr_FR Windows 10 iso?
    If not, what should be changed in the scripts?
     
  15. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30
    No, it only works with en-US and with a few tweaks, us-GB. :(
     
  16. 8139david

    8139david MDL Novice

    Mar 4, 2016
    41
    17
    0
    Thanks. Understandably, the author of the script only maintains it for en-US.
    Still, I have some questions:
    1) But do you know what would be involved in adapting the script for a different language (such as fr-FR)?
    2) Viewed a bit differently, are there subscripts that one can reuse as they are, since they don't depend on any particular language?
    For instance, I assume that one can use DISM to remove Windows Apps from the WIM image contained in the iso?
    3) Alternatively, could much of the same be done with NTLite?
     
  17. TheCollDude489

    TheCollDude489 MDL Member

    Apr 16, 2018
    147
    32
    10
    I recently used the script to create a slimmed down Windows 10 20H1 Enterprise installation ISO, however the resulting ISO wouldn't boot in a VM unless I configured it to use UEFI instead of BIOS. Other than that everything worked correctly.
    Is it normal that the created ISO only seemed to work with UEFI?
     
  18. zbigniew59

    zbigniew59 MDL Senior Member

    May 14, 2016
    373
    171
    10
    I use this script on iso pl-PL and it seems I don't have any bugs.
    Could there be any bugs I don't know about? . Logs show without errors.