; 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
function Backup-Registry $backupPath = "$env:TEMP\Spotlight_Backup_$(Get-Date -Format 'yyyyMMdd_HHmmss').reg" Write-Log "Creating registry backup: $backupPath" -Color Yellow reg export "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" "$backupPath" /y >$null reg export "HKCU\Software\Microsoft\Windows\CurrentVersion\Lock Screen" "$backupPath.append" /y >$null return $backupPath Write-Log "=== Windows Spotlight Reset Utility for Windows 11 ===" -Color Cyan Write-Log "Starting reset process..." -Color Cyan reset windows spotlight windows 11
REM Re-enable Spotlight reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v RotatingLockScreenEnabled /t REG_DWORD /d 1 /f >nul 2>&1 &1 net start LicenseManager >
# 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 : reset windows spotlight windows 11
REM Restart services net start WpnService >nul 2>&1 net start LicenseManager >nul 2>&1
Read-Host "`nPress Enter to exit" Save as ResetSpotlight.reg :
if (-not $SkipBackup) $backupFile = Backup-Registry Write-Log "Stopping Windows services..." -Color Yellow $services = @("WpnService", "LicenseManager", "wlidsvc") foreach ($service in $services) Stop-Service -Name $service -Force -ErrorAction SilentlyContinue Write-Log " Stopped: $service" -Color Gray 2. Kill and clear Windows Spotlight processes Write-Log "Clearing system cache..." -Color Yellow Get-Process -Name "SystemSettings*", "ShellExperienceHost*", "SearchApp*" -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue 3. Clear all Spotlight related directories $directories = @( "$env:LOCALAPPDATA\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets", "$env:LOCALAPPDATA\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\Settings", "$env:USERPROFILE\AppData\Local\Microsoft\Windows\Spotlight", "$env:USERPROFILE\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\AC\Microsoft\CLR_v4.0\UsageLogs" )