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

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30
    Remind me, what is that issue exactly?
     
  2. 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
     
  3. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    365
    540
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. bigflocka

    bigflocka MDL Novice

    Dec 30, 2018
    6
    0
    0
  5. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    365
    540
    10
    #606 spanishfly, Sep 20, 2020
    Last edited: Sep 22, 2020
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. 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.
     
  7. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    365
    540
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. 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"
    }
    
     
  9. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    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
    
     
  10. 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
     
  11. 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.
     
  12. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    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.
     
  13. AeonX

    AeonX MDL Addicted

    May 24, 2013
    796
    725
    30
    #615 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...
  14. Absolutely Correct .
     
  15. 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.
     
  16. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    365
    540
    10
    #619 spanishfly, Sep 30, 2020
    Last edited: Sep 30, 2020
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    365
    540
    10
    Here is something I recently used to 'treat' my PC OCD.
    On 20H1 (and maybe even earlier) ... open the "Accounts" Immersive Control Panel "explorer ms-settings:yourinfo"
    If you're using a local account, try to change your user account image. You might find that you're blocked.
    The fix is to enable \Microsoft\Windows\Shell\ CreateObjectTask
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...