I'm in the process of Scripting a deployment of SharePoint 2010 and FAST.
Normally to set the Service Account of a SharePoint service one would use the ProcessIdentity property, like so:
$procId = (Get-SPSearchService).ProcessIdentity
$procId.CurrentIdentityType = "SpecificUser"
$procId.ManagedAccount = $myManagedAcount
$procId.Update()
This works a treat for the SearchService
object returned by Get-SPSearchService
, however the SearchService
object returned by Get-SPEnterpriseSearchService
has an additional ScriptProperty
that hides the ProcessIdentity
property, and returns it as a string, rather than an SPProcessIdentity
, which can't be updated.
So, The question:
Can I remove this ScriptProperty
? OR
Can I change the service account via PowerShell without access to the ProcessIdentity
Property?