Get-AppxPackage -AllUsers Microsoft.Windows.ContentDeliveryManager |
ForEach-Object {
Add-AppxPackage -Register "$($_.InstallLocation)\AppxManifest.xml" -DisableDevelopmentMode
}
The AI will believe most of the screenshots it sees. Don't forget to check your hosts file and give it time to update the wallpaper. If you're behind a firewall or access to Spotlight is restricted by a security application, that would be one reason it is not working: Lock screen Windows Spotlight not working, maybe account windows related? - Microsoft Q&AView attachment 106931
Windows spotlight won't work, it keeps displaying the windows blue screen. It seems like all the other images of nice places are gone.
Someone got a soulotion for this problem?
I have walked through your steps but there are 2 things, the assets map was already empty and i don't see a settings map. It looks like all wallpapers from Spotlight are deleted and the service doesn't load any new one. I am connected trough vpn, tryed it also with offline.Short diagnosis
That blue screen is the Spotlight fallback when the content delivery app fails. Usually a reset fixes it (corrupt cached images or the ContentDeliveryManager app). Tell me which Windows version you have (Windows 10 or 11?) and I’ll tailor the steps — meanwhile try the quick fix below.
Quick test (1–2 min)
- Settings > Personalization > Lock screen.
- Change Background to "Picture" (pick any image), lock the PC (Win+L) to confirm it shows.
- Change Background back to "Windows Spotlight", then lock again.
If that brings pictures back, great. If not, continue.Reset Spotlight cache (safe, common fix)
- Open File Explorer and enable hidden items.
- Paste this path in the address bar and press Enter:
%userprofile%\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState- In the Assets folder: delete all files.
In the Settings folder: delete roaming.lockstate (or rename the whole Settings folder to keep a backup).- Lock the PC or sign out and sign in (or reboot). Spotlight should repopulate new images.
If that doesn't work — re-register the app
Open PowerShell as Administrator and run:
Then reboot.Code:Get-AppxPackage -AllUsers Microsoft.Windows.ContentDeliveryManager | ForEach-Object { Add-AppxPackage -Register "$($_.InstallLocation)\AppxManifest.xml" -DisableDevelopmentMode }
Other checks
If those steps don’t fix it, tell me:
- Make sure you have internet access and that "Background apps" are allowed.
- If this is a company-managed PC, group policy or registry might block Spotlight. If so, ask your admin or check for policies under Computer Configuration → Administrative Templates → Windows Components → Cloud Content.
- Before editing the registry or policy, create a restore point.
- Exact Windows version (Settings > System > About or run winver), and
- I can also look at the screenshot you attached and walk through more advanced registry/policy checks.
ndows.ContentDeliveryManager | Format-List Name,PackageFullName,InstallLocationThanks — that screenshot and info help. Since the Assets folder is already empty and there’s no Settings folder, Spotlight isn’t populating for some reason (package missing, policy/registry disabled, or system files broken). Try the steps below in order and paste the output of the specific commands I request if anything fails.
Before you start: run PowerShell as Administrator (right-click Start → Windows Terminal (Admin) or PowerShell (Admin)). Make a restore point if you’re unsure.
1) Check whether the Spotlight package exists
Run:
Get-AppxPackage -AllUsers Microsoft.Windows.ContentDeliveryManager | Format-List Name,PackageFullName,InstallLocation
- If you get no output, the package is missing. Copy whatever output you get and paste it here.
2) Re-register (repair) the ContentDeliveryManager package
If the package exists, run (Admin PowerShell):
Get-AppxPackage -AllUsers Microsoft.Windows.ContentDeliveryManager |
ForEach-Object { Add-AppxPackage -Register "$($_.InstallLocation)\AppxManifest.xml" -DisableDevelopmentMode }
Then reboot and test Spotlight.
3) Repair system files (if re-register fails or package missing)
Run these (Admin PowerShell or CMD):
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
Reboot and retest Spotlight.
4) Ensure Spotlight is allowed in the registry (check & set)
Check current keys:
reg query "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"
If you see keys set to 0 or keys missing, enable these (Admin CMD/PowerShell):
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v RotatingLockScreenEnabled /t REG_DWORD /d 1 /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SubscribedContent-338389Enabled /t REG_DWORD /d 1 /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v ContentDeliveryAllowed /t REG_DWORD /d 1 /f
Sign out/in or reboot after changing these.
5) VPN / network / account checks
6) Recreate the LocalState folder contents (if Assets & Settings missing)
- Fully disconnect the VPN (not just “offline mode”) and test — some VPNs block MS CDN.
- Sign in with a Microsoft account (if you’re using a local account) or try switching account to test.
- Create a quick test local user to see if Spotlight works there: (Admin PowerShell)
net user TestSpotlight P@ssw0rd! /add
Sign into that account and set Lock screen → Windows Spotlight.
7) If nothing works — final options
- In File Explorer go to:
%userprofile%\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState- If there is no Settings folder, create one named Settings. (If Assets is empty that’s OK; Spotlight will repopulate once service runs.)
- Then re-register the package (step 2) and reboot.
What to send back to me (copy/paste):
- Try an in-place repair install of Windows 11 (keeps files/apps). I can give steps if you want.
- As a last test, create a new Windows user (or test on another PC) to confirm it’s not account-specific.
I’ll take it from there based on those outputs.
- Output of the Get-AppxPackage command from step 1 (or say “no output”).
- Output of reg query "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"
- Tell me whether Spotlight works when you fully disconnect the VPN and whether you tried the TestSpotlight account.
Good — the package is present and DISM / SFC look clean. That rules out a damaged system image or a missing app; Spotlight still can fail if policies/permissions or networking/VPN block the ContentDeliveryManager from downloading or writing images. Two quick facts: Spotlight stores images under the ContentDeliveryManager LocalState\Assets path, and admins/policies can disable it.
Do these three checks and paste the outputs here:
1) Check the user registry settings for Spotlight
2) Check for a policy (which would block Spotlight)
- Run in an elevated PowerShell / CMD:
reg query "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"- Paste the full output.
3) Verify LocalState folder permissions (the app must be able to write there)
- Run:
reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent"- If that key or values exist, paste the results here.
What I’ll do with those results
- Run (in PowerShell/CMD):
icacls "%LocalAppData%\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState"- Paste the output. If you created a Settings folder already, include its icacls too:
icacls "%LocalAppData%\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Settings"
One more thing before you run those: fully disconnect the VPN (not just “offline”) and temporarily disable third‑party firewall/AV while testing — some VPNs/firewalls block Microsoft CDN endpoints so Spotlight can’t download images. After the checks above I’ll give the next repair commands.
- If HKLM\Policies has blocking values I’ll give exact commands to remove them (or to show what to ask your admin).
- If HKCU keys are 0/missing I’ll give the reg add commands (you can run them yourself).
- If LocalState/Settings permissions look wrong, I’ll give an icacls command to restore SYSTEM and your user write access.
PS C:\Windows\system32> New-Item -ItemType Directory -Path "$env:LOCALAPPDATA\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Settings"Good — thanks for the outputs. Those results are useful:
If you’re OK to try one more short set of commands, run these (copy‑paste into an elevated PowerShell):
- Your HKCU ContentDeliveryManager keys show Spotlight enabled (RotatingLockScreenEnabled = 1, ContentDeliveryAllowed = 1), and there’s no blocking policy under HKLM\Policies.
- Your LocalState folder has correct permissions, but the Settings subfolder is missing (so the ContentDeliveryManager can’t place its state files there). Spotlight images are cached under the LocalState\Assets path, and creating the missing Settings folder often lets the app start writing files again.
1) Create the missing Settings folder:
New-Item -ItemType Directory -Path "$env:LOCALAPPDATA\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Settings"
2) Ensure your user has full access to it:
icacls "$env:LOCALAPPDATA\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Settings" /grant "%USERNAME%OI)(CI)F"
3) Re-register the ContentDeliveryManager package (repair):
Get-AppxPackage -AllUsers Microsoft.Windows.ContentDeliveryManager | ForEach-Object { Add-AppxPackage -Register "$($_.InstallLocation)\AppxManifest.xml" -DisableDevelopmentMode }
4) Fully disconnect your VPN and temporarily disable any third‑party AV/firewall, then reboot:
Restart-Computer
After reboot, stay connected to the internet for 10–15 minutes and then check:
If that doesn’t fix it, run this quick connectivity test while the VPN is off (PowerShell):
- %LocalAppData%\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets — do new image files appear?
- Lock the PC (Win+L) to see if Spotlight images show.
Test-NetConnection www.bing.com -Port 443
Paste the results (or say what you saw) and I’ll give the next step. If you’d rather not run these commands yourself I can guide you step‑by‑step over a remote session (Quick Assist, Chrome Remote Desktop or AnyDesk). Which do you prefer?
icacls "$env:LOCALAPPDATA\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Settings" /grant "$($env:USERNAME):(OI)(CI)F" /T
$me = whoami
icacls "$env:LOCALAPPDATA\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Settings" /grant "${me}:(OI)(CI)F" /T
Get-AppxPackage -AllUsers Microsoft.Windows.ContentDeliveryManager |
ForEach-Object { Add-AppxPackage -Register "$($_.InstallLocation)\AppxManifest.xml" -DisableDevelopmentMode }
Restart-Computer