3

In the Central Admin you are able to change a registered Service Account to a specified service (as in the image)

enter image description here

Is this possible to manage by PowerShell?

3

To set the account associated with a particular Service Instance using Windows PowerShell we simply get the ProcessIdentity property of the Service Instance and set its Username property. Once set we call Update() to update the Configuration Database and then Deploy() to push the change out to all Service Instances.

$pi = $svc.Service.ProcessIdentity 
if ($pi.Username-ne $username) { 
   $pi.Username= $username 
   $pi.Update() 
   $pi.Deploy() 
 } 

http://blog.falchionconsulting.com/index.php/2010/10/service-accounts-and-managed-service-accounts-in-sharepoint-2010/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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