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

    strotee MDL Member

    Jan 30, 2011
    215
    186
    10
    #1841 strotee, Apr 23, 2022
    Last edited: Apr 23, 2022
    Unless I'm missing as to how this is accomplished, I have some ideas:

    1. ISO save location - Can we specify the save location of the finished ISO?
    2. File name - Along with #1, can we specify the file name? I have a system to where I name my ISOs 19044.1645.iso (base + updates via W10UI) & 19044.1645.opt.iso (O-Oed version of the aforementioned ISO) and having this option would allow me to easily specify save location\file name thus removing one last manual step. Thanks for your thoughts and a great product.
     
  2. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    883
    773
    30
    #1843 KedarWolf, Apr 24, 2022
    Last edited: Apr 24, 2022
    (OP)
    @gdeliana

    On the latest OO build, the RunAsTi and Black Theme imported registry tweaks are not working.

    The OO log says they have been imported but in a VM and now on a clean Windows install not working until I double-click both .reg files.

    The 'Additional Tweaks.reg' wasn't applied as well. No CMD As Admin or anything. :(
     
  3. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    261
    290
    10
    Fixed definitely on the master branch, and even tested it on a VM with 22000 modded iso. However please feel free to test it also :)
     
  4. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    883
    773
    30
    I tested in a VM, and everything is working, except for the Black Theme, Windows Explorer etc. definitely still the stock white theme.

    But have Run As Trusted Installer, Open CMD As Admin and stuff.
     
  5. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    261
    290
    10
  6. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    261
    290
    10
    Can i put an option in Configuration.json like:

    Code:
    {
         "Output": "YourPath://Image.ISO/WIM/ESD"
         OR
          "Output": false //default
         OR
         "Output" : "Select" /// Save dialog will show, with the extension adapted to the input
    }
    if false the normal behavior will be executed.

    If you agree i can do that. Like this we will cover any kind of input. Remember, we have also WIM, ESD inputs as well.
     
  7. strotee

    strotee MDL Member

    Jan 30, 2011
    215
    186
    10
    That works. The file name can be the normal output (19044.1645.xxxxxxxxxxxxxxxxxxxxxx.iso), just subtract the extra stuff at the end of the name. I like the current format (version.build) just not the extra junk.
     
  8. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    261
    290
    10
    #1850 gdeliana, Apr 25, 2022
    Last edited: Apr 25, 2022
    Ok with a bit of modification i present you even a better version:

    Code:
    {
         "Output": "YourPath://Image.ISO/WIM/ESD"
         OR
          "Output": "YourPath://{filename}" // will preserve the OO filename format but you choose the path
         OR
          "Output": false //default
         OR
         "Output" : "Select" /// Save dialog will show, with the extension adapted to the input, BY DEFAULT the filename will be the OO filename, you can either choose the path or change the filename or both
    }
    So basically i introduced the {filename} optional variable, which represents the default OO filename, if you put that, {filename} will be replaced with the OO filename inside the path.

    And if you want to choose everytime you run the script, just put select, and you will be presented with a save dialog loaded with the default filename and at the last directory you had. You can change both filename and path as you need it.
     
  9. strotee

    strotee MDL Member

    Jan 30, 2011
    215
    186
    10
    I'll probably choose Select and then choose the path. Will it select at least a filename and then I can modify it as I please or will the filename will be blank?

    Edit: Nvm, can't read. I'll test it out and will let you know how it goes. I'm sure many will find the change an improvement.
     
  10. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    883
    773
    30
    The Pitch Black Theme .reg file is different now.

    Is the below.

    Code:
    Windows Registry Editor Version 5.00
    
    ; Pitch Black Theme preset by AveYo, AccentPalette idea by /u/Egg-Tricky
    ; for Ctrl+Alt+Del, Logon, Taskbar, Start Menu, Action Center, Title Bar (10 & 11)
    
    [-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent]
    [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent]
    "AccentColorMenu"=dword:1f000000      ; Window borders and titlebar
    "StartColorMenu"=dword:1f202020       ; Modals in UWP ex. Apply new refresh rate in 10
    "AccentPalette"=hex:\
        00,9d,ff,1f,\                     ; Links in action center and apps
        00,9d,ff,1f,\                     ; Taskbar icons underline
        00,9d,ff,1f,\                     ; Start button hover
        00,9d,ff,1f,\                     ; Settings icons and links [Blue]
        00,00,00,00,\                     ; Startmenu background / Active taskbar button - IF "EnableTransparency"=dword:00000000
        00,00,00,00,\                     ; Taskbar front and Folders on start list background [None]
        00,00,00,00,\                     ; Taskbar background - IF "EnableTransparency"=dword:00000001
        00,00,00,00                       ; Unused
    
    [-HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent]
    [HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent]
    "AccentColorMenu"=dword:1f000000      ; Window borders and titlebar
    "StartColorMenu"=dword:1f202020       ; Modals in UWP ex. Apply new refresh rate in 10
    "AccentPalette"=hex:\
        00,9d,ff,1f,\                     ; Links in action center and apps
        00,9d,ff,1f,\                     ; Taskbar icons underline
        00,9d,ff,1f,\                     ; Start button hover
        00,9d,ff,1f,\                     ; Settings icons and links [Blue]
        00,00,00,00,\                     ; Startmenu background / Active taskbar button - IF "EnableTransparency"=dword:00000000
        00,00,00,00,\                     ; Taskbar front and Folders on start list background [None]
        00,00,00,00,\                     ; Taskbar background - IF "EnableTransparency"=dword:00000001
        00,00,00,00                       ; Unused
    
    [-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\DWM]
    [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\DWM]
    "ColorPrevalence"=dword:00000001      ; Show accent color on Title bars and window borders [x]
    "AccentColor"=dword:1f000000          ; Active title bars - black unsupported in the UI but works with AccentPalette
    "AccentColorInactive"=dword:1f202020  ; Inactive title bars
    
    [-HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Windows\DWM]
    [HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Windows\DWM]
    "ColorPrevalence"=dword:00000001      ; Show accent color on Title bars and window borders [x]
    "AccentColor"=dword:1f000000          ; Active title bars - black unsupported in the UI but works with AccentPalette
    "AccentColorInactive"=dword:1f202020  ; Inactive title bars
    
    [-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize]
    [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize]
    "ColorPrevalence"=dword:00000001      ; Show accent color on Start, taskbar and action center [x]
    "AppsUseLightTheme"=dword:00000000    ; Apps mode [Dark]
    "SystemUsesLightTheme"=dword:00000000 ; Windows mode [Dark]
    "EnabledBlurBehind"=dword:00000001    ; Blur [x]
    "EnableTransparency"=dword:00000000   ; Transparency []
    
    [-HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize]
    [HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize]
    "ColorPrevalence"=dword:00000001      ; Show accent color on Start, taskbar and action center [x]
    "AppsUseLightTheme"=dword:00000000    ; Apps mode [Dark]
    "SystemUsesLightTheme"=dword:00000000 ; Windows mode [Dark]
    "EnabledBlurBehind"=dword:00000001    ; Blur [x]
    "EnableTransparency"=dword:00000000   ; Transparency []
    
    [-HKEY_CURRENT_USER\Control Panel\Colors]
    [HKEY_CURRENT_USER\Control Panel\Colors]
    "Hilight"="0 157 255" ; [Blue]
    "HotTrackingColor"="0 157 255"
    "MenuHilight"="0 157 255"
    
    [-HKEY_USERS\.DEFAULT\Control Panel\Colors]
    [HKEY_USERS\.DEFAULT\Control Panel\Colors]
    "Hilight"="0 157 255" ; [Blue]
    "HotTrackingColor"="0 157 255"
    "MenuHilight"="0 157 255"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
    "Background"="0 0 0"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System]
    "DisableAcrylicBackgroundOnLogon"=dword:00000001 ; AveYo: enable pure black logon on 11
    "DisableLogonBackgroundImage"=dword:00000001 ; enable solid color logon - separate undo.reg provided
    
    [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Personalization]
    "PersonalColors_Background"="#000000" ; AveYo: this is what was missing to make Ctrl+Alt+Del background black as well
    "PersonalColors_Accent"=-
    "NoLockScreen"=dword:00000001 ; no lock screen entirely - separate undo.reg provided
    
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DWM]
    ; done - log off and back on to see all changes
     
  11. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    883
    773
    30
    @gdeliana

    Windows Explorer, all the menus definitely not the Amoled Black Theme with Windows 11 IoT 22000.

    It IS if I manually apply the .reg file and log back in.
     
  12. qkwxx

    qkwxx MDL Novice

    Jul 22, 2015
    16
    2
    0
    Hello
    Ask, after the two tools, NTlite and MSMG ToolKit, delete the system components, the system will restore the components after the update patch is executed.

    Excuse me, in the system processed by "Optimize-Offline", whether the processed components are also restored after the patch is updated?

    Sorry for my bad english, this is translated by google.
     
  13. zbigniew59

    zbigniew59 MDL Senior Member

    May 14, 2016
    269
    107
    10
    I think for sure - yes.
    The only option without restoring - LTSC - Windows server. ;)
    Maybe someone knows better?
     
  14. Ace2

    Ace2 MDL Addicted

    Oct 10, 2014
    684
    529
    30
    You can remove system components from an online image with AutoSettingsPS_v.0.5.1.
     
  15. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    883
    773
    30
    If I integrate the updates with W10UI, then run the OO script on the ISO, I've never had system apps etc. reinstalling when updating Windows afterwards.