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
    870
    30
    It's a problem with your SystemAppsWhitelist.json.

    Here is mine and all my lists in an attached .zip file.

    Code:
    {
        "DisplayName":  [
                            "Microsoft.AccountsControl",
                            "Microsoft.AsyncTextService",
                            "Microsoft.CredDialogHost",
                            "Microsoft.MicrosoftEdge",
                            "Microsoft.MicrosoftEdgeDevToolsClient",
                            "Microsoft.Win32WebViewHost",
                            "Microsoft.Windows.AppRep.ChxApp",
                            "Microsoft.Windows.AppResolverUX",
                            "Microsoft.Windows.AssignedAccessLockApp",
                            "Microsoft.Windows.CallingShellApp",
                            "Microsoft.Windows.CapturePicker",
                            "Microsoft.Windows.CloudExperienceHost",
                            "Microsoft.Windows.ContentDeliveryManager",
                            "Microsoft.Windows.NarratorQuickStart",
                            "Microsoft.Windows.OOBENetworkCaptivePortal",
                            "Microsoft.Windows.OOBENetworkConnectionFlow",
                            "Microsoft.Windows.Search",
                            "Microsoft.Windows.SecureAssessmentBrowser",
                            "Microsoft.Windows.ShellExperienceHost",
                            "Microsoft.Windows.StartMenuExperienceHost",
                            "Microsoft.Windows.XGpuEjectDialog",
                            "Microsoft.XboxGameCallableUI",
                            "MicrosoftWindows.Client.CBS",
                            "MicrosoftWindows.UndockedDevKit",
                            "windows.immersivecontrolpanel",
                            "Windows.PrintDialog"
                        ]
    }
    
     

    Attached Files:

  2. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    352
    527
    10
    #1723 spanishfly, Jan 18, 2022
    Last edited: Jan 18, 2022
    [Edit 1] After I posted, I saw that @KedarWolf had already replied. So maybe better to follow his advice.
    He has a good track record for troubleshooting issues like yours ...
    ---------------------
    [Edit 2] I did think of one other possibility . . .
    You've got '"RegistryTemplates": true," I've had your exact error when I added some of my own personal registry preferences to "Additional Tweaks.reg". FYI "Additional Tweaks.reg" is for very simple "high-level" registry changes.
    -----------------------------------
    I assume the actual source path is:
    "SourcePath": "D:\\Win10LTSC\\Windows 10 IoT Enterprise LTSC 2021.iso",
    ---------------------------------
    I can make a few suggestions, with no guarantees ...
    My undersatanding is that these settings only apply to W11 or normal W10 so setting them true doesn't benefit W10 LTSC
    An easy thing to try . . .
    Code:
        "Disable3rdPartyApps": false,
        "W11ClassicInterface": false,
        "ClassicSearchExplorer": false,
        "RemoveTaskbarPinnedIcons": false
    
    ----------------------------------------
    This is more effort, with again no chance of guaranteed successs
    Use 7zip or the likes to extract install.wim from your ISO
    then try this config...
    Code:
    {
      "SourcePath": "D:\\Win10LTSC\\install.wim",
      "WindowsApps": "None",
      "SystemApps": "Whitelist",
      "Capabilities": "None",
      "Packages": "None",
      "FeaturesToEnable": "None",
      "FeaturesToDisable": "List",
      "Services": "None",
      "DeveloperMode": false,
      "WindowsStore": false,
      "MicrosoftEdge": false,
      "Win32Calc": false,
      "Dedup": false,
      "DaRT": [],
      "Registry": true,
      "Additional": {
        "Setup": true,
        "Wallpaper": false,
        "SystemLogo": false,
        "LockScreen": false,
        "RegistryTemplates": true,
        "LayoutModification": false,
        "Unattend": false,
        "Drivers": false,
        "NetFx3": false
      },
      "ComponentCleanup": true,
      "CompressionType": "Maximum",
      "SelectiveRegistry": {
        "DisableWindowsUpgrade": false,
        "DisableWindowsUpdateMicrosoft": false,
        "DisableDriverUpdate": false,
        "DormantOneDrive": true,
        "Disable3rdPartyApps": false,
        "W11ClassicInterface": false,
        "ClassicSearchExplorer": false,
        "RemoveTaskbarPinnedIcons": false
      }
    }
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ghostwalkergamma

    ghostwalkergamma MDL Novice

    Aug 21, 2017
    18
    6
    0
    I
    Yeah, it seems like the registry problem. I have some programs that save its settings in registry so I export these files to the registry templates and created an answer file to silent install the apps.
     
  4. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    352
    527
    10
    #1725 spanishfly, Jan 19, 2022
    Last edited: Jan 20, 2022

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    363
    410
    10
    I am beginning to hate Microsoft more and more, we need to find a solution for W11 DISM refusing to remove provisioned apps such as SecHealthUI.
     
  6. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    352
    527
    10
    #1727 spanishfly, Jan 21, 2022
    Last edited: Jan 22, 2022
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. spanishfly

    spanishfly MDL Senior Member

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

    strotee MDL Member

    Jan 30, 2011
    228
    204
    10
    I propose lines 329-331 are removed (or make it as a defaulted False variable in Configuation.json) in /Src/Public/Set-RegistryProperties.ps1. Does anyone use the Reboot to Recovery and does it need to be a permanent context menu item? I always remove these lines when a new version is downloaded. Thanks
     
  9. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    352
    527
    10
    #1731 spanishfly, Jan 25, 2022
    Last edited: Jan 26, 2022
    A couple of days ago, @liberopensat.. replied to a post I had on the Edge Thread and offered "R*move*Apps".
    If you look at my reponse at #2910 the link to "R*move*Apps" is in his now deleted original post.
    (I would post the link directly, but liberopensat...'s post has completely disappeared! Maybe that script or DLL is against the MDL rules?)
    I scanned the "R*move*Apps" archive for viruses and didn't find anything. Perhaps caution is still advised?

    The "R*move*Apps" package includes a PowerShell script that uses a "Syst8m.DAt*.SQLite.dll"

    My reply to liberopensat..'s suggestion was based on the context of Windows 10.

    However, in the context of Windows 11, maybe this script is the key to the kingdom!?!

    I don't know if the "Syst8m.DAt*.SQLite.dll" is modified to do what you want.
    I'm wondering if this script can be tailored to do what you're trying to do?

    I could be completely wrong, maybe it only does the same as BAU's "FORCE APPX UNINSTALL.bat" but it's an interesting looking script anyway.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. zbigniew59

    zbigniew59 MDL Senior Member

    May 14, 2016
    374
    171
    10
    #1735 zbigniew59, Jan 26, 2022
    Last edited: Jan 26, 2022
    You have to write on which host these scripts are used.
    It is known that there are problems with win11.
    And in recent entries it is difficult to understand - whether these problems are on the win10 or win11 host.
    I - do it for win 10 - and hardly ever have problems - with scrypt - sometimes my mistake.
    I understand - tests for win 11 host - are for the future - and it's worth doing - but you have to sort it out somehow - the last many entries are - MISCLEAR - for ordinary users.
    I have been using this script for a long time - and I am observing it constantly - but I'm not at the level of those who write the latest posts - and I don't understand any of it.
    Can these - technical discussions incomprehensible to those who only use this script - be somehow separated - transferred?
    I have been entering this topic for a long time - because it interests me - and I see new posts - of which I do not understand NOTHING.
    This topic is no longer user-friendly - it turns into a TECHNICAL discussion.

    Sorry - but that's what it looks like.
    Have you noticed that no one - except you - writes on this topic?
    Maybe they don't understand you?

    I love this scrypt - :hug2: but also don't understand anything from recent posts anymore.

    Sorry if it's a bit incomprehensible - I don't know English - I use google translator.
     
  11. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    I understand it mostly, it's about using Windows 11 as a host to run Optimize Offline, some packages like the Defender app cannot be removed, and possible workarounds to fix that.

    But I don't comment much on it as I haven't found any solutions.

    I do enjoy the discussion around it though, but if English is not your first language and you use a translater, it can be difficult. :(

    Edit: My workaround if I'm using Windows 11, is to run Windows 10 in VMWare, and run the script there, but being a VM, it's slower. You can allocate more processor cores and memory to the VM however, and that helps some :)
     
  12. zbigniew59

    zbigniew59 MDL Senior Member

    May 14, 2016
    374
    171
    10
    I am also doing this for now :)
     
  13. spanishfly

    spanishfly MDL Senior Member

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

    ghostwalkergamma MDL Novice

    Aug 21, 2017
    18
    6
    0
    I'm having this problem with the set-additional file particularly. If I apply this file after installing windows, the license activation process would failed and my windows cannot be activated (Without using set-additional.cmd the whole script works fine tho)

    Code:
    License Activation (slui.exe) failed with the following error code:
    hr=0x80072EE7
    Command-line arguments:
    RuleId=31e71c49-8da7-4a2f-ad92-45d98a1c79ba;Action=AutoActivate;AppId=55c92734-d682-4d71-983e-d6ec3f16059f;SkuId=ed655016-a9e8-4434-95d9-4345352c2552;NotificationInterval=1440;Trigger=NetworkAvailable
    Also, attempts to install any uwp apps afterward would generate this error in event log

    Code:
    0x80072EE7: Cannot create the process for package CanonicalGroupLimited.UbuntuonWindows_2004.2020.424.0_x64__79rhkp1fndgsc because an error was encountered while preparing for activation. [LaunchProcess]
    I tried to break down the ps1 file and run each code line by line but there's no luck, appreciate any help here :(
     
  15. Assasin13

    Assasin13 MDL Novice

    Aug 14, 2016
    23
    2
    0
    For me also what needs to be added in the documentation are 2 things:
    - Which configuration options are for which operating system
    - Which scripts are executed while the image is created and which should be executed post-installation.

    By reading posts here you can make it out but sometimes especially when you are new it is difficult to figure it.