Solved

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

Posted on 2014-12-25
6
1,081 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
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 
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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Vbscript 8 91
Making an alias 7 101
Recursively Delete Files 5 93
Batch File won't run on Windows Server 2012 R2 Task Scheduler 8 90
If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
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). …
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…

792 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