Reset Windows Spotlight Windows 11 -
echo. echo Done! Please restart your computer. timeout /t 5 /nobreak >nul exit Save as Advanced-Reset-WindowsSpotlight.ps1 :
# Reset Windows Spotlight on Windows 11 # Run as Administrator Write-Host "Resetting Windows Spotlight..." -ForegroundColor Cyan Stop-Service -Name WpnService, LicenseManager -Force -ErrorAction SilentlyContinue 1. Clear Spotlight cache files $spotlightPaths = @( "$env:LOCALAPPDATA\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets", "$env:LOCALAPPDATA\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\Settings", "$env:USERPROFILE\AppData\Local\Microsoft\Windows\Spotlight" ) 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 timeout /t 5 /nobreak >nul exit Save as
foreach ($dir in $directories) if (Test-Path $dir) Remove-Item "$dir*" -Recurse -Force -ErrorAction SilentlyContinue Write-Log " Cleared: $dir" -Color Gray else New-Item -ItemType Directory -Path $dir -Force -ErrorAction SilentlyContinue Write-Log "Resetting registry entries..." -Color Yellow $registryPaths = @ "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" = @( "RotatingLockScreenEnabled", "RotatingLockScreenOverlayEnabled", "SubscribedContent-*", "RotatingLockScreenSpotlightOverrideEnabled" ) "HKCU:\Software\Microsoft\Windows\CurrentVersion\Lock Screen" = @( "RotatingLockScreenEnabled" ) "HKCU:\Software\Microsoft\Windows\CurrentVersion\CloudStore" = @( "DefaultAccount\Windows\CurrentVersion\CloudStore\DefaultStore\Cache*.cache" ) timeout /t 5 /nobreak >
REM Reset registry echo Resetting registry settings... reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Lock Screen" /v RotatingLockScreenEnabled /f >nul 2>&1 reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v RotatingLockScreenEnabled /f >nul 2>&1
