Skip to content

Commit

Permalink
Removing all the properties changed to **Enable-WindowsSpotlight**
Browse files Browse the repository at this point in the history
- Fix Remove-ItemPropertyVerified
  • Loading branch information
LeDragoX committed May 17, 2024
1 parent 1c667fc commit cbf8d52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/debloat-helper/Remove-ItemPropertyVerified.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
7 changes: 6 additions & 1 deletion src/utils/Individual-Tweaks.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit cbf8d52

Please sign in to comment.