From cbf8d52cf6a45c2ef19c9f55304358a1066377ee Mon Sep 17 00:00:00 2001 From: LeDragoX Date: Fri, 17 May 2024 11:38:24 -0300 Subject: [PATCH] Removing all the properties changed to **Enable-WindowsSpotlight** - Fix Remove-ItemPropertyVerified --- src/lib/debloat-helper/Remove-ItemPropertyVerified.psm1 | 2 +- src/utils/Individual-Tweaks.psm1 | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lib/debloat-helper/Remove-ItemPropertyVerified.psm1 b/src/lib/debloat-helper/Remove-ItemPropertyVerified.psm1 index 090f5f7c..98a8000d 100644 --- a/src/lib/debloat-helper/Remove-ItemPropertyVerified.psm1 +++ b/src/lib/debloat-helper/Remove-ItemPropertyVerified.psm1 @@ -20,7 +20,7 @@ function Remove-ItemPropertyVerified() { } Process { - If ((Get-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\").Property -ccontains $Name) { + If ((Get-Item -Path "$Path").Property -ccontains $Name) { Write-Status -Types "-", $TweakType -Status "Removing: `"$Path>$Name`"" If ($null -ne $Path) { diff --git a/src/utils/Individual-Tweaks.psm1 b/src/utils/Individual-Tweaks.psm1 index 69c775a7..acfba4b9 100644 --- a/src/utils/Individual-Tweaks.psm1 +++ b/src/utils/Individual-Tweaks.psm1 @@ -499,7 +499,12 @@ function Disable-WindowsSpotlight() { function Enable-WindowsSpotlight() { Write-Status -Types "*", "Privacy" -Status "Enabling Windows Spotlight Features..." - Set-ItemPropertyVerified -Path "$PathToCUPoliciesCloudContent" -Name "DisableWindowsSpotlightFeatures" -Type DWord -Value 0 + Remove-ItemPropertyVerified -Path "$PathToCUPoliciesCloudContent" -Name "ConfigureWindowsSpotlight" + Remove-ItemPropertyVerified -Path "$PathToCUPoliciesCloudContent" -Name "IncludeEnterpriseSpotlight" + Remove-ItemPropertyVerified -Path "$PathToCUPoliciesCloudContent" -Name "DisableWindowsSpotlightFeatures" + Remove-ItemPropertyVerified -Path "$PathToCUPoliciesCloudContent" -Name "DisableWindowsSpotlightOnActionCenter" + Remove-ItemPropertyVerified -Path "$PathToCUPoliciesCloudContent" -Name "DisableWindowsSpotlightOnSettings" + Remove-ItemPropertyVerified -Path "$PathToCUPoliciesCloudContent" -Name "DisableWindowsSpotlightWindowsWelcomeExperience" } function Disable-XboxGameBarDVRandMode() {