From 6c4b791d7979717489c83949f2e37b6d234d2b55 Mon Sep 17 00:00:00 2001 From: Raphire <9938813+Raphire@users.noreply.github.com> Date: Tue, 20 May 2025 21:56:04 +0200 Subject: [PATCH] Added option to completely disable/hide Settings Home page --- Get.ps1 | 1 + Regfiles/Disable_Settings_Home.reg | 4 ++++ Regfiles/Sysprep/Disable_Settings_Home.reg | 4 ++++ Regfiles/Undo/Enable_Settings_Home.reg | 4 ++++ Win11Debloat.ps1 | 14 ++++++++++++-- 5 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 Regfiles/Disable_Settings_Home.reg create mode 100644 Regfiles/Sysprep/Disable_Settings_Home.reg create mode 100644 Regfiles/Undo/Enable_Settings_Home.reg diff --git a/Get.ps1 b/Get.ps1 index f7da7e0..d1ef6c7 100644 --- a/Get.ps1 +++ b/Get.ps1 @@ -24,6 +24,7 @@ param ( [switch]$DisableLockscrTips, [switch]$DisableLockscreenTips, [switch]$DisableWindowsSuggestions, [switch]$DisableSuggestions, [switch]$DisableSettings365Ads, + [switch]$DisableSettingsHome, [switch]$ShowHiddenFolders, [switch]$ShowKnownFileExt, [switch]$HideDupliDrive, diff --git a/Regfiles/Disable_Settings_Home.reg b/Regfiles/Disable_Settings_Home.reg new file mode 100644 index 0000000..e7f5569 --- /dev/null +++ b/Regfiles/Disable_Settings_Home.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer] +"SettingsPageVisibility"="hide:home" diff --git a/Regfiles/Sysprep/Disable_Settings_Home.reg b/Regfiles/Sysprep/Disable_Settings_Home.reg new file mode 100644 index 0000000..e7f5569 --- /dev/null +++ b/Regfiles/Sysprep/Disable_Settings_Home.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer] +"SettingsPageVisibility"="hide:home" diff --git a/Regfiles/Undo/Enable_Settings_Home.reg b/Regfiles/Undo/Enable_Settings_Home.reg new file mode 100644 index 0000000..3f2cdb9 --- /dev/null +++ b/Regfiles/Undo/Enable_Settings_Home.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer] +"SettingsPageVisibility"=- diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index 3db98e6..87cb939 100644 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -26,6 +26,7 @@ param ( [switch]$DisableLockscrTips, [switch]$DisableLockscreenTips, [switch]$DisableWindowsSuggestions, [switch]$DisableSuggestions, [switch]$DisableSettings365Ads, + [switch]$DisableSettingsHome, [switch]$ShowHiddenFolders, [switch]$ShowKnownFileExt, [switch]$HideDupliDrive, @@ -875,6 +876,7 @@ function DisplayCustomModeOptions { if ($( Read-Host -Prompt "Disable tips, tricks, suggestions and ads in start, settings, notifications, explorer and lockscreen? (y/n)" ) -eq 'y') { AddParameter 'DisableSuggestions' 'Disable tips, tricks, suggestions and ads in start, settings, notifications and File Explorer' + AddParameter 'DisableSettings365Ads' 'Disable Microsoft 365 ads in Settings Home' AddParameter 'DisableLockscreenTips' 'Disable tips & tricks on the lockscreen' } @@ -1516,14 +1518,22 @@ switch ($script:Params.Keys) { RegImport "> Disabling tips, tricks, suggestions and ads across Windows..." "Disable_Windows_Suggestions.reg" continue } - 'DisableDesktopSpotlight' { - RegImport "> Disabling the 'Windows Spotlight' desktop background option..." "Disable_Desktop_Spotlight.reg" + 'DisableSettings365Ads' { + RegImport "> Disabling Microsoft 365 ads in Settings Home..." "Disable_Settings_365_Ads.reg" continue } {$_ -in "DisableLockscrTips", "DisableLockscreenTips"} { RegImport "> Disabling tips & tricks on the lockscreen..." "Disable_Lockscreen_Tips.reg" continue } + 'DisableDesktopSpotlight' { + RegImport "> Disabling the 'Windows Spotlight' desktop background option..." "Disable_Desktop_Spotlight.reg" + continue + } + 'DisableSettingsHome' { + RegImport "> Disabling the Settings Home page..." "Disable_Settings_Home.reg" + continue + } {$_ -in "DisableBingSearches", "DisableBing"} { RegImport "> Disabling bing web search, bing AI & cortana in Windows search..." "Disable_Bing_Cortana_In_Search.reg"