Change the Service Account of a Sharepoint 2010 Service
This seems (and indeed it is) a trivial task. Just go to Sharepoint Central Administration >> Service Accounts
and choose the managed account for the available services in your farm. That’s fine. However if you have changed
the identity of a service to a domain account, then the list does not show the built-in account (local system for instance).
So how can you assign the built in account local system to Sharepoint Services?
Go to Sharepoint 2010 Management Shell
and use the following cmdlets:
$myservice= Get-SPServiceInstance | where {$_.TypeName -eq "put the service name here"}
$myservice.Service.ProcessIdentity.CurrentIdentityType = 0
$myservice.Service.ProcessIdentity.Update()
Note that you can see the list with the available service names by executing the Get-SPServiceInstance cmdlet.
Comments
Anonymous
September 12, 2010
<a href="microsoft.com">microsoft</a>Anonymous
October 21, 2010
If you change say the Farm service assignment from NETWORK SERVICE to say a Domain User called SP_Farm, would that work? Or does SP_Farm need to be setup in SQL Express, added as a managed account?Anonymous
November 12, 2010
One thing at a time. Yes you can use a domain user for the service. If the service requires a database (not all services require a database) then yes this account should have the necessary privileges in the database.