Skip to content

Instantly share code, notes, and snippets.

@Postrediori
Last active February 2, 2025 08:38
Show Gist options
  • Save Postrediori/f89ab31d0f7e10b1e9c09a3ac779bc59 to your computer and use it in GitHub Desktop.
Save Postrediori/f89ab31d0f7e10b1e9c09a3ac779bc59 to your computer and use it in GitHub Desktop.
Some info about where Windows stores info on desktop wallpapers

Contents

Wallpaper paths

Wallpapers set from Photos app:

%LocalAppData%\Packages\Microsoft.Windows.Photos_8wekyb3d8bbwe\LocalState\PhotosAppBackground

Current wallpaper copy:

%APPDATA%\Microsoft\Windows\Themes\CachedFiles
%LOCALAPPDATA%\Microsoft\Windows\Themes\RoamedThemeFiles\DesktopBackground

Current wallpaper path:

HKCU\Control Panel\Desktop\WallPaper
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Wallpapers\CurrentWallpaperPath

History of wallpapers:

HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Wallpapers\BackgroundHistoryPath0
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Wallpapers\BackgroundHistoryPath1
...

Registry keys are duplicated in HKEY_USERS\S-1-5-...:

HKEY_USERS\S-1-5-...\Control Panel\Desktop\WallPaper
HKEY_USERS\S-1-5-...\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Wallpapers\BackgroundHistoryPath0
...

Standard wallpapers:

%windir%\Web
%windir%\Web\Screen
...

Photo app cache (may contain thumbnails for wallpapers):

%LocalAppData%\Microsoft\Windows\INetCache\thumbnails\normal

Windows Spotlight Paths

%LocalAppData%\Packages\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\AC\INetCache\
%LocalAppData%\Packages\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\LocalCache\Microsoft\IrisService\

Registry

Background type:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Wallpapers\BackgroundType

Values:

  • 0 - Picture
  • 1 - Solid color
  • 2 - Slideshow
  • 3 - Windows spotlight

Current wallpaper path:

HKEY_CURRENT_USER\Control Panel\Desktop\Wallpaper

Desktop color in RGB (with empty previous wallpaper path setting):

HKEY_CURRENT_USER\Control Panel\Colors\Background
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment