The Windows Spotlight feature on Windows 11/10 is the main reason why you see the mesmerizing images on your Windows lock screen. This feature brings in new images of your interest to your lock screen to make it more beautiful. But sometimes, you may find that Windows Spotlight is not working properly due to various reasons. If you face such issues, you can reset the Windows Spotlight feature. It can be done by running a bunch of scripts using Windows PowerShell – but creating a .BAT file to run batch commands can make it work almost effortlessly.

How to reset Windows Spotlight in Windows 11
First, make sure Microsoft Edge is allowed to run in the background.
In Windows 11, open Edge Settings and do the following:

- Type edge://settings/system in the address bar, and press the Enter key
- Make sure that the Continue running background extensions and apps when Microsoft Edge is closed setting in turned ON.
Next open Windows 11 Settings > Personalization

Open Lockscreen settings and then then ensure that Picture or Slideshow is selected against Personalize your lock screen.
In Windows 10, open the Settings app and navigate to Privacy > Background apps.
From the list populated in the right-side panel, toggle Microsoft Edge and Settings switches to On.
Next, open Windows 10 Settings > Personalization > Lock screen and for the drop-down of Background, select either Picture or Slideshow.
Now, open Notepad, and copy and paste the following text-
:: Reset Windows Spotlight
DEL /F /S /Q /A "%USERPROFILE%/AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets"
DEL /F /S /Q /A "%USERPROFILE%/AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\Settings"
:: Re-register Windows Spotlight
PowerShell -ExecutionPolicy Unrestricted -Command "& {$manifest = (Get-AppxPackage *ContentDeliveryManager*).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest}"
Save the file with a .BAT extension.
To reset Windows Spotlight, run the batch file and let the commands to be executed.
Reboot your computer to reset Windows Spotlight.
Now change the Lock screen back to Windows Spotlight in Windows Settings > Personalization section.
Once this has been successfully done, you may if you wish, toggle the switches for Background apps to Off to reverse the changes.
These commands can be run standalone using the Windows PowerShell command-line – but making use of batch files wherever possible is the best choice.

