# Right-click the .ps1 file > Run with PowerShell # Or run from an elevated PowerShell: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser .\Reset-WindowsSpotlight.ps1 Save as Reset_Spotlight.bat :
foreach ($regPath in $registryPaths.Keys) if (Test-Path $regPath) foreach ($property in $registryPaths[$regPath]) if ($property -like " - ") ForEach-Object Remove-ItemProperty -Path $regPath -Name $ .PSChildName -ErrorAction SilentlyContinue else Remove-ItemProperty -Path $regPath -Name $property -ErrorAction SilentlyContinue
echo. echo Done! Please restart your computer. timeout /t 5 /nobreak >nul exit Save as Advanced-Reset-WindowsSpotlight.ps1 : reset windows spotlight windows 11
REM Clear Spotlight cache echo Clearing cache files... del /q "%LOCALAPPDATA%\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets*" >nul 2>&1 del /q "%LOCALAPPDATA%\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\Settings*" >nul 2>&1 del /q "%USERPROFILE%\AppData\Local\Microsoft\Windows\Spotlight*" >nul 2>&1
param( [switch]$Force, [switch]$SkipBackup ) # Right-click the
# Run these additional commands in PowerShell as Admin DISM /Online /Cleanup-Image /RestoreHealth sfc /scannow Get-AppxPackage -AllUsers | Where-Object $_.Name -like "*ContentDeliveryManager*" | Reset-AppxPackage The PowerShell scripts provide the most thorough reset with error handling and backup capabilities. The batch file is quickest for basic reset needs.
Write-Log "Re-enabling Windows Spotlight..." -Color Yellow Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" ` -Name "RotatingLockScreenEnabled" -Value 1 -Type DWord -Force timeout /t 5 /nobreak >nul exit Save as
Windows Registry Editor Version 5.00 ; Reset Windows Spotlight Settings [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\RotatingLockScreen] [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\LockScreen\Spotlight]