Read-Host "`nPress Enter to exit"
Save as 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
; Re-enable Spotlight [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager] "RotatingLockScreenEnabled"=dword:00000001 "RotatingLockScreenOverlayEnabled"=dword:00000001 "SubscribedContent-338388Enabled"=dword:00000001 "SubscribedContent-353698Enabled"=dword:00000001 Write-Log "=== Reset Complete
# 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. Go to: Settings > Personalization > Lock screen"
Write-Log "=== Reset Complete! ===" -Color Green Write-Log "Next steps:" -Color Cyan Write-Log "1. Restart your computer (recommended)" -Color White Write-Log "2. Go to: Settings > Personalization > Lock screen" -Color White Write-Log "3. Set 'Personalize your lock screen' to 'Windows Spotlight'" -Color White Write-Log "" Write-Log "Backup saved at: $backupFile (if not skipped)" -Color Gray
REM Re-enable Spotlight reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v RotatingLockScreenEnabled /t REG_DWORD /d 1 /f >nul 2>&1