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() {