Solved

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

Posted on 2014-12-25
6
865 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 90

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 90

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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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 90

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
TXT to PDF help needed 26 84
zeroMAx challenge 20 76
Run command in each subfolder using batch file 7 24
Making an alias 7 52
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
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.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now