Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone know if a particular piece of software that will enable me to control the time in which Windows 7 search feature indexes my hard drives? It would be awesome to have it only index the drives (or turn on the index service) between a couple of hours each day. It seems my drives want to index right at the worst possible moment when I am using them heavily.

Thanks.

share|improve this question
up vote 3 down vote accepted

There's no way to schedule the index without writing a script to stop and start the index. Fortunately, the script is quite basic.

Create 2 batch files:

StopIndex.bat

@ECHO OFF
NET STOP "Windows Search"
EXIT

StartIndex.bat

@ECHO OFF
NET START "Windows Search"
EXIT

Then go into your task scheduler and create a 2 separate tasks:

  1. Start Index: point the action to the StartIndex.bat file
  2. Stop Index: point the action to the StopIndex.bat file

Of Note: be sure to select the checkbox of "Run with highest privileges" under the General tab, otherwise the stopping and starting will fail.

share|improve this answer

There is a problem that when you stop windows search service, it starts after a while automaticaly

So i modified the scripts as follows

Start index

@ECHO OFF
sc config Wsearch start= delayed-auto
NET START "Windows Search"
EXIT

Stop Index

@ECHO OFF
sc config Wsearch start= disabled
NET STOP "Windows Search"
EXIT
share|improve this answer

The problem with stopping the windows search service is that it will not only stop indexing but also search queries will not be served either. I usually find it better to keep indexing running, but I set a low priority for the SearchIndexer.exe process from task manager (from normal->background).

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .