Move SharePoint 2013 search temp folder

How to change SharePoint 2013 temp folder for search gatherer
Create a temp folder on a specific location. Example: D:\TempSearch
Log into sharepoint search server and open powershell as administrator
Run the following, where [GUID] is the guid of your search component, which you can find under the regedit location, “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\15.0\Search\Components”

$newtemppath = “D:\TempSearch”

$GatheringManagerPath = “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\15.0\Search\Global\Gathering Manager”

$AdminComponentPath = “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\15.0\Search\Components\[GUID]”

$CrawlComponentPath = “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\15.0\Search\Components\[GUID]-crawl-0”

Set-ItemProperty -Path $GatheringManagerPath -name DefaultApplicationsPath -Value $newtemppath

Set-ItemProperty -Path $AdminComponentPath -name LocalStoragePath -Value $newtemppath

Set-ItemProperty -Path $CrawlComponentPath -name LocalStoragePath -Value $newtemppath

Restart-Service OSearch15

Do this for all servers that use Search
Remove/Rename the original components at “C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\Applications\{both admin and crawl components}”
Run a Full Crawl and you’re done!

Leave a Reply

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