SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As part of farm configuration audit, I need to obtain the current content access account. While I've found several resources for setting the default content access account for search using PowerShell, I haven't been able to find any resources on where the property exists in the object model for query purposes. In 2007 it appears to be a property of the SPSearchService object, does anyone know where it exists in 2010?

share|improve this question
up vote 7 down vote accepted

I know that it can be accessed via Microsoft.Office.Server.Search.Administration.Content.DefaultGatheringAccount property. The Content object needs SearchServiceApplication instance which you can get from powershell.

Here is powershell script:

$searchApp = Get-SPEnterpriseSearchServiceApplication "Your Search Service Application Name"

$content = New-Object -TypeName Microsoft.Office.Server.Search.Administration.Content -ArgumentList $searchApp

Write-Host $content.DefaultGatheringAccount

Hope that helps.

share|improve this answer
That did it, thank you Ashish – webdes03 Nov 18 '11 at 23:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.