Correct way to disable indexing in Windows 7

What's the best way to disable indexing in Windows 7?

All of the articles that I've found online instruct me to access services.msc and disable the Windows Search service. However, even after I did that, when I right click properties of my C-drive, I notice the "Allow files on this drive...indexed..." is still checked.

So should I uncheck that option and re-enable Windows Search? Or just uncheck it and leave the Windows Search service disabled?


If your objective is to retain search functionality, but not to use indexes, you need to set up the following situation:

  • Turn off the indexing (to prevent an index being produced).
  • Delete the existing index (to prevent windows from using the index during searches).
  • Avoid re-enabling indexing.
  • Optional: enable the searching of file contents.

Turning off indexing

Start -> Run -> services.msc -> disable and stop Windows Search.

Ensure that the Startup type is set to disabled to prevent Windows from starting it again automatically.

Windows search service dialog box

Deleting the existing index

You can get the path to the search index from the following dialog box:

Control Panel -> Indexing Options -> Advanced

However since we have disabled indexing, it will be empty:

Empty Windows Search Properties dialog

But we can still look up the value in the registry:

  • Start -> Run -> regedit.exe
  • Browse to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Search
  • We need the value of the DataDirectory key:

Windows Search Registry Configuration

Delete the Search folder specified by that path.

Avoid re-enabling indexing

Beware that when you run a search, you will frequently see this popup:

Propt to turn on search indexing

If you enable this, the indexing service will be restarted, and Windows will start using the index for indexed locations. So don't do that if you don't want it to use the index.

Search file contents

You may want to turn on searching file contents:

Control Panel -> Folder Options -> Search Tab

Search file contents configuration


Don't bother for the checkbox "Allow files on this drive...". Even if it's checked, if the service is disabled, Windows won't index anything at all.

If you want, you can completely uninstall Windows Search, as explained in this tutorial (at maximumpcguides.com).

Screenshot of going to start - control panel - programs and features

Screenshot of seleting "Turn windows features on or off"

alt text


The previous two answers show you how to disable Windows search altogether. This also causes search boxes in various places to disappear, most notably the search box on the bottom of the Start menu and the search box at the top right of file explorers.

Personally, I like the search box in various places, I just don't want an indexing process to be running all the time. The main advantages of indexing are that it leads to faster searches, and to in-document searches and email searches. If you need neither of these, but want to keep Search in general, proceed as follows:

  1. Do not turn off Windows search, or switch it back on via OptionalFeatures.exe. (reboot if necessary).

  2. Go to the services control (either via Computer, right click, Manage; or by typing services.msc in the search box at the Start menu).

  3. Find the Windows Search service, right click, Properties and set it to disabled at start up.

  4. Reboot (not strictly necessary, but you won't be able to see whether it worked until you reboot).

Note that documents created after you do this will not be found by the search boxes. Windows search is based on indexes only and does not do the equivalent of a Unix find anymore (as it did in the Windows XP days).

You can occasionally switch on the Windows Search service and leave your computer on overnight to have it update the indexes.

A very good in-depth discussion of windows search can be found over at Wikipedia.