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

    adric MDL Addicted

    Jul 30, 2009
    936
    701
    30
    I don't see anything emotional about my question. Do you read every thread here at MDL or just what may interest you?
    When you said "Never mind, I see you can make a 19041.1 ISO" , that got my interest. I made an assumption as to where
    I might find more information and asked for a confirmation - no more, no less. Thanks for the pointer...
     
  2. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    735
    636
    30
    I was quoting the person that posted that earlier with a copy and paste. It had nothing to do with you.

    https://forums.mydigitallife.net/th...20h1-and-ltsc-2019.80038/page-75#post-1707437
     
  3. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    283
    420
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. gdeliana

    gdeliana MDL Member

    Oct 2, 2010
    179
    226
    10
    Can you tell me at least the steps you took with W10 UI? Which base image did you use + updates?

    From what i can see this condition is failing in your case:

    Code:
    If ($WindowsStore.IsPresent -and (Test-Path -Path $OptimizeOffline.WindowsStore -Filter Microsoft.WindowsStore*.*xbundle) -and !(Get-AppxProvisionedPackage -Path $InstallMount -ScratchDirectory $ScratchFolder -LogPath $DISMLog -LogLevel 1 | Where-Object -Property DisplayName -EQ Microsoft.WindowsStore))
    and the most suspected here is this one:
    Code:
    !(Get-AppxProvisionedPackage -Path $InstallMount -ScratchDirectory $ScratchFolder -LogPath $DISMLog -LogLevel 1 | Where-Object -Property DisplayName -EQ Microsoft.WindowsStore)
    probably this one is returning false and the IF does not continue inside. This means that the iso you provided already has the store provisioned somehow.

    But i really need to test with the iso you made so that i can be sure what is happening.

    EDIT: Why don't you try updating the official LTSC offline and then integrating the store, it would make the same result??
     
  5. quakze

    quakze MDL Junior Member

    Dec 15, 2011
    73
    16
    0
    Unsupported windows: server
    and the script stopped, please help !
    I am optimizing en-us_windows_server_version_2022_updated_nov_2021_x64_dvd_e9a58f14

    Thanks
     
  6. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    735
    636
    30
    I'll have a look at it but usually, you can do things like changing the entries for 'LSTC' in the .psm1 .ps1 etc. files to 'server' etc. Lots of stuff might need to be changed, not sure I'll get to it tonight.

    But if you open the .ps1, psm1 and all the other files and all the files in Notepad++ you can Find/replace LTSC to server in all open documents.

    Really good chance that won't work without additional tweaks though. :(

    Wait, if I recall right it was only one entry that needed to be changed. I'll get to it in a few hours.

    I'm at work right now.
     
  7. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    283
    420
    10
    Aren't the native PRO UWP apps the same as what's in official normal Enterprise or what comes in a store re-injection package?
    Empirical Pipelines:
    Reconstruction Pipeline: 19041.1 PRO (UWP) >> 19041.1 "LTSC" (UWP) >> WU10UI >> 19044.xxxx "LTSC" (UWP) >> Optimize-Offline remove unwanted UWP just like normal Enterprise >> 19044.xxxx "LTSC" Optimized
    Rebased Pipeline: 19044.1288 LTSC (No UWP) >> WU10UI >> 19044.xxxx LTSC (No UWP) >> Optimize-Offline (hopefully) add desired UWP >> 19044.xxxx "LTSC" Optimized
    If you get the store and other UWP to stably re-inject into the official LTSC image than, other than starting from the less-than-ideal 1288 rebase, you end-up with an identical outcome.
    Or am I missing something?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. quakze

    quakze MDL Junior Member

    Dec 15, 2011
    73
    16
    0
    Have you cracked the error, eagerly waiting !
     
  9. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    735
    636
    30
    On the main branch with the wildcards commit, Capabilities removal is broken, it removes the same item multiple times and ignores the template and removes everything.

    Works on the latest release though.

    @gdeliana
     
  10. gdeliana

    gdeliana MDL Member

    Oct 2, 2010
    179
    226
    10
    Hello there,

    This is strange for me works perfectly fine.
    This is how i used it the last time:

    Capabilities template:
    Code:
    {
        "Name":  [
                     "Browser.InternetExplorer~~~~0.0.11.0",
                     "DirectX.Configuration.Database~~~~0.0.1.0",
                     "Media.WindowsMediaPlayer~~~~0.0.12.0",
                     "Microsoft.Windows.Ethernet.Client.Intel.E1i68x64~~~~0.0.1.0",
                     "Microsoft.Windows.Ethernet.Client.Intel.E2f68~~~~0.0.1.0",
                     "Microsoft.Windows.Ethernet.Client.Realtek.Rtcx21x64~~~~0.0.1.0",
                     "Microsoft.Windows.Notepad.System~~~~0.0.1.0",
                     "Microsoft.Windows.PowerShell.ISE~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Broadcom.Bcmpciedhd63~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Broadcom.Bcmwl63a~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Broadcom.Bcmwl63al~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Intel.Netwbw02~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Intel.Netwew00~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Intel.Netwew01~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Intel.Netwlv64~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Intel.Netwns64~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Intel.Netwsw00~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Intel.Netwtw02~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Intel.Netwtw04~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Intel.Netwtw06~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Intel.Netwtw08~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Marvel.Mrvlpcie8897~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Qualcomm.Athw8x~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Qualcomm.Athwnx~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Qualcomm.Qcamain10x64~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Ralink.Netr28x~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Realtek.Rtl8187se~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Realtek.Rtl8192se~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Realtek.Rtl819xp~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Realtek.Rtl85n64~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Realtek.Rtwlane~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Realtek.Rtwlane01~~~~0.0.1.0",
                     "Microsoft.Windows.Wifi.Client.Realtek.Rtwlane13~~~~0.0.1.0",
                     "OpenSSH.Client~~~~0.0.1.0",
                     "Print.Fax.Scan~~~~0.0.1.0",
                     "Print.Management.Console~~~~0.0.1.0",
                     "Windows.Client.ShellComponents~~~~0.0.1.0",
                     "Windows.Kernel.LA57~~~~0.0.1.0"
                 ]
    }
    
    Capabilities Blacklist:
    Code:
    {
        "Name": [
            "Print.Fax.Scan*",
            "Microsoft.Windows.*",
            "OpenSSH.Client~~~~0.0.1.0"
        ]
    }
    
    OO log:
    Code:
    Microsoft.Windows.Ethernet.Client.Intel.E1i68x64
    2021-11-27T13:44:00 [INFO]: Removing Windows Capability: Microsoft.Windows.Ethernet.Client.Intel.E2f68
    2021-11-27T13:44:05 [INFO]: Removing Windows Capability: Microsoft.Windows.Ethernet.Client.Realtek.Rtcx21x64
    2021-11-27T13:44:11 [INFO]: Removing Windows Capability: Microsoft.Windows.Notepad.System
    2021-11-27T13:44:16 [INFO]: Removing Windows Capability: Microsoft.Windows.PowerShell.ISE
    2021-11-27T13:44:21 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Broadcom.Bcmpciedhd63
    2021-11-27T13:44:26 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Broadcom.Bcmwl63a
    2021-11-27T13:44:31 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Broadcom.Bcmwl63al
    2021-11-27T13:44:36 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwbw02
    2021-11-27T13:44:43 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwew00
    2021-11-27T13:44:48 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwew01
    2021-11-27T13:44:54 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwlv64
    2021-11-27T13:45:00 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwns64
    2021-11-27T13:45:06 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwsw00
    2021-11-27T13:45:11 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwtw02
    2021-11-27T13:45:20 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwtw04
    2021-11-27T13:45:26 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwtw06
    2021-11-27T13:45:32 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwtw08
    2021-11-27T13:45:38 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Marvel.Mrvlpcie8897
    2021-11-27T13:45:43 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Qualcomm.Athw8x
    2021-11-27T13:45:49 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Qualcomm.Athwnx
    2021-11-27T13:45:55 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Qualcomm.Qcamain10x64
    2021-11-27T13:46:00 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Ralink.Netr28x
    2021-11-27T13:46:06 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtl8187se
    2021-11-27T13:46:11 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtl8192se
    2021-11-27T13:46:16 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtl819xp
    2021-11-27T13:46:21 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtl85n64
    2021-11-27T13:46:26 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtwlane
    2021-11-27T13:46:31 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtwlane01
    2021-11-27T13:46:36 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtwlane13
    2021-11-27T13:46:42 [INFO]: Removing Windows Capability: OpenSSH.Client
    2021-11-27T13:46:47 [INFO]: Removing Windows Capability: Print.Fax.Scan
    Everything is removed correctly, all the Microsoft.Windows.*, Print.Fax.Scan* and the specific package.
    There are no duplicates and as well for instance: Windows.Kernel.LA57 is not removed.
     
  11. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    735
    636
    30
    I'm using Whtelists, might be why.

    My Google Drive tells me the script has a virus. :/
     
  12. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    735
    636
    30
  13. gdeliana

    gdeliana MDL Member

    Oct 2, 2010
    179
    226
    10
    Just as i was about to write it :)

    Doesn't matter at least now is OK.

    Will soon make a new release, but am writing some more documentation about the selective registry. Exactly wanted to ask @spanishfly what is it doing exactly this setting: DisableWindowsUpdateMicrosoft. Seems to me like is properly disabling the windows upgrade, but better ask first.
     
  14. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    735
    636
    30
    @gdeliana Not integrating Microsoft store into the MSDN IOT LTSC 2021 official ISO, en-us_windows_10_iot_enterprise_ltsc_2021_x64_dvd_257ad90f.iso. I downloaded the Store Lite packages and put them in the right folder.

    I'm 100% sure the official LTSC ISO has no store.

    It might be the packages were updated recently the file names are different, but I'm not sure.

    Edit: Wait, it might be it DOES have the Store.
     
  15. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    735
    636
    30
    IOT LTSC 2021 HAS Windows Store. The regular LTSC 2021 doesn't, and it gets integrated properly. :)