Windows Vista · How-To
HOW-TO: Disable Automatic Folder Type Discovery
This is the original archived post. For the current, step-by-step way on today's Windows, see our up-to-date guide: Stop Windows 11 Folder View From Resetting.
By default, Windows Explorer in Windows Vista will try to automatically detect the contents of a folder and display the correct detail settings; however, in some situations you may wish to disable this behaviour and customise the view settings manually as desired.
This article applies to:
- Microsoft Windows Vista Home Basic, 32-bit and 64-bit
- Microsoft Windows Vista Home Premium, 32-bit and 64-bit
- Microsoft Windows Vista Business, 32-bit and 64-bit
- Microsoft Windows Vista Ultimate, 32-bit and 64-bit
- Microsoft Windows Vista Enterprise, 32-bit and 64-bit
Automatic method
The original post offered a downloadable command script
(disable_automatic_foldertype_discovery.cmd) that reset the Windows Explorer view settings and
then disabled automatic folder-content discovery in one step.
Editor's note: that download was hosted on the original site's file area, which is not part of this restored archive. The manual method below performs exactly the same steps, so nothing is lost — follow it directly.
Manual method
- Click on Start, and in the Start Search field type
REGEDIT, then press Enter. - If User Account Control prompts you, provide consent by clicking Continue or entering a password.
- In the left-hand pane, navigate to:
HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell - Right-click on the Bags sub-key and click Delete. When asked to confirm, click Yes.
- Right-click on the Shell sub-key, choose New, then Key. Name it
Bags(without the quotes). - Right-click the new Bags key, choose New → Key, and name it
AllFolders. - Right-click the AllFolders key, choose New → Key, and name it
Shell. - Select the Shell key you just created.
- In the right-hand pane, right-click an empty area and choose New → String Value.
- Name the new REG_SZ value
FolderType. - Double-click FolderType and give it a value of
NotSpecified(without the quotes). - Close the Registry Editor.
- Click Start, press the arrow next to the power buttons, and select Log Off.
- Log back in and customise your Windows Explorer folder view settings as desired.
Resetting Explorer back to default
If you would like to reset Windows Explorer back to the way it behaves by default:
- Click Start, and in the Start Search field paste the following command:
REG DELETE "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders" /f - Press Enter to execute the command.
Folder-content auto-discovery will be re-enabled on any folders that have not previously been opened.
The Bags and BagMRU keys that store per-folder view settings still exist in
Windows 10 and Windows 11, so the general idea — deleting them to reset Explorer's memory of folder views
— still works. What changed is the front-end: on modern Windows most people no longer need the manual
FolderType key at all. Instead, set the view you want on one folder, then use
View → Options → Change folder and search options → View → Apply to Folders to push it to
every folder of that type. If Explorer keeps reverting, deleting HKCU\Software\Classes\Local
Settings\Software\Microsoft\Windows\Shell\Bags and BagMRU and signing out clears the
cached templates. We have preserved the 2007 method above unchanged for accuracy.
Frequently asked
What is Automatic Folder Type Discovery in Windows?
It is a Windows Explorer feature, introduced in Windows Vista, that inspects the contents of a folder and automatically applies a matching view template — for example switching a folder to a music, pictures or documents layout based on the files inside it. It can override the column and view settings you set manually.
Does this Vista registry tweak still work on Windows 10 and 11?
The underlying Bags/BagMRU mechanism still exists in Windows 10 and 11, so deleting those keys still resets folder views, but the exact FolderType approach in this 2007 guide is written for Windows Vista. On modern Windows most people instead delete the Bags and BagMRU keys and use Folder Options to apply one view to all folders of a type, as described in the editor's note above.