25% off on first invoice for all services*

SPRING SALE

Use coupon

*Offer valid for new customers only

25% off on first invoice for all services*

SPRING SALE

Use coupon

*Offer valid for new customers only

Need help?

Our experts have had an average response time of 11.43 minutes in March 2024 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

How to Reduce Windows.edb Huge File Size?

by | Oct 25, 2020

You can reduce the Windows.edb size through different ways that include defragmenting, removing, and re-creating, moving the windows.edb file into another drive and so on.

Here at Bobcares, we have seen several such Windows-related queries as part of our Server Management Services for web hosts and online service providers.

Today, we’ll take a look at how to reduce windows.edb size.

 

Know more about windows.edb file

The Windows.edb is a database file of the Windows Search index. It mainly provides content indexing, property caching, and search results for files, e-mail, and other content.

All the indexing process is done in the background by the SearchIndexer.exe process. So the size of the Windows.edb file increases when there are more files in the system.

By default, the Windows.edb file is located in the below path.

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

Here is the PowerShell command to check the current size of the Windows.edb file.

((Get-Item $env:programdata’\Microsoft\Search\Data\Applications\Windows\Windows.edb’).length/1GB)

 

How to reduce Windows.edb huge File Size

Now let’s take a look at how our Support Engineers reduce the file size of Windows.edb file.

 

1. How to Reset and Rebuild the Windows Search Index

This is one of the most appropriate, though not too effective ways to reduce the size of Windows.edb. This involves re-indexing the files in the system.

In order to do it, first, open Control Panel >> Indexing Options >> Advanced >> click Rebuild (to open this dialog box, run the following command: Control srchadmin.dll ).

Within a few minutes, the Windows Search will complete a full reindex of the data on the system drive. This will reduce the size of the edb file.

 

2. Reduce Windows.edb size using Defragmentation

The EDB database can be defragmented using the standard tool for maintaining such databases, esentutl.exe. You need to defragment the database offline. so first, stop the Windows Search service. Then run the below bat/cmd script.

sc config wsearch start=disabled
sc stop wsearch
esentutl.exe /d %ProgramData%\Microsoft\Search\Data\Applications\Windows\Windows.edb
sc config wsearch start=delayed-auto
sc start wsearch

Make a note that you have enough space in the hard drive, as a copy of the EDB file is created in it.

 

3. Remove and Recreate the Windows.edb file

You can safely delete the Windows.edb file if the free disk space is critical. It is safe because you don’t lose any data, instead only the search index is reset.

In order to delete the Windows.edb file, stop the Windows Search service, then delete the file and start the service.

net stop "Windows Search"
REG ADD "HKLM\SOFTWARE\Microsoft\Windows Search" /v SetupCompletedSuccessfully /t REG_DWORD /d 0 /f
del %PROGRAMDATA%\Microsoft\Search\Data\Applications\Windows\Windows.edb
net start "Windows Search"

Once you restart the Windows Search, it will start the background reindexing process and recreate the Windows.edb file.

 

4. Moving the Windows.edb file into a Different Drive

If the Windows.edb file size is growing constantly, then it is better to move the index database of Windows Search to another drive. So if there is an increase in the search database, it won’t cause the OS to crash.

So to change the index file location, go to Control Panel >> Indexing Options >> Advanced >> Index location >> New Location, specify the path to the new location of Windows.edb file, and click Ok.

Now restart the Windows Search service.

Restart-Service search

 

Windows.edb file size Keeps Growing

If the Windows.edb file continues to grow even after following the above methods, then try the below ones.

  • Try to run the built-in Windows 10 Search and Indexing Troubleshooter. For that, run the below command.
    msdt.exe -ep SystemSettings_Troubleshoot_L2 -id SearchDiagnostic
    In the list of issues, select “Search or indexing is slow”. The troubleshooting wizard will then try to get the Windows Search service back to the normal state;
  • Index only the content you need. Make sure to exclude items you are not looking for from the search index.
    First, click the “Modify” button in the indexing settings, and in the “Indexing Location” window, disable paths, and apps that you don’t want to be indexed. Rebuild the search index each time (Advanced -> Rebuild) after changing the index path settings.
  • If you are using Outlook with PST files on your computer, then when you index them, the size of the Windows.edb file grows in proportion to the size of the PST files. This can lead to running out of disk space and performance problems and also slow computer performance. In such a case, Microsoft recommends excluding Outlook from the list of indexed items.
  • If nothing helps and the Windows.edb file size keeps on growing then you can completely disable the wsearch service. Or you can also configure a login script that resets the search index on startup.

[Need any further assistance in fixing Windows errors? – We are here to help you]

 

Conclusion

In short, you can reduce windows.edb size through different ways that include defragmenting, removing, and re-creating, moving the windows.edb file into another drive and so on. Today, we saw all these ways to reduce the file size provided by our Support Engineers.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Categories

Tags

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF