Index location and temp file location in SharePoint 2019

Tanmoy Das 806 Reputation points
2021-05-07T08:09:12.653+00:00

Hi Guys,

I need to know the index location and temp file location for SharePoint 2019 using PowerShell.
Can any one please share

Thanks

Microsoft 365 and Office | SharePoint Server | For business
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Elsie Lu_MSFT 9,801 Reputation points
    2021-05-10T03:04:25.743+00:00

    Hi anonymous user ,

    To find the index location:

    $essi = Get-SPEnterpriseSearchServiceInstance  
    $cc = $essi.Components | ? { $_.GetType().Name -eq 'CrawlComponent' }  
    $cc.IndexLocation  
    

    Regarding the temp file location, usually we use Office to open SharePoint files, SharePoint would download a temp file in the local profile on machine. Theoretically, Office will delete all of its temporary files when we exit the program. However, these temporary files might be left if Word hangs, if we exit the program abnormally.

    References:
    What is the search Index file location
    Regarding SharePoint File Temporary files


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.