Windows 11 [new] - Reset Windows Spotlight
function Write-Log param([string]$Message, [string]$Color = "White") Write-Host "[$(Get-Date -Format 'HH:mm:ss')] $Message" -ForegroundColor $Color
# 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 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 function Write-Log param([string]$Message
echo. echo Done! Please restart your computer. timeout /t 5 /nobreak >nul exit Save as Advanced-Reset-WindowsSpotlight.ps1 : nul exit Save as Advanced-Reset-WindowsSpotlight.ps1 :