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
    Some Intel users might not want it though. It helps performance but compromises a major security breach for Intel.
     
  2. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    #1822 KedarWolf, Apr 12, 2022
    Last edited: Apr 12, 2022
    (OP)
    @gdeliana When I further tested that Meltdown tweak on my 5950x, it lowered CPU-Z multithread by 200 points and Cinebench multithread by 300 points.

    Deleting the keys and rebooting I was back to normal.

    Sorry, I thought it would help as y-cruncher when you run the benchmark says Meltdown mitigation will slow the benchmark.

    .
     
  3. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    363
    410
    10
    Ok then will test it also in games, to me it didn't give lower benchmarks in cpu-z test. Will see, if so i can just comment it out and leave it there, maybe in the future we can find a reason to use it.
     
  4. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    #1824 KedarWolf, Apr 14, 2022
    Last edited: Apr 16, 2022
    (OP)
    @gdeliana

    The Black Theme was updated with some improvements like CTRL ALT DEL and Login screen. :)

    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
    Remove Shortcut Name Extension

    Code:
    @echo off
    
    REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /V link /T REG_Binary /D 00000000 /F
    
    Reg Delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\NamingTemplates" /V ShortcutNameTemplate /F
    
    :: To kill and restart explorer
    taskkill /f /im explorer.exe
    start explorer.exe
    Remove Shortcut Arrow Overlay

    https://forums.mydigitallife.net/th...fications-overview.83744/page-35#post-1695126

    Disable/Enable ALL Modern Apps Background Activity

    https://forums.mydigitallife.net/th...fications-overview.83744/page-26#post-1690660

    Clear Needless .tmp Folders Created At Boot
    By @pf100

    https://forums.mydigitallife.net/th...fications-overview.83744/page-47#post-1704925

    With all the "Add to the Context Menu" items contributed here in this thread you may want to clean up the items you don't need to declutter your Context menu

    https://forums.mydigitallife.net/th...fications-overview.83744/page-44#post-1701372


    Disable SmartScreen Completely.

    Code:
    rem Off - Disable Windows SmartScreen / On - Enable Windows SmartScreen
    reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "SmartScreenEnabled" /t REG_SZ /d "Off" /f
    
    rem 0 - Disable SmartScreen Filter in Microsoft Edge / 1 - Enable
    reg add "HKCU\Software\Microsoft\Edge\SmartScreenEnabled" /ve /t REG_DWORD /d "0" /f
    
    rem 0 - Disable SmartScreen PUA in Microsoft Edge / 1 - Enable
    reg add "HKCU\Software\Microsoft\Edge\SmartScreenPuaEnabled" /ve /t REG_DWORD /d "0" /f
    
    rem 0 - Disable Windows SmartScreen for Windows Store Apps / 1 - Enable
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\AppHost" /v "EnableWebContentEvaluation" /t "REG_DWORD" /d "0" /f
    
    reg add "HKLM\Software\Policies\Microsoft\Windows\System" /v "EnableSmartScreen" /t "REG_DWORD" /d "0" /f
    reg add "HKLM\Software\Policies\Microsoft\Windows Defender\SmartScreen" /v "ConfigureAppInstallControl" /t REG_SZ /d "Anywhere" /f
    reg add "HKLM\Software\Policies\Microsoft\Windows Defender\SmartScreen" /v "ConfigureAppInstallControlEnabled" /t "REG_DWORD" /d "0" /f
    
    rem Remove Smartscreen (to restore run "sfc /scannow")
    takeown /s %computername% /u %username% /f "%WinDir%\System32\smartscreen.exe"
    icacls "%WinDir%\System32\smartscreen.exe" /grant:r %username%:F
    taskkill /im smartscreen.exe /f
    del "%WinDir%\System32\smartscreen.exe" /s /f /q
    

    All Windows 11 Tweaks List here.

    https://forums.mydigitallife.net/th...fications-overview.83744/page-20#post-1687577
     
  5. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    #1825 KedarWolf, Apr 15, 2022
    Last edited: Apr 15, 2022
    (OP)
    Newest commit not working. No output in the Start-Optimize-BAU-TI.ps1 command Window and makes no mount folders or anything.

    @gdeliana

    I tried to share a pic of the empty command window but the forum not letting me.

    Never mind, I broke my Windows install. Restoring Windows with a Macrium Reflect backup fixed it.
     
  6. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    Grammarly was not letting me correct misspelt words in Chrome.

    I narrowed it down to the Clipboard tweaks in the Set-Additional.ps1. When I removed those, Grammarly now working fine. I had to restore my Macrium backup image, edit the .ps1 file, run it, now fixed.
     
  7. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    @gdeliana Should I go on GitHub and share the changes I made to the files for some added tweaks and to fix issues I was struggling with?

    I dunno if you'd want to commit then, the RibbinUI issues might have been isolated to my build but that one fixes it for any W11 build. You have to modify it I think though as it applies with my fix to W10, W11, whatever. :(

    I need to add comments in the files on what the fixes do though.
     
  8. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    Actually, all grammar checker extensions are broken on the newest version of Chrome.
     
  9. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    363
    410
    10
    Sure you can make a PR on github and i will merge :)
     
  10. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    363
    410
    10
    The tweak of the amoled theme is the same with the one in the script. Just try to diff
    Content\Additional\SelectiveRegistry\AMOLED_black_theme.reg and the one you provided in this thread, its the same, git didn't give me any text changes.

    Regarding the other tweaks will start integrating them on Tuesday.

    Also the ribbon bar tweak you provided is the same with the one i have inside the script, will try to integrate it as a reg file. Is it windows 19044 IOT your target build?
     
  11. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    Windows 11 IoT 22000.

    In that build the one in the script gives an IOException error in PowerShell and doesn't work :(
     
  12. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    #1833 KedarWolf, Apr 18, 2022
    Last edited: Apr 19, 2022
    (OP)
    @gdeliana

    This is the error I get just as it tries to do the ExplorerUIRibbon tweak.


    Code:
    Index     : 0
    Exception : The parameter is incorrect.
           
    Category  : OpenError: (HKEY_LOCAL_MACH...\InprocServer32:String) [New-Item], IOException
    ErrorID   : System.IO.IOException,Microsoft.PowerShell.Commands.NewItemCommand
    Target    : HKEY_LOCAL_MACHINE\WIM_HKLM_SOFTWARE\Classes\CLSID\{d93ed569-3b3e-4bff-8355-3c44f6a52bb5}\InprocServer32
    Command   : [Void](New-Item -Path $Key -ItemType Directory -Force -ErrorAction:$ErrorActionPreference |
                New-ItemProperty -Name $Name -Value $Value -PropertyType $Type -Force -ErrorAction:$ErrorActionPreference)
    Script    : D:\Optimize-Offline-master\Src\Public\Set-KeyProperty.ps1
    Line      : 48
    Column    : 24
     
  13. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    Thank you. :)
     
  14. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    The registry location I provided in HKCU is the same for any version of Windows 22000, not just IoT 22000. So it needs to be fixed all around. Here is the .cfg. I can't upload it, I'm at work and can't even install WinZip to make a zip file. :(

    Code:
    [convert-UUP]
    AutoStart    =1
    AddUpdates   =1
    Cleanup      =0
    ResetBase    =0
    NetFx3       =1
    StartVirtual =1
    wim2esd      =0
    SkipISO      =0
    SkipWinRE    =0
    LCUwinre     =0
    UpdtBootFiles=0
    ForceDism    =0
    RefESD       =0
    SkipEdge     =0
    AutoExit     =0
    
    [Store_Apps]
    SkipApps     =0
    AppsLevel    =0
    
    [create_virtual_editions]
    vAutoStart   =1
    vDeleteSource=0
    vPreserve    =0
    vwim2esd     =0
    vSkipISO     =0
    vAutoEditions=IoTEnterprise
    
     
  15. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    363
    410
    10
    #1839 gdeliana, Apr 20, 2022
    Last edited: Apr 20, 2022
    Should be fixed with latest master commits :)
     
  16. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    Yes, it's fixed, and Classic Explorer UI Ribbon tweak works. I tested it in a VM. :)