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,351
    2,307
    60
    .. Diagtrack-Listener issue still appears to be present
     
  2. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
  3. Fraxer

    Fraxer MDL Novice

    Aug 17, 2017
    1
    0
    0
    I believe he is referring to issue #194 from github. I'd link it but apperantly I am too much of a lurker to post links :D
     
  4. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    352
    527
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. bigflocka

    bigflocka MDL Novice

    Dec 30, 2018
    6
    0
    0
  6. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    352
    527
    10
    #607 spanishfly, Sep 20, 2020
    Last edited: Sep 22, 2020
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Pillendreher

    Pillendreher MDL Novice

    Aug 6, 2013
    9
    2
    0
    Thanks for keeping me in mind. Unfortunately, your fix is not working for me.

    First of all, there's no "UserServiceFlag" in either of ther registry keys you provided. And secondly, the Powershell code appears to be broken. Line 28 apparently misses a ", but even after adding that, it's not working because the } added in line 29 is deemed an "unexpected token" by Powershell ISE.
     
  8. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    352
    527
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. ivankehayov

    ivankehayov MDL Novice

    Sep 28, 2009
    24
    110
    0
    I used the script today on updated LTSC 1809 install.wim ( with W10UI) and select some System App for removal but finally no any app was removed. Is it normal?
    my config below
    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": "C:\\Users\\IK\\Desktop\\Optimize-Offline-4.0.1.5\\install.wim",
      "WindowsApps": "Select",
      "SystemApps": true,
      "Capabilities": false,
      "Packages": false,
      "Features": false,
      "DeveloperMode": false,
      "WindowsStore": false,
      "MicrosoftEdge": false,
      "Win32Calc": false,
      "Dedup": false,
      "DaRT": [
        "Setup",
        "Recovery"
      ],
      "Registry": false,
      "Additional": {
        "Setup": false,
        "Wallpaper": false,
        "SystemLogo": false,
        "LockScreen": false,
        "RegistryTemplates": false,
        "LayoutModification": false,
        "Unattend": false,
        "Drivers": false,
        "NetFx3": false
      },
      "ISO": "No-Prompt"
    }
    
     
  10. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    Run the below in and admin PowerShell and see if the apps you selected are actually removed.

    Code:
    Get-AppxPackage -PackageTypeFilter Main | ? { $_.SignatureKind -eq "System" } | Sort Name | Format-Table Name, InstallLocation
    
     
  11. ivankehayov

    ivankehayov MDL Novice

    Sep 28, 2009
    24
    110
    0
    Running above command I see what apps I have on live system but I was trying to remove apps offline (from install.wim).

    BTW after using Optimize-Offline script on wim file I compared the two wim - original and modified with BCompare. That's how I found out no apps were removed.
    Capture.PNG
     
  12. Appxpackage Powershell function works only on online system .
    to remove systemapps - appx packages from offline win 10 wim you must tweak reg hives so that at time of installation appxpackages were not called up to install.
     
  13. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    Yes, I meant run it after installing Windows with the ISO.

    So, it remains to be seen if the apps were actually removed or is an issue with the compare app they are using.

    Edit: And there is an issue with system apps being reinstalled when installing the largest CU. See thread for the fix.
     
  14. AeonX

    AeonX MDL Addicted

    May 24, 2013
    793
    719
    30
    #616 AeonX, Sep 30, 2020
    Last edited: Sep 30, 2020
    This is because technically the script does not remove System Apps but does remove registry entries based on a tweak released by abbodi1406 a few years ago. This tweak prevents these apps from being installed on the live OS but the files are still present.

    To completely remove System Apps you can use NTLite (only SmartScreen cannot be removed with the free version) or MSMG Toolkit which is completely free. But if you plan to install updates these system apps removed with these tools will return in Windows 10 version 1903 or higher.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. Absolutely Correct .
     
  16. ivankehayov

    ivankehayov MDL Novice

    Sep 28, 2009
    24
    110
    0
    Thanks for suggestion. It's true and I tested it - NTLite can remove completely system apps. MSMG toolkit can remove them completely as well, but not all can be selected for removal.

    Is there a script to completely remove desired system apps offline? It seems that Optimize-Offline script doesn't remove system apps (at least offline) and for me this feature of the tool is useless.
     
  17. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    352
    527
    10
    #620 spanishfly, Sep 30, 2020
    Last edited: Sep 30, 2020
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...