SharePoint 2016, Sharepoint 2013, Sharepoint 2010, Windows Server 2012, Sql Server 2012,2014,IIS, Active Directory,User Profile Service, Managed MetaData Service, Search Service, Topology, Web Application, IIS, Site collection, List, Library, PowerShell, office web app, Windows Authentication, NTLM, Kerberos, Saml, ADFS, Active Directory Import, MIM, The server farm account should not be used for other services /Distributed Cache. Change the service account for Distributed Cache – SharePoint

The server farm account should not be used for other services /Distributed Cache. Change the service account for Distributed Cache

This is annoying every time you login to Central Admin and you see this issue “The server farm account should not be used for other services” if you view it you will find which service is using the farm account.

In my Case it is Distributed Cache.

When the server farm is first configured, the server farm account is set as the service account of the AppFabric Caching service. The Distributed Cache service depends on the AppFabric Caching service.

If you try to change it VIA Central admin using the “Configured the services account”, you will see the below error.

 

Sorry, something went wrong

Distributed Cache Service does not support this operation from Central Administration. Please use Sharepoint Powershell commandlets.

Solution:
The only way to change the service account for the Distributed Cache is PowerShell. To change the service account of the AppFabric Caching service to a managed account:

  1. Create a managed account.
  2. Set the Managed account as the service account on the AppFabric Caching service. At the Windows PowerShell command prompt, run the following command:

$farm = Get-SPFarm
$cacheService = $farm.Services | where {$_.Name -eq “AppFabricCachingService”}
$accnt = Get-SPManagedAccount -Identity domain_name\user_name
$cacheService.ProcessIdentity.CurrentIdentityType = “SpecificUser”
$cacheService.ProcessIdentity.ManagedAccount = $accnt
$cacheService.ProcessIdentity.Update()
$cacheService.ProcessIdentity.Deploy()
Where Domain_name\user_name is the domain name and user name of the managed account.

 

Make sure to login with services accounts which have the right permission on the farm to run the powershell.​

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *