From 6eccf15d88456ab4ae9587fac8044d911bd5004e Mon Sep 17 00:00:00 2001 From: Raphire <9938813+Raphire@users.noreply.github.com> Date: Tue, 20 May 2025 21:55:38 +0200 Subject: [PATCH] Added option to disable MS 365 ads in Settings Home --- Get.ps1 | 1 + Regfiles/Disable_Settings_365_Ads.reg | 5 +++++ Regfiles/Sysprep/Disable_Settings_365_Ads.reg | 5 +++++ Regfiles/Undo/Enable_Settings_365_Ads.reg | 5 +++++ Win11Debloat.ps1 | 1 + 5 files changed, 17 insertions(+) create mode 100644 Regfiles/Disable_Settings_365_Ads.reg create mode 100644 Regfiles/Sysprep/Disable_Settings_365_Ads.reg create mode 100644 Regfiles/Undo/Enable_Settings_365_Ads.reg diff --git a/Get.ps1 b/Get.ps1 index f58f3ad..f7da7e0 100644 --- a/Get.ps1 +++ b/Get.ps1 @@ -23,6 +23,7 @@ param ( [switch]$DisableDesktopSpotlight, [switch]$DisableLockscrTips, [switch]$DisableLockscreenTips, [switch]$DisableWindowsSuggestions, [switch]$DisableSuggestions, + [switch]$DisableSettings365Ads, [switch]$ShowHiddenFolders, [switch]$ShowKnownFileExt, [switch]$HideDupliDrive, diff --git a/Regfiles/Disable_Settings_365_Ads.reg b/Regfiles/Disable_Settings_365_Ads.reg new file mode 100644 index 0000000..4baadcc --- /dev/null +++ b/Regfiles/Disable_Settings_365_Ads.reg @@ -0,0 +1,5 @@ +Windows Registry Editor Version 5.00 + +; Disable MS 365 Ads in Settings Home +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent] +"DisableConsumerAccountStateContent"=dword:00000001 diff --git a/Regfiles/Sysprep/Disable_Settings_365_Ads.reg b/Regfiles/Sysprep/Disable_Settings_365_Ads.reg new file mode 100644 index 0000000..4baadcc --- /dev/null +++ b/Regfiles/Sysprep/Disable_Settings_365_Ads.reg @@ -0,0 +1,5 @@ +Windows Registry Editor Version 5.00 + +; Disable MS 365 Ads in Settings Home +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent] +"DisableConsumerAccountStateContent"=dword:00000001 diff --git a/Regfiles/Undo/Enable_Settings_365_Ads.reg b/Regfiles/Undo/Enable_Settings_365_Ads.reg new file mode 100644 index 0000000..005eeef --- /dev/null +++ b/Regfiles/Undo/Enable_Settings_365_Ads.reg @@ -0,0 +1,5 @@ +Windows Registry Editor Version 5.00 + +; Enable MS 365 Ads in Settings Home +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent] +"DisableConsumerAccountStateContent"=- diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index 2922d2c..3db98e6 100644 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -25,6 +25,7 @@ param ( [switch]$DisableDesktopSpotlight, [switch]$DisableLockscrTips, [switch]$DisableLockscreenTips, [switch]$DisableWindowsSuggestions, [switch]$DisableSuggestions, + [switch]$DisableSettings365Ads, [switch]$ShowHiddenFolders, [switch]$ShowKnownFileExt, [switch]$HideDupliDrive,