Disable Automatic Folder Type Discovery for Templates in Vista
When user opens a folder in Windows Explorer or other Computer, Pictures, Documents or Music (aka My Computers, My Pictures, My Documents or My Music in XP) explorer window in Windows Vista, Vista system will try to automatically detect and discover what, i.e. media or files, is inside the folder, then determine the folder type and set the view type accordingly. Also configured automatically is folder type template which shows and displays corresponding folder icon, picture, items’ details column and various commands and tasks in the Explorer toolbar.
However, automatic discovery of folder types in Vista is useful and helpful. However, the function does not work properly causing various errors when viewing files and folders list in Windows Explorer. The most typical problem is wrong type been set for a folder, for example, as “Pictures and Videos” for folder that does not have any photos, or “Music Details” for folder that does not have songs or MP3s. To make things worse, on system folders such as \Windows and system root drive under Vista, “Customize” tab has been removed due to User Account Control security limitation. Thus users cannot change or modify the folder type manually.
Thus if users prefer, they can set a registry key from tweak below to stop Windows Vista from from automatically discovering folder type for template and view. By doing this, Vista will be disabled from deciding for its own the type of the folder, which may ‘accidentally’ change what users have already configured for the folder. Thus, users’ customization for folder type and view will be remembered and used instead of been override by automatic default template Vista assigns to it.
IMPORTANT: To disable and turn off automatic folder type template discovery in Vista, users must reset folder type and view settings to default first. Then continue with following steps:
- In Registry Editor (regedit), navigate to the following registry branch:
HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell
- Right click on Shell in left pane, select New and then click Key.
- Type Bags to create a key named Bags, and press Enter.
- Right click on Bags that just been created, select New and then click Key.
- Type AllFolders to create a sub-key named AllFolders, and and press Enter.
- Right click on AllFolders that just been created, select New and then click Key.
- Type Shell to create another subkey named Shell, and then press Enter.
- Select Shell key that just been created, and then right click on an empty area in the right pane, click on New and then select String Value.
- Type FolderType as the value name, and press Enter.
- Right click on the Folder Type and click Modify or simply double click on FolderType.
- Type NotSpecified as its value data.
- Click OK.
After editing, the registry should looks like this:

Windows Vista automatic folder type discovery for template is now turned off.
If you prefer not to edit the registry yourself, download reset-vista-folders.reg in zip file format from the forum. It’s a 3-in-1 registry file that will reset all saved folder customizations on types and views, disable auto template type discovery for folders (which is shown in this article) and then increase folder settings memory size (BagMRU) to 10000. You can edit the registry file in Notepad to remove the BagMRU setting function. Note that you must reset existing folder settings before disable auto discovery of template type, so you cannot remove the first 2 registry hacks in the file. To apply it, double click on the registry file and restart the computer.
Related Articles
- Reset and Fix Broken Windows Vista File Ext and Type Associations (Include EXE, COM, SYS, ZIP, LNK, Folder, Drive)
- Delete and Reset Windows Vista Folder Views or Folder Types Settings to Default Clean State
- Fix Vista Unable or Fail to Remember or Save Folder Types/Views Setting Error by Increasing BagMRU Cache Memory Size
- Disable Automatic Opening or Saving of Downloads (Re-enable Always Ask Before Check Box)
- How to Disable and Turn Off Compressed Folder and ZIP Support in Vista (Including Cabinet File)
- Reset Always Ask Before Opening This Type Of File Check Box in Vista IE
- Turn On and Enable UPnP or Network Discovery in Windows Vista
- Change My Documents Folder Default Location Path in XP and Vista
- How to Change Folder Thumbnail Preview Picture in Windows Vista Explorer
- Prevent, Block and Disable Automatic Updates Install of Internet Explorer 7 (IE7) for Controlled Upgrade










































September 28th, 2009 11:10
It worked fine for me (Vista Ultimate x64)!
Thanks a lot!
August 26th, 2009 01:29
Is there anything similar in win2k3/xp? this thing is freaking me out cause i’m used to sort mp3 files by modified and with this thing on i don’t have that option.
Thanks
August 25th, 2009 03:40
Tried this, no luck, ideas? Running Vista Home Premium x64.
August 13th, 2009 22:31
[...] discovered the initial instructions on mydigitallife.info. Thank’s so much Had a hard time finding a guide for that. Tagged as: bagmru, bags, [...]
August 13th, 2009 02:22
In the past, Windows used to have bugs. Then came Vista, and it was filed under realistic AI. In case you ever wondered why Vista thinks your source code folders should be treated as music. Errae humanum est.
You folks definitely deserve a medal for this
one and the associated articles!
June 14th, 2009 00:24
I don’t know how to thank for this very physicology saving tip. Microsoft Help Center couldn’t answer this question when I called. Thanks again.(especially to the person who wrote this solution)
May 28th, 2009 23:42
Many many thanks for helping me disable yet another Microsoft blunder!
May 16th, 2009 13:09
Has anybody checked to see if this idiotic feature is in Windows 7? I reluctantly switched to Vista and this annoying feature is driving me nuts. What moron at Microsoft thought it would be a good idea? My kids are learning lots of colorful words to describe what their daddy thinks of Vista…
February 19th, 2009 15:13
Hallelujah!
January 12th, 2009 16:25
Dear Microsoft,
If you’re going to add a stupid feature that doesn’t work properly, please, at the very least, give us a nice simple little checkbox so we can disable it.
Thank you.
October 23rd, 2008 04:42
Thanks very much for this tip. As a new Vista user I was getting pretty frustrated with all the autodetection/template-imposition going on. I followed the steps (including the pre-requisite steps to nuke the Bags key, which was recreated upon reboot; just an FYI for anyone wondering), even nuked the “1″ key under the new Bags key, and now I’ve got good ol’ XP behavior back!
June 4th, 2008 04:43
Could you please post the relevant lines from the reg file. Thanks!