Change Distributed Cache Service Account

Share on facebook
Share on twitter
Share on linkedin

Change Distributed Cache Service Account

V: 1.0

Applies:
SharePoint 2013
SharePoint 2016

Issue

There are situations where you have to change the SharePoint Service Accounts. In SharePoint Central Administration website you go to Security > Configure Service Accounts under General Security section. Under Credentials Management drop down, choose Windows Service – Distributed Service. You will see the current account for the service.

SP2013_DistributedCache_ServiceAct_Chg_01

 

You want to change the service account under ‘Select an account for this component‘. You get error message when you try to change it.

Sorry, something went wrong
Distributed Cache Service does not support this operation from Central Administration. Please use SharePoint PowerShell commandlets
Correlation ID
Date and Time:

SP2013_DistributedCache_ServiceAct_Chg_02

 

 

Resolution

You use PowerShell to change the Service account for Distributed Cache Service. Use the following code in PowerShell Management console or in Windows PowerShell ISE.

# SharePoint PowerShell Script to change the Service Account for Distributed Cache
# Softvative.com
# Add SharePoint PowerShell Snapin
Add-PSSnapin microsoft.sharepoint.powershell

# Change the SharePoint Distributed Cache Service Account
$farm = Get-SPFarm
$cacheService = $farm.Services | where {$_.Name -eq “AppFabricCachingService”}
$accnt = Get-SPManagedAccount -Identity domain\PSFarmDev
$cacheService.ProcessIdentity.CurrentIdentityType = “SpecificUser”
$cacheService.ProcessIdentity.ManagedAccount = $accnt
$cacheService.ProcessIdentity.Update()
$cacheService.ProcessIdentity.Deploy()

 

SP2013_DistributedCache_ServiceAct_Chg_03

 

After executing t he PowerShell, you will see the account associated with the Windows Service – Distributed Cache on SharePoint Central Administration > Service Accounts page.

 

Leave a Reply

Sign up for Softvative Newsletter

Receive the latest technology and leadership news and resources from us

Subscribe To Softvative Newsletter

Get notified about new articles

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest