The location of the image is stored in the windows registry in folder HKEY_CURRENT_USER\Control Panel\Desktop under the key TranscodedImageCache but is unfortunately encoded in binary.
If Windows 11 Slideshow was used to set desktop background
%AppData%\Microsoft\Windows Photo Viewer\ ' Wallpapers' for default Windows wallpapers.' touchkeyboard' for colorful abstract backdrops in Windows 11 2.It will work for your last five wallpapers but nothing older. For example, if the wallpaper you’re looking for is no longer visible in the ‘Background’ tab in the Settings app, you can’t recover it. Note for Windows 10: The above locations have limitations. Use 'Open With' or 'How do you want to open this file?' dialogue box and select any image viewer, such as, 'Windows Photo Viewer' or the 'Photos' app. Note: The file TranscodedWallpaper in Path 2 does not have a file extension. %AppData%\Microsoft\Windows\Themes\TranscodedWallpaper %AppData%\Microsoft\Windows\Themes\CachedFiles A copy of the current wallpaper can be found by entering one of the below paths in Windows File Explorer address bar.