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?

1 Answer 1


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 


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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