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

In the previous article, I have already explained How to solve this health analyzer issue

Accounts used by application pools or service identities are in the local machine Administrators group

But unfortunately, when I tried to change the distributed cache service account via Central Administration, by following:

  • Go to Central Administration > Security > Configure Service Accounts.

Configure Service Account

  • On the Service Accounts page > Select Windows Service –   Distributed Cache.

Service Accounts Component list.png

  • In the “Select an account” list > Choose an appropriate account for this component > OK.  I got the following error

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

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

In this hint, I will explain How to change the Distributed Cache Service account using SharePoint PowerShell Cmdlets by following the mentioned steps below:

  • Run SharePoint Management Shell as Administrator.

Run SharePoint Management Shell as Administrator

  • Run the following cmdlets one by one (don’t forget to update <domain\user> with your service account)
$farm = Get-SPFarm
$cacheService = $farm.Services | where {$_.Name -eq "AppFabricCachingService"}
$accnt = Get-SPManagedAccount -Identity <domain\user>
$cacheService.ProcessIdentity.CurrentIdentityType = "SpecificUser"
$cacheService.ProcessIdentity.ManagedAccount = $accnt
$cacheService.ProcessIdentity.Update()
$cacheService.ProcessIdentity.Deploy()
  • Go back to Central Administration > Security > Configure Service Accounts.

Configure Service Account

  • On the Service Accounts page > Select Windows Service –   Distributed Cache > Ensure that the service account has been updated successfully.

Enjoy 🙂

Advertisements

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

  1. Thanks for a great article . You covered the topic perfectly. Down to every important detail. Always greatly appreciated!!!

    Like

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 )

Google+ photo

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

Connecting to %s