Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

How do I turn off thumbs.db in Windows 7?

Question:

In your article What is thumbs.db, and can I delete it? your fix did not work for me. I am on Windows 7. ‘Do Not Cache Thumbnails’ is not in my View Tab under Folder Options of Windows Explorer. Do you have a fix for Windows 7 for this issue?

Indeed, I do.

How you control thumbs.db has changed in Windows 7.

We’ll take a look at how to turn it off and review what it’s used for.

Become a Patron of Ask Leo! and go ad-free!

Thumbs.db

Thumbs.db is a cache file created by Windows Explorer when you view a folder in any of it’s “icons” view. It’s often a hidden file so you may not always see it unless you have the “view hidden files” option enabled.

The idea is that when the icons are created for you to view they’re saved, so that the next time you view the same folder Windows Explorer no longer has to actually create thumbnails – it can just pick them up from the cache. It’s a classic space/speed trade-off. For the cost of a little disk space, Windows Explorer can display things a little quicker.

Personally, I never use icon view in Windows Explorer. On those occasions where it accidentally happens, I don’t really want Windows Explorer to create the thumbs.db files. I don’t really care if Windows Explorer is going to be a little slower; I care more that my hard disk is not littered with these files.

Fortunately, it’s easy to turn off.

Turning Off Thumbs.db Creation

Type into the Windows 7 start menu’s search box (or into the Run dialog after pressing Windows Key + R), “gpedit.msc” and press Enter. This runs the “Local Group Policy Editor”, a tool which can be used to control many of Windows features and options.

Windows 7 Local Group Policy Editor

Expand on the left the following:

  • User Configuration
  • Administrative Templates
  • Windows Components

You should see something like this:

Windows 7 Local Group Policy Editor expanded to Windows Components

(I’ve made the left pane a little bigger and scrolled it up to show where we are.)

Scroll down in that left pane, and click on Windows Explorer:

Windows 7 Local Group Policy Editor expanded to Windows Explorer

If you look closely you can already see where we’re headed.

I’ll make that right pane a little bigger and you’ll see the setting we want:

Windows 7 Local Group Policy Editor showing cached thumbnail option

You can see that here it’s set to “not configured”, which means that it’ll take on the default setting, which is to cache thumbnails.

Double click on the item and you’ll get a (large) dialog in which to change the setting:

Windows 7 Local Group Policy Editor change setting dialog

Click on Enabled, then click on OK to make the change we want.

Windows 7 Local Group Policy Editor showing the changed cache setting

Enabled?

Yes, enabled.

This is one of those weird double-negative-like things:

  • The option is to turn off thumbnails.
  • We want that option enabled.

It’s tempting to go spelunking here in the policy editor, and in all honesty that’s a fine thing to do – as long as you look but don’t touch. There are settings here that can have unintended consequences. If you elect to make additional changes here just make sure you know what you’re doing first.

And of course have that system backup ready, just in case.  Smile

Do this

Subscribe to Confident Computing! Less frustration and more confidence, solutions, answers, and tips in your inbox every week.

I'll see you there!

23 comments on “How do I turn off thumbs.db in Windows 7?”

  1. If I remember correctly, gpedit.msc is only available in 7 Pro, Ultimate, and Enterprise. Is there a work-around for those using Starter, Basic, or Home Premium?

    I stumbled on to this in another forum – I’d appreciate hearing if this works for Win 7 Home users:

    Run this command (exactly):

      C:Windowsexplorer.exe shell:::{ED7BA470-8E54-465E-825C-99712043E01C}

    Scroll down and within “Administrative tools” I see a “Edit Group Policy”.

    (For those coming later, sadly it appears that this does NOT work.)

    Leo
    04-Sep-2010

    Reply
  2. Did some more research and found that in lieu of gpedit.msc it seems the only other alternative is to edit the registry. Microsoft has prepared an Excel spreadsheet that lists the policy settings for computer and user configurations included in the Administrative template file (admx/adml) delivered with Windows 7. The following link has several spreadsheet downloads. Select the one for Windows Server 2008 and Windows 7. Spreadsheet.

    You’ll need MS Office or an equivalent like Open Office to view the spreadsheet. Or, you can download a free Excel viewer from Microsoft: Viewer

    Go to Line 2803 for information re: Turn off the caching of thumbnails in hidden thumbs.db files. Hope this helps folks using Home Premium. As Leo always says, back up your computer before messing with the registry or your computer could wind up as an expensive paperweight.

    Thanks for the links Mary – these should be very useful to people who are comfortable making registry changes.

    Leo
    07-Sep-2010

    Reply
  3. The explorer invocation with the UUID does NOT offer a selection for editing group policy settings on Win 7 Home Premium. Too bad.
    -Al

    Reply
  4. Leo, sorry to say your fix (C:\Windows\explorer.exe shell:::{ED7BA470-8E54-465E-825C-99712043E01C}) didn’t come up with anything on my Win7 Home Premium 64-bit.

    To think that Microsoft would put out a workaround as an Excel spreadsheet (Quote from above: “Microsoft has prepared an Excel spreadsheet that lists the policy settings for computer and user configurations included in the Administrative template file (admx/adml) delivered with Windows 7.” and require that I download it and open it in Excel (what if I don’t have Excel — which I don’t) and play around like Macgiver just to disable a junky little feature like a thumbs database!!!!! If I didn’t have to use Windows I wouldn’t.

    Reply
  5. My search for gpedit.msc says “not found”. I’m running Win7-64 Home Premium. I ran an ‘Everything’ search which found four copies, in two different versions, in two different and wildly obscure Windows subdirectories. ???

    Tried running one of these and got a window saying “MMC could not create the snapin”. ??
    Not a big deal, but FYI.

    Reply
  6. Dear Leo,

    I have Win 7 Professional, 64 bit and gpedit.msc came up instantly when I followed your directions. I had no trouble enabling the command. Will the thumbs.db already created disappear and if not can I delete them without harm?

    Also, how can I eliminate all the index.dat files on my computer, even the hidden ones?

    Thank you,

    Francis

    You can safely delete thumbs.db. As to index.dat, it depends on which ones. Most are associated with Internet Explorer’s cache, and will probably come back if you delete them.

    Leo
    10-Sep-2010

    Reply
  7. Hi Leo; Reading the your reply to “How do I turn off thumbs.db in Windows 7?” I have a question. In Windows 7 has the name “Explorer” morphed into the name “Libraries?” Just wondering if Microsoft is trying to keep us on our toes

    No,Windows Explorer is Windows Explorer still. Libraries is probably a folder.

    Leo
    10-Sep-2010

    Reply
  8. At the risk of pointing out the obvious it may not be realised that accumulated thumbs.db can be deleted from the drive by selecting “disk properties ” then “disk clean up” and select “thumbs.db” in the options offered .

    They will return in this case.

    Leo
    10-Sep-2010

    Reply
  9. I’m using Windows 7. Are there any ways to save the cached thumbnail data in the folder where the photos are located as it was in Windows XP? Vista and Windows7 now save the thumbnail cached data in the User>Local>Explorer> etc… instead of storing the cached data in the folder where the photos are located as in XP. This would help because I have large-sized 700MB+ tiff files on my external hard drive that take a long time for the computer to process and cache. Every time I plug it into a new computer, the computer builds a new cache every time.

    So I want to know if there are any ways I could save the thumbnail database of my pictures in the folders where my pictures are located on external hard drive so they do not need to be recached for thumbnails every time I plug the external hard drive onto a new computer.

    Reply
  10. Hi Leo. i followed your instructions & even though it says “turn off the caching of thumbnails in hidden thumbs.db is enabled, my pc is still creating thumb.db files. I am running Win7 64 bit Ultimate.

    Reply
  11. i followed all the above steps a week ago…
    now , none of the thumbnails (neither image nor video) are LOADING !! … how can i get the thumbnails to show up again ? i tried disabling the turn off thumbnails cache IN HIDDEN THUMBS.DB ….. but ITS STILL NOT WORKING !!

    WHAT SHOULD I DO TO GET THE THUMBNAILS LOADING BACK AGAIN ???

    Reply
  12. Hello Leo,

    Re: webpage
    http://ask-leo.com/how_do_i_turn_off_thumbsdb_in_windows_7.html

    I am trying to turn off thumbs in Windows 7, but have failed at first hurdle.
    I type in “gpedit.msc”, and it replies,
    “Windows cannot find gpedit.msc”
    I used Windows+R and it says,”gpedit is not recognised as an internal or external command, operable program, or batch file”
    Please could you advise?

    Many thanks.

    You’re probably running Windows 7 Home edition which doesn’t have gpedit.msc. Some of the earlier comments on this article have alternatives.

    Leo
    18-Nov-2012
    Reply
  13. I have Windows 7 Homw Premium 64 bit and none of the above is in my Window 7 exists.
    “gpedit.msc” is Not found On Search.
    Can’t find any thing on “local group policy editor”

    Reply
  14. We have windows 7 professional, I have been able to follow all steps to “turn off caching thumbnails”, once I am in windows explorer, that option is not there. We are running windows 7 professional and because we have data in our network from windows xp, we have thumnails show up and we have not been able to delete them. There are whole files in the system that are empty excepts for the thumbs file and we would like to get rid of them, but cannot. What can I do?

    Reply
  15. Ah, but I use Windows 7 Home
    Premium, Leo. Policy Editor is not available.

    Is there an equivalent Registry entry to achieve this?

    Reply

Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.