Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

4 Answers

up vote 2 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
add comment

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
add comment

Have you trued using Task Scheduler to run it or try using AutoIt v3 which works well and I have tried them both.

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.