Search in all Filetypes in Windows when using Windows Search - gHacks Tech News

Search in all Filetypes in Windows when using Windows Search

The native Windows XP search functionality can search for file contents and not only for file names, but will only search registered file types by default. This is however limited to a selection of file types by default which may be too limiting for your taste.

The search ignores file types that are not registered for example and won't search in many plain text file types such as php, css or html files even though it is theoretically not a problem to do so if those are not registered.

Update: The preference discussed below is only available in versions of Windows prior to Windows 8. Microsoft removed the option in Windows 8 and later versions of the operating system. Microsoft recommends to use Windows Search instead for that. To have Windows search in file contents on Windows 8 and newer, select the Search tab in Windows Explorer after the initial search, and there  Advanced Options > File Contents.

windows search file contents

Here is a quick Registry hack that enables searching in all file types and not only a select few that Microsoft has enabled by default.

  1. Open your Registry with the keyboard shortcut Windows-R.
  2. Type regedit and hit the enter key.
  3. Navigate to the Registry key HKEY_LOCAL_MACHINE \SYSTEM\CurrentControlSet\Control\ContentIndex and double-click the entry FilterFilesWithUnknownExtensions.
  4. The default value of this entry is 0 which means that Windows will not search in unknown file extensions.

Set it to 1 to make the search more universal. Changes take effect immediately and Windows will from then on search all file types and not only those registered on the system This includes php and htm files for example which Windows does not search in by default.

You can restore the original functionality at any time by changing the value back to 0 again in the Windows Registry.

Please note that Microsoft has changed how search is working in Windows Vista. The tip because of that is only working for Windows XP systems and not for newer versions of the Windows operating system.

Vista's search -- and the search of newer versions of Windows -- uses filters to add content search support of specific file types to the search functionality.

You find a list of new search filters for newer versions of Windows here.

Summary
Search in all Filetypes in Windows when using Windows Search
Article Name
Search in all Filetypes in Windows when using Windows Search
Description
How to configure Windows to search in all file types and not only select file types when you are using Windows Search.
Author




  • We need your help

    Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

    We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats (video ads) or subscription fees.

    If you like our content, and would like to help, please consider making a contribution:

    Comments

    1. gnome said on November 19, 2007 at 8:10 pm
      Reply

      Smart and easy, thanks.

    2. Jeannie said on February 7, 2009 at 10:25 pm
      Reply

      would love to know how to rebuild filetypes in winexplorer, I keep making changes, but they never take.
      GRrrrr

    Leave a Reply