Stopping Microsoft Search from eating my hard drive

62

24

I have Windows Vista on a machine and I noticed quite a bit of hard drive was disappearing. I ran a utility to show me where it all went. I found the following directory consumes over 2GB of space: C:\ProgramData\Microsoft\Search\Data\Applications\Windows.

The Microsoft Search service is now disabled, but I want it removed completely. I see nothing on Add/Remove Programs. Also, will I get blue screens if I delete this directory?

User1

Posted 2009-10-24T12:13:17.783

Reputation: 7 653

Answers

71

Here's what I had to do:

  • open services.msc
  • Stop the Windows Search service (I was this far already).
  • Rename C:\ProgramData\Microsoft\Search\Data\Applications\Windows\Windows.edb
  • Start the Windows Search service
  • The directory rebuilds Windows.edb (34 MB initial size in my case)
  • Open Control Panel / Indexing Options
  • Wait a long time for buttons to become enabled
  • Click Modify
  • Uncheck Users directory or whatever else you don't want indexed (I left Start Menu enabled because it's so small)
  • Click Ok
  • Stand on your head and count to three while drinking water with a straw. (not sure if this part is necessary but I wanted to try everything I could)

It now says indexing complete with only 800 or so items. Total size of the directory is now just over 48 MB. Pretty large index if you ask me, but better than 2 GB.

User1

Posted 2009-10-24T12:13:17.783

Reputation: 7 653

Another option is simply to move the Search Index to another disk with more available capacity: in the Indexing Options control panel item, click the Advanced button, and on the Index Settings tab, the Index Location may be changed. It appears that changing the location and clicking OK causes Windows to move the index file immediately, despite implying that the service must be restarted for the change to take effect. – Ben Johnson – 2019-02-28T19:58:54.397

Instead of renaming/deleting it and forcing a rescan of your disk, you could try defragging it: https://support.microsoft.com/en-gb/help/2838018/the-windows-edb-file-grows-very-large-in-windows-8-or-windows-server-2 - esentutl.exe /d %AllUsersProfile%\Microsoft\Search\Data\Applications\Windows\Windows.edb

– mwfearnley – 2020-02-25T17:07:27.997

15

Open an administrator command prompt and type

net stop "Windows Search"
del %PROGRAMDATA%\Microsoft\Search\Data\Applications\Windows\Windows.edb
net start "Windows Search"

Repeat when needed.

deskicio

Posted 2009-10-24T12:13:17.783

Reputation: 159

5But what's the point of doing this? Again and again... That's like emptying a bucket under a hole in your roof instead of fixing that hole. Why would you do that unless you enjoy emptying a bucket? If you don't want to have a big search index and you don't use the Search feature, simple uninstall it or remove some directories from the search indexer. – Dawid Ferenczy Rogožan – 2016-02-29T11:35:51.560

Instead of renaming/deleting it and forcing a rescan of your disk, you could try defragging it: https://support.microsoft.com/en-gb/help/2838018/the-windows-edb-file-grows-very-large-in-windows-8-or-windows-server-2 - esentutl.exe /d %AllUsersProfile%\Microsoft\Search\Data\Applications\Windows\Windows.edb

– mwfearnley – 2020-02-25T17:08:13.433

6

Control Panel\All Control Panel Items\Programs and Features\Turn Windows features on or off/ then unchek windows search

Trickster

Posted 2009-10-24T12:13:17.783

Reputation:

This should be the correct answer – pepan – 2017-11-02T10:32:05.067

4

To delete and rebuilt the index :

  1. Control Panel\All Control Panel Items\Indexing options
  2. Click Advanced
  3. under Troubleshooting, click rebuilt

You may want to change which folder you wish to include in the index before doing step 3. For that in step 2 instead of clicking Advanced, select Modify

MagTun

Posted 2009-10-24T12:13:17.783

Reputation: 746

1

On Windows 10, there is now a menu explicitly for this.

  • Open Indexing Options
  • Click Modify
  • On this new window, you can click on the items in the bottom panel and uncheck their subfolders in the top panel
  • Once you are satisfied with your new indexing options, click OK to go back to the previous window
  • Click Advanced
  • Click Rebuild in the Troobleshooting section

Doing this I managed to cut down from 1.5GB to 10MB by only keeping the Start Menu indexed (I could have kept some document folders too but I wanted to drastically optimize).

Linkyu

Posted 2009-10-24T12:13:17.783

Reputation: 111

1thank you , that was that I'm looking for – Sérgio – 2020-02-08T00:29:59.380

1

If you open the search tool and then click on the "details" drop down on the right hand side (next to the "?" icon) there's a menu called "Search Options..". Open that dialog and you can modify which folders are being indexed.

By removing folders from the Indexed Locations (by clicking on "Modify") the indexer will remove the data associated with these folders thus freeing up your disk space.

ChrisF

Posted 2009-10-24T12:13:17.783

Reputation: 39 650

0

Those that wish to keep Windows Search working, but don't want the index file taking up space on the boot drive, can change the location the index is located.

Launch Indexing Options, click Advanced, and - in the Index location panel, populate the New location, after service is restarted to a folder on another disk drive.

You'll have to restart the service (or restart your pc if you find that easier) in order for the change to take place.

testworks

Posted 2009-10-24T12:13:17.783

Reputation: 131

-2

I think I actually solved it, at least on my machine. EDGE that blood sucker... turn of sync options in edge browser... it has a feature called sync on all devices that uses your windows login that override everything else :-(

pal2056

Posted 2009-10-24T12:13:17.783

Reputation: 1

2Given that this question was asked in 2009, it cannot have been caused by Microsoft Edge, which was first released in 2015. – Scott – 2019-03-04T00:02:37.650