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
    533
    415
    30
    #841 KedarWolf, Jul 3, 2021 at 04:04
    Last edited: Jul 7, 2021 at 04:23
    (OP)
    If anyone wants a Windows 11 ISO that doesn't require TPM or Secure Boot enabled, add the following lines to the \Optimize-Offline-4.0.1.8\Optimize-Offline-4.0.1.8\Content\Additional\RegistryTemplates\Additional Tweaks.reg file.

    Code:
    [HKLM\SYSTEM\Setup\LabConfig]
    "BypassTPMCheck"=dword:00000001
    "BypassSecureBootCheck"=dword:00000001
    "BypassRAMCheck" = dword: 00000001
    "BypassStorageCheck" = dword: 00000001
    
     
  2. zbigniew59

    zbigniew59 MDL Member

    May 14, 2016
    130
    39
    10
    #842 zbigniew59, Jul 3, 2021 at 04:39
    Last edited: Jul 3, 2021 at 04:50
    And also these -
    "BypassRAMCheck" = dword: 00000001
    "BypassStorageCheck" = dword: 00000001
     
  3. Mavericks Choice

    Mavericks Choice MDL Expert

    Aug 5, 2015
    1,832
    7,023
    60
    Possibly not the place to ask, have the win 11 image stripped down pretty well with OO 4.0.1.8, though how to be rid of the pesky widget thing?
     
  4. spanishfly

    spanishfly MDL Junior Member

    Dec 5, 2018
    73
    91
    0
    #844 spanishfly, Jul 3, 2021 at 11:26
    Last edited: Jul 6, 2021 at 08:38
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. zalim581

    zalim581 MDL Novice

    Aug 12, 2019
    28
    6
    0
    These are not necessary tho. The issue isnt about the ISO language but your current windows display language. I used the script for turkish ISO without any changes.
     
  6. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    533
    415
    30
    Yes, you can run the script without changing those but a bunch of things that the script does and applies to the ISO are not done, so really you're not using the script to its full potential.
     
  7. gdeliana

    gdeliana MDL Junior Member

    Oct 2, 2010
    65
    12
    0
    I am modifying the script to support W11, but removing Microsoft.SecHealthUI results in an error?? However someone reported that it works.
     
  8. zalim581

    zalim581 MDL Novice

    Aug 12, 2019
    28
    6
    0
    I didnt know that. Do you have a list of what exactly I am missing as I didnt use an en-us iso?

    I never said anything that would sound like that.
     
  9. mdl052020

    mdl052020 MDL Member

    May 31, 2020
    1,047
    1,140
    60
    Somebody must read person suggestions but not suggesting that this must be that or that must be this. Pl read a suggestion properly then ask questions but dont suggest if somebody is not sure of something as its results.
    I Repeat Again Kedarworld has a Vast Experience in this project n he can sort out things at user end or the developer himself.
     
  10. spanishfly

    spanishfly MDL Junior Member

    Dec 5, 2018
    73
    91
    0
    #852 spanishfly, Jul 4, 2021 at 06:57
    Last edited: Jul 6, 2021 at 08:42
    Windows 11 is not officially supported by Optimize-Offline [Build 4.0.1.8 (06-22-2021)]. So anything anyone reports, including myself, is based on a limited level of personal investigation.
    As reported by me in my prior post, for W11, Microsoft.SecHealthUI (Defender) has shifted it's "home." It used to live with other System Apps. The official Optimize-Offline script expects it to still live at this old address. However, Microsoft.SecHealthUI, has packed-up and moved to a new address. It now lives with the Microsoft "metro" Apps.
    Having had a chance to play around with Windows 11, I'm pretty confidant that the guidance I provided in my prior post is correct. I will edit post #807 to clarify my suggested changes and clean-up the code changes needed to help the official Optimize-Offline.psm1 script properly remove Microsoft.SecHealthUI (Defender).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    533
    415
    30
    I got the script to run on Windows 11, but even with your changes in post #807 I get an error message when removing Microsoft.SecHealthUI saying Fail To Remove and script exits.
     
  12. mdl052020

    mdl052020 MDL Member

    May 31, 2020
    1,047
    1,140
    60
    You are absolutely correct because of non removable state set for sechealthui as well as desktop app installer in metro apps.
     
  13. zbigniew59

    zbigniew59 MDL Member

    May 14, 2016
    130
    39
    10
  14. spanishfly

    spanishfly MDL Junior Member

    Dec 5, 2018
    73
    91
    0
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. spanishfly

    spanishfly MDL Junior Member

    Dec 5, 2018
    73
    91
    0
    I see.
    I've done all my optimize script runs on a Windows 10 device.
    Do you have a virtual machine with Windows 10 on it that you can use?
    In any event, thanks for the possible warning about Windows 11.
    I'll run the script on a Windows 11 device and let you know how it goes.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. mdl052020

    mdl052020 MDL Member

    May 31, 2020
    1,047
    1,140
    60
    Brother you are again very very correct . Agreed totaly with you. I tested this on the very first day 21996.x is leaked but on 1904x.xxxx it worked like a charm. same happened on 22000.xx.
    Hats off to you for your accurate thesis on this :)