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 &gt

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

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Unknown
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Stripe
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Matomo
Accept
Decline
Google Analytics
Accept
Decline
Snowplow
Accept
Decline
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Facebook
Accept
Decline
Save