PowerShell: Changing the Distributed Cache Service Managed Account

Changing managed account used for “Distributed Cache Service” is one of the things that cannot be done using the SharePoint Central Administrator. So as central admin advises you navigate to Security -> General Security -> Configure Service Accounts, find the “Distributed Cache Service” and select another managed account, it gives this following message.


What you have to do is open SharePoint Management Shell and run the following PowerShell script. Don’t forget to change <domain\user> with your managed account you want to use for Distributed Cache.

$farm = Get-SPFarm
$cacheService = $farm.Services | where {$_.Name -eq “AppFabricCachingService”}
$accnt = Get-SPManagedAccount -Identity <domain\user>
$cacheService.ProcessIdentity.CurrentIdentityType = “SpecificUser”
$cacheService.ProcessIdentity.ManagedAccount = $accnt


Leave a comment

Your email address will not be published.

%d bloggers like this: