Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.