15 thoughts on “How to: Change the Distributed Cache Service managed account 2013

  1. hi,
    I tried this but at the last step (deploy()) it keep telling me that it does not like deploy() without any arguments. the admin Service is running!

    Exception calling “Deploy” with “0” argument(s): “This operation uses the
    SharePoint Administration service (spadminV4), which could not be contacted.
    If the service is stopped or disabled, start it and try the operation again.”
    At line:1 char:1
    + $cacheService.ProcessIdentity.Deploy()
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : InvalidOperationException

    1. Sorry, my Bad!
      I used the wrong account to run this script -.-
      It worked with the local Administration Account.

  2. I appreciate these instructions on how to get this set using powershell.

    It really got me frustrated when I got the heath warning to change the account and it sent me to Service account config page as you say. and then directs me that I have to do that with powershell. So why does it even give me the option? The more I do stuff in SharePoint the more I cannot believe that it does such crazy things and people seem to be so happy that someone shows them how to jump the hurdles SharePoint puts in front of them.


    sorry just venting

    Mike J

    1. Michael, couldn’t agree more…! 🙂

      Imagine SharePoint without all the blogs…
      I like to call SharePoint as a Product ‘Consultant friendly’.

      But if I try to see why the product is the way it is, having been around SharePoint in different version for a very long time…
      I think that Microsoft has put priority on adding features in high demand and also on fixing some major functionality issues instead of fixing the ‘annoying’ isues. But, I would like to see for example a really good redesigned Farm Configuration Wizard…what if they made it useful and it helped you make all of this right from the beginning…? Just thinking out load…

      Regards // Thomas

  3. Thanks for the post.

    I get an error in the line “$cacheService.ProcessIdentity.ManagedAccount = $accnt $cacheService.ProcessIdentity.Update()” saying “Unexpected token ‘$cacheService’ in expression or statement”.

    I have copied the script and only changed the . Did I misunderstand something?

    Jakob Rohde

    1. Hi Jacob.
      Sorry for that, my bad! It’s supposed to look like this:
      $cacheService.ProcessIdentity.ManagedAccount = $accnt
      I have updated the post now, thanks!
      Try again and please let me know the outcome?
      Regards // Thomas

  4. I got the same error as Dirk just now:
    Exception calling “Deploy” with “0” argument(s): “Cannot start service
    AppFabricCachingService on computer ‘AUSDCSPT01.AD.OSN.COM’.”
    At line:1 char:1
    + $cacheService.ProcessIdentity.Deploy()
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : CmdletInvocationException
    Except for the Fully Qualified Error ID. I was using an admin account to run these commands and I changed the service to another admin account. Any thoughts would be helpful.

    1. Hi.
      Most likely it is in the form domain\username
      This can easily be checked, list the managed accounts you have by running:

      Good luck
      // Thomas

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s