Solved

batch file to delete and rebuild index setting (Indexing Options)

Posted on 2014-12-25
6
1,025 Views
Last Modified: 2014-12-25
Hi,

I would like to know how to create a batch file that would delete and rebuild index setting (Indexing Options).

I normally do this manually but i would like to do the full operation trough a batch file.

I'm under windows 8.1.

Thanks for your help
0
Comment
Question by:Wilder1626
  • 3
  • 3
6 Comments
 
LVL 93

Accepted Solution

by:
John Hurst earned 500 total points
ID: 40517624
Here is the registry key that resets the index so it will rebuild.

http://brandonlive.com/2007/04/20/faq-how-to-completely-reset-wds-windows-search/

Changing the key to 0 will cause the rebuild.

So then make a batch file to include a reg command (file) and run it to rebuild the index.

I do NOT recommend it as (a) I do not need to rebuild the index except maybe once a year and (b) using Control Panel to rebuild is a deal safer.

Good luck.
0
 
LVL 11

Author Closing Comment

by:Wilder1626
ID: 40517639
Thanks for your advice.

I will keep on doing it manually then.

It is just weird that every week, i need to rebuild the Index as the hard drive gets full and when i rebuild it, it release almost 50% of the HD.
0
 
LVL 93

Expert Comment

by:John Hurst
ID: 40517645
@Wilder1626  - Thanks.  

Here is the Windows Search location.  

C:\ProgramData\Microsoft\Search\Data\Applications\Windows

My index is just over 2 GB  (on a 500 GB hard drive) so its size is fine for me. You may be indexing more things.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 11

Author Comment

by:Wilder1626
ID: 40517660
Yesterday, i did a rebuilt and today, my Windows.edb is again at 13.6 GB so far.
0
 
LVL 93

Expert Comment

by:John Hurst
ID: 40517662
Thanks for the update. I have 100,000 items indexed so you are using more items than me.
0
 
LVL 11

Author Comment

by:Wilder1626
ID: 40517665
and the funny thing is that i only have a 120 GB HD.  This is why it gets full pretty quick.

I wonder if this is a problem with windows 8.1? I'm not the only one.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a little timesaver I have been using for setting up Microsoft Small Business Server (SBS) in the simplest possible way. It may not be appropriate for every customer. However, when you get a situation where the person who owns the server is i…
Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question