How to change the Distributed Cache Service Managed Account

Categories: PowerShell, SharePoint
##Open SharePoint 2013 Management Shell
$NewAccount = 'DOMAIN\AccountName'
$Farm = Get-SPFarm
$CacheService = $Farm.Services | where {$_.Name -eq “AppFabricCachingService”}
$Account = Get-SPManagedAccount -Identity $NewAccount
$CacheService.ProcessIdentity.CurrentIdentityType = "SpecificUser"
$CacheService.ProcessIdentity.ManagedAccount = $Account

##For the deploy.. Execute the command below

    Leave a Reply

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

    This site uses Akismet to reduce spam. Learn how your comment data is processed.