четверг, 10 января 2013 г.

Как сменить аккаунт для distributed cache в SharePoint 2013

Странно, но через интерфейс админки SharePoint нельзя поменять учётку для distributed cache. При попытке смены пишет такую ошибку:


Sorry, something went wrong 
Distributed Cache Service does not support this operation from Central Administration. Please use Sharepoint Powershell commandlets. 


Лечится всё просто, через powershell, но почему в интерфейсе не сделали остаётся загадкой...


$farm = Get-SPFarm 
$cacheService = $farm.Services | where {$_.Name -eq “AppFabricCachingService”}
$accnt = Get-SPManagedAccount -Identity <ДОМЕНОМ\НОВЫЙ АККАУНТ>
$cacheService.ProcessIdentity.CurrentIdentityType = “SpecificUser”
$cacheService.ProcessIdentity.ManagedAccount = $accnt $cacheService.ProcessIdentity.Update()
$cacheService.ProcessIdentity.Deploy()

Комментариев нет: