Find your current wallpaper image path in Windows 10

The image you are using as the desktop background can be the one that ships by default with Windows 10, or some image from your personal collection. At Winaero, we have a huge set of themes with very beautiful wallpapers which you can download for free. Your background can also be set by any other app like your web browser or Bing Desktop which downloads images from the Internet. Once you notice an image you like on your Desktop, you might want to find its location on the disk drive so you can save it for further use.


Here is a script file (*.VBS) which can extract the file path of your current desktop background image from the Registry and show it to you. It is very useful, as the only thing you need is to do is double click the script.

Windows 10 keeps the path to the source image as a binary value in the Registry. When you set an image as your desktop background, it will be converted to match your screen and position preferences like fill, zoom, fit etc. The path to the source image is written in a binary value named TranscodedImageCache at the following Registry key:

HKEY_CURRENT_USER\Control Panel\Desktop

See the following screenshot:Windows 10 TranscodedImageCache

To extract the path of the image from the TranscodedImageCache value, you need to run this script:

Const HKCU = &H80000001 'HKEY_CURRENT_USER

sComputer = "."   

Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" _
            & sComputer & "\root\default:StdRegProv")

sKeyPath = "Control Panel\Desktop\"
sValueName = "TranscodedImageCache"
oReg.GetBinaryValue HKCU, sKeyPath, sValueName, sValue

sContents = ""

For i = 24 To UBound(sValue)
  vByte = sValue(i)
  If vByte <> 0 And vByte <> "" Then
    sContents = sContents & Chr(vByte)
  End If

CreateObject("Wscript.Shell").Run "explorer.exe /select,""" & sContents & """"

You can paste this text into Notepad and then save it as a VBS file. Alternatively, you can download the file from here:

Download VBS Script to display your current desktop background location

Extract it to any folder you want and double click it. Immediately the folder containing the wallpaper image will be opened and that image will be selected in File Explorer. This is how it looks in my case:Windows 10 fnd your wallpaper image

That's it.


19 thoughts on “Find your current wallpaper image path in Windows 10

  1. Mike Benton

    I would like to use a slightly different form of your program.
    I don’t need to know the location of the wallpaper, so all I need to do is to delete the last line of the program
    and then at this point just display the file name of the current wallpaper without the extension .jpg
    in a small window.
    This allows me to get a description of the current wallpaper by clicking on a shortcut for your program that is on
    the desktop. The file name for each of my wallpaper images is the description for that wallpaper.
    Could you please help me with the code I would need to do this?

  2. edhelldane

    If you’re using a slideshow on Windows 10: open Registry Editor via Windows+R, or start>run, and regedit

    Go to location HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\

    And search for Slideshow; which should take you to a location like “windows.immersivecontrolpanel_cw5n1h2txyewy\PersistedPickerData\windows.immersivecontrolpanel_cw5n1h2txyewy!\AppBackgroundSlideshow”

    There should be a “LastLocation” key on the right, open it… on the right there is a bunch of what appears to be junk with ….’s and weird characters, but within that is the last folder location of a picture used for the Windows Wallpaper. It’s just broken up a bit.

    Or, is you’re using just a picture, try this location:


    … and the key “CurrentWallpaperPath” or others

  3. John

    The wallpaper finder worked like a charm. Many thanks.

  4. Marcus

    Thanks a lot – the script works like a dream. Excellent post…

    1. Sergey Tkachenko Post author

      You are welcome.

  5. Braheem

    finder no longer works, just opens up “this pc”

    1. Jonattan Marbales

      It’s because the file was deleted

  6. Icy Pilgrim


    I’d like to set all PCs in a classroom to show one of my wallpapers. Could you modify this code to display PICTURE1.JPG on the selected PC?

    Thanks for the post


    1. Sergey Tkachenko Post author

      Use just a *.REG file with a group policy tweak.
      Or use Group policy.

      1. Icy Pilgrim

        Is that possible if they are not connected to a server?

        1. Sergey Tkachenko Post author

          The tweak will work for sure.

          1. Icy Pilgrim

            Sorry Sergey, I’m not very good at that. Could you give me a little code to start me off?


  7. Jacob

    Works like a charm. Thank you!

    1. Sergey Tkachenko Post author

      You’re most welcome Jacob.

  8. Dina

    I scoured the internet far and wide for a solution that shows me my current desktop wallpaper. Not one solution worked, regedit or otherwise. Until I found your script, that is -turns out my wallpaper was in a Firefox folder (whyever that is). Thanks so much!

  9. Richard

    Thanks! Very handy when using slideshow. Now if I can get it to send it to Google Images to find…

  10. Gamera

    This worked brilliantly on my own and my relative’s computers, thanks for the tip!

  11. Diana Clark

    I LOVE the wallpaper finder – I have my wallpaper set in Windows 10 so that it makes a random selection from all the photos on my desktop PC and displays a different image on each of my two monitors for one minute – timing is not synchronized. Problem is, your wonderful magic trick only identifies the wallpaper image on the right hand monitor. Can it be adapted to select either monitor image or otherwise adapted so that either image can be identified? Thank you again, I didn’t dare hope to be able to ID my wallpaper photos and have been spending time scrolling through a lifetime of (chronologically organized) photos (actually including photos of my forebears from the early 20th century) in the hope of finding an elusive image. Great work, thank you again.

    1. Steven J. Van Steenhuyse

      I have the same issue as Diana Clark – is there a way to identify the photos on both screens, or choose the screen on which I want the photo identified?


Leave a Reply

Your email address will not be published. Required fields are marked *