Please help if you can.
Central Admin reports an issue, in that the farm account should not be used for other services.
Failing service is SPTimerService (SPTimerV4).
Details indicate:
BOWLESRICE\sp_farm, the account used for the SharePoint timer service and
the central administration site, is highly privileged and should not be used for
any other services on any machines in the server farm. The following services
were found to use this account: Distributed Cache Service(Windows
Service)
I tried this Management Shell script:
$farm = Get-SPFarm
$cacheService = $farm.Services | where {$_.Name -eq "AppFabricCachingService"}
$accnt = Get-SPManagedAccount -Identity bowlesrice\SP_Services
$cacheService.ProcessIdentity.CurrentIdentityType = "SpecificUser"
$cacheService.ProcessIdentity.ManagedAccount = $accnt
$cacheService.ProcessIdentity.Update()
$cacheService.ProcessIdentity.Deploy()
But it errors with :
Exception calling "Deploy" with "0" argument(s): "cacheHostInfo is null"
at line:1 char:1
$cacheService.ProcessIdentity.Deploy()
* CategoryInfo: NotSpecifiedd: (:) [], MethodInvocationException
* FullyQualifiedErrorID : InvalidOperationException
I have tried logged in with local admin, SP_Farm, SP_Admin and SP_Services, and same error.
I checked and the windows service "AppFabricCachingService" was set to Disabled, and I tried setting to Automatic, and it denies access starting it using SP_Services, so I set the service to logon as "Local System Account" and it starts, but the script still faisl with same error.
I've tried about everything I can find.
Please help, and Thank You SO MUCH!