From 13492548595f648dbbe3639cc512b42bf369b5a2 Mon Sep 17 00:00:00 2001 From: LeDragoX Date: Thu, 28 Mar 2024 14:35:51 -0300 Subject: [PATCH] Add Support to Windows 11 23H2 (#137) - Add tweak to keep the show desktop button enabled - When uninstalling WSL, also uninstall the optional feature - Insert Windows version for some tweaks - Update ROADMAP --- README.md | 2 +- ROADMAP.md | 5 +++++ WinDebloatTools.ps1 | 1 + src/scripts/Optimize-Performance.ps1 | 2 +- src/scripts/Register-PersonalTweaksList.ps1 | 19 +++++++++++-------- 5 files changed, 19 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 6f113392..0af78bf6 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Code located in the `main` branch is considered stable, the `develop` branch con

⬇️ Main

(Stable) - 22H2 or Older + 23H2 or Older Home / Pro v5.1+ diff --git a/ROADMAP.md b/ROADMAP.md index 779a2840..a964cc85 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1,3 +1,8 @@ +### Future + +- [ ] Unpin All "mocked" apps (Apps on the Start Menu which are not installed, but are there). +- [ ] Install Winget via Chocolatey as an another option. + ### 2023v2 - [x] Rename all powershell scripts to match it's naming convention. diff --git a/WinDebloatTools.ps1 b/WinDebloatTools.ps1 index 01ab6ecb..d2d2253f 100644 --- a/WinDebloatTools.ps1 +++ b/WinDebloatTools.ps1 @@ -1492,6 +1492,7 @@ function Show-GUI() { Open-PowerShellFilesCollection -RelativeLocation "src\scripts\other-scripts" -Scripts @("Install-WSL.ps1") -DoneTitle $DoneTitle -DoneMessage $DoneMessage } Else { $AppsSelected.MSStoreApps.Add("9P9TQF7MRM4R") + Set-OptionalFeatureState -State 'Disabled' -OptionalFeatures @("Microsoft-Windows-Subsystem-Linux") } $InstallWSL.CheckState = "Unchecked" } diff --git a/src/scripts/Optimize-Performance.ps1 b/src/scripts/Optimize-Performance.ps1 index f62b7281..967ed2a3 100644 --- a/src/scripts/Optimize-Performance.ps1 +++ b/src/scripts/Optimize-Performance.ps1 @@ -48,7 +48,7 @@ function Optimize-Performance() { Write-Section "System" Write-Caption "Display" - Write-Status -Types "+", $TweakType -Status "Enable Hardware Accelerated GPU Scheduling... (Windows 10 20H1+ - Needs Restart)" + Write-Status -Types "+", $TweakType, "20H1" -Status "Enable Hardware Accelerated GPU Scheduling... (Windows 10+ - Needs Restart)" Set-ItemPropertyVerified -Path "HKLM:\SYSTEM\CurrentControlSet\Control\GraphicsDrivers" -Name "HwSchMode" -Type DWord -Value 2 Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) Remote Assistance..." diff --git a/src/scripts/Register-PersonalTweaksList.ps1 b/src/scripts/Register-PersonalTweaksList.ps1 index abda52be..d650e992 100644 --- a/src/scripts/Register-PersonalTweaksList.ps1 +++ b/src/scripts/Register-PersonalTweaksList.ps1 @@ -151,20 +151,20 @@ function Register-PersonalTweaksList() { Write-Section "Task Bar Tweaks" Write-Caption "Task Bar - Windows 10 Compatible" - Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) the 'Search Box' from taskbar..." + Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) the 'Search Box' from Taskbar..." # [@] (0 = Hide completely, 1 = Show icon only, 2 = Show long Search Box, 3 = Search Icon and Label (Windows 11)) Set-ItemPropertyVerified -Path "$PathToCUWindowsSearch" -Name "SearchboxTaskbarMode" -Type DWord -Value $Zero - Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) Windows search highlights from taskbar..." + Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) Windows search highlights from Taskbar..." Set-ItemPropertyVerified -Path "$PathToLMPoliciesWindowsSearch" -Name "EnableDynamicContentInWSB" -Type DWord -Value $Zero - Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) the 'Task View' icon from taskbar..." + Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) the 'Task View' icon from Taskbar..." # [@] (0 = Hide Task view, 1 = Show Task view) Set-ItemPropertyVerified -Path "$PathToCUExplorerAdvanced" -Name "ShowTaskViewButton" -Type DWord -Value $Zero If (!$Revert) { Disable-NewsAndInterest } Else { Enable-NewsAndInterest } - Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) 'People' icon from taskbar..." + Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) 'People' icon from Taskbar..." Set-ItemPropertyVerified -Path "$PathToCUExplorerAdvanced\People" -Name "PeopleBand" -Type DWord -Value $Zero Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) Live Tiles..." @@ -173,18 +173,21 @@ function Register-PersonalTweaksList() { Write-Status -Types "*", $TweakType -Status "Enabling Auto tray icons..." Set-ItemPropertyVerified -Path "$PathToCUExplorer" -Name "EnableAutoTray" -Type DWord -Value 1 - Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) 'Meet now' icon on taskbar..." + Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) 'Meet now' icon on Taskbar..." # [@] (0 = Show Meet Now, 1 = Hide Meet Now) Set-ItemPropertyVerified -Path "$PathToLMPoliciesExplorer" -Name "HideSCAMeetNow" -Type DWord -Value $One Write-Caption "Task Bar - Windows 11 Compatible" - Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) 'Widgets' icon from taskbar..." + Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) 'Widgets' icon from Taskbar..." # [@] (0 = Hide Widgets, 1 = Show Widgets) Set-ItemPropertyVerified -Path "$PathToCUExplorerAdvanced" -Name "TaskbarDa" -Type DWord -Value $Zero - Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) 'Chat' icon from taskbar..." + Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) 'Chat' icon from Taskbar..." Set-ItemPropertyVerified -Path "$PathToCUExplorerAdvanced" -Name "TaskbarMn" -Type DWord -Value $Zero + Write-Status -Types "*", $TweakType, "23H2" -Status "Enabling 'Show Desktop Button' on the Taskbar corner..." + Set-ItemPropertyVerified -Path "$PathToCUExplorerAdvanced" -Name "TaskbarSd" -Type DWord -Value 1 + Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) creation of Thumbs.db thumbnail cache files..." Set-ItemPropertyVerified -Path "$PathToCUExplorerAdvanced" -Name "DisableThumbnailCache" -Type DWord -Value $One Set-ItemPropertyVerified -Path "$PathToCUExplorerAdvanced" -Name "DisableThumbsDBOnNetworkFolders" -Type DWord -Value $One @@ -193,7 +196,7 @@ function Register-PersonalTweaksList() { If (!$Revert) { Enable-DarkTheme } Else { Disable-DarkTheme } - Write-Status -Types "*", $TweakType -Status "Restoring taskbar transparency..." + Write-Status -Types "*", $TweakType -Status "Restoring Taskbar transparency..." Set-ItemPropertyVerified -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" -Name "EnableTransparency" -Type DWord -Value 1 Write-Section "System"