How to: Create custom wallpaper collections in Windows 7

Do you love customizing your Windows desktop? If you do, you'll love this trick!

By default, Windows 7 includes several locations to choose pictures and desktop backgrounds from, such as Windows Desktop Backgrounds, Pictures Library, Top Rated Photos, and Solid Colors. In this article, I will walk you through the process of creating your own wallpaper collection through the registry, and how to customize it to your liking. This process will help you categorize and sort your wallpapers efficiently, and allow you to use a mix of categorized wallpapers with Windows 7's new automatic background shuffle without the need to lump everything together.

Disclaimer: The steps in this article involve modifying the Windows registry. Serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, review Microsoft Knowledge Base article 332756 (How to back up and restore the registry in Windows).

Step 1: Organize your wallpapers

The first step is pretty easy. You will need to create a folder hierarchy (figure 1) to place your different wallpapers in (such as %USERPROFILE%\Pictures\Abstract, %USERPROFILE%\Pictures\Nature, etc. - see figure 1), or tag your wallpaper images (figure 2) with categories (like Family Photos, Animals, etc).


(Figure 1 - A folder hierarchy containing various types of background images.)


(Figure 2 - Setting tag categories on images)

Step 2: Creating the registry entries for your wallpaper collection

  1. Click on Start, type "regedit.exe" in the Start Search field, and then press Enter.
  2. Provide consent or the appropriate credentials to User Account Control if prompted.
  3. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Wallpapers\KnownFolders.
  4. Right click on the KnownFolders key, click on New, and then click on Key. Name the new sub-key 1.
  5. In the 1 sub-key, create a new String Value (REG_SZ) and change its name to GROUPBY.
  6. Double click on the GROUPBY string value (REG_SZ) and set its value according to the following guidelines:
    • If your wallpapers are in a single folder and you are using tags to sort your wallpapers, set the value to System.Keywords.
    • If you are sorting your wallpapers using a hierarchy of multiple sub-folders, set the value to System.ItemFolderNameDisplay.
  7. In the 1 sub-key, create a new String Value (REG_SZ) and change its name to NAME.
  8. Double click on the NAME string value (REG_SZ) and change it to whatever you wish, for example "Personal Wallpaper Collection" - this is the name that will be displayed in Windows Explorer.
  9. Right click on the 1 sub-key, click on New, and then click on Key. Rename the sub-key to whatever you wish, such as Personal Wallpaper Collection.
  10. Right click on the sub-key that you just created (e.g. Personal Wallpaper Collection), click on New, and then click on Key. Name the new sub-key MergeFolders.
  11. Create a new String Value (REG_SZ), and change its name to equal the path of your wallpapers directory. For example, C:\\Users\\Kristan Kenney\\Pictures\\Desktop Backgrounds\\Abstract.
  12. Repeat step 11 for each additional folder of wallpapers that you wish to add to the collection.
  13. Close the Registry Editor.
  14. Log off and then log in in order for Windows Explorer to see the new wallpaper collection registry entries.

IMPORTANT: If you are using a folder hierarchy, you must include all of the sub-folders in the MergeFolders sub-key, as shown in figure 3:


(Figure 3 - the Windows Registry Editor, showing a list of sub-folders)

Step 3: Enjoy!
Right click on the Desktop, and then click on Personalize. When the Personalization window appears, click on Desktop Background, and then click on the drop-down next to "Picture Location". Click on your wallpaper collection that you just created, and then choose as many wallpapers as you want (figure 4).


(Figure 4 - A sample wallpaper collection)

But wait, that's not all!
In step 6, we went through the process of assigning a view method to the GROUPBY string value, such as System.Keywords (sort by Tags) or System.ItemFolderNameDisplay (sort by Folder name). There are other view methods available as part of the Windows Shell (Windows Explorer), such as System.RatingText (which will allow you to sort your images by rating). You can find many more to try in the online MSDN Library.

Please note, a lot of the System namespace shell properties are context specific, so there are a few that won't work, or will produce weird results. For example, using System.IsIncomplete or System.FlagStatusText will not do anything useful with your wallpapers.

Report a problem with article
Previous Story

Critical security patch for IE released, Win 7 RC affected

Next Story

Microsoft and Yahoo deal to be announced within 24 hours

27 Comments

Commenting is disabled on this article.

Why can't one simple "Wallpapers" library do the job? It just won't look in subfolders. But if I drop those same folders in Pictures library, it works. Microsoft and their exceptions.

I may be missing the point, but how is this different to just putting tagged images into your %SYSTEMROOT%\Web\Wallpaper folder?
Saves any messing with the registry. I added this folder to my pictures library to make it easy to browse/organise etc.

ThomMcK said,
I may be missing the point, but how is this different to just putting tagged images into your %SYSTEMROOT%\Web\Wallpaper folder?
Saves any messing with the registry. I added this folder to my pictures library to make it easy to browse/organise etc.

Because it saves you from modifying anything in the protected system directories. Limited users have no permissions to write to that directory whereas every user can follow the directions above since it only makes changes in the users local registry (not system wide like your %SYSTEMROOT%WebWallpaper).

Cool tip.

Libraries in Windows 7 are so useful. I already sorted wallpapers, photos, music and more using their ability to link to other locations...

Amazing how such a simple feature — one which should be do-able for the most basic of users — is locked behind a 14+ step process.

dancedar said,
Amazing how such a simple feature � one which should be do-able for the most basic of users � is locked behind a 14+ step process.

Lol, well put.

When I saw how identical this was to the information Kristan provided to try and help me out in this thread, I was about to accuse Neowin of plagiarizing and not giving credit. That's when I realized Kristan wrote the article.

Thanks again dude

I was wondering why there was no option to group by tags in the Desktop Backgrounds CP. Thanks!

I'm sure in a few days someone will come out with an App that can do this with less work needed by the user... seems like a fairly basic application to make

I had this question I think a month ago, but since that time, i've just clumped all the images together... Good to know for the future though

Or you can take all the folders you have wallpapers in and make a library of them. Browse to that library under desktop background settings.

You can do this, but it won't group them correctly in Windows Explorer in the "Desktop Backgrounds" control panel.

@ Nighthawk - what do you mean they won't group correctly? I actually do use this function - I created a library with pictures i want to shuffle as backgrounds and they show up fine in the folder as well as on the background. why bother changing registeries?

It shows the entire path of the folder name, and doesn't allow finer control of how images are sorted (via image tags, ratings, etc).