?
Solved

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

Posted on 2014-12-25
6
Medium Priority
?
1,710 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 97

Accepted Solution

by:
Experienced Member earned 2000 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 97

Expert Comment

by:Experienced Member
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 97

Expert Comment

by:Experienced Member
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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

752 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