Usuário com melhor resposta
Alterar a conta de serviço para o componente Serviço do Windows - Cache Distribuído

Pergunta
-
Prezados,
Não estou conseguindo alterar a conta de serviço para o componente Serviço do Windows - Cache Distribuído via Administração Central do SharePoint e apresentou o seguinte erro: "O Serviço de Cache Distribuído não oferece suporte a esta operação da Administração Central. Use commandlets do Powershell do Sharepoint. "
Pesquisei a respeito e cheguei à página http://technet.microsoft.com/pt-br/library/jj219613(v=office.15).aspx#changesvcacct mas não consegui executar, estou no servidor como administrador da máquina.
Alguém tem um passo a passo mais detalhado de como faço para alterar ?
Respostas
-
Olá Sheila,
o artigo mencionado é correto.
Você deve utilizar o script abaixo para alterar o usuário (terceira linha):
$farm = Get-SPFarm
$cacheService = $farm.Services | where {$_.Name -eq "AppFabricCachingService"}
$accnt = Get-SPManagedAccount -Identity domain_name\user_name
$cacheService.ProcessIdentity.CurrentIdentityType = "SpecificUser"
$cacheService.ProcessIdentity.ManagedAccount = $accnt
$cacheService.ProcessIdentity.Update()
$cacheService.ProcessIdentity.Deploy()Obs.: O usuário de serviço novo deve ser registrado como conta gerenciada - http://blogs.technet.com/b/wbaer/archive/2010/04/11/managed-accounts.aspx
[]
Abraços
David
SharePoint Support Engineer
Blog: http://spinternals.blogspot.com.br/Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
- Marcado como Resposta Sheila Porto segunda-feira, 27 de outubro de 2014 17:50
Todas as Respostas
-
Olá Sheila,
o artigo mencionado é correto.
Você deve utilizar o script abaixo para alterar o usuário (terceira linha):
$farm = Get-SPFarm
$cacheService = $farm.Services | where {$_.Name -eq "AppFabricCachingService"}
$accnt = Get-SPManagedAccount -Identity domain_name\user_name
$cacheService.ProcessIdentity.CurrentIdentityType = "SpecificUser"
$cacheService.ProcessIdentity.ManagedAccount = $accnt
$cacheService.ProcessIdentity.Update()
$cacheService.ProcessIdentity.Deploy()Obs.: O usuário de serviço novo deve ser registrado como conta gerenciada - http://blogs.technet.com/b/wbaer/archive/2010/04/11/managed-accounts.aspx
[]
Abraços
David
SharePoint Support Engineer
Blog: http://spinternals.blogspot.com.br/Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
- Marcado como Resposta Sheila Porto segunda-feira, 27 de outubro de 2014 17:50
-
Obrigada pelo retorno, David.
Já executei todos esses comandos e no final sempre dá erro:
PS C:\Users\xxxxxxx> $cacheService.ProcessIdentity.Deploy()
Exception calling "Deploy" with "0" argument(s): "This operation uses the
SharePoint Administration service (spadminV4), which could not be contacted.
If the service is stopped or disabled, start it and try the operation again."
At line:1 char:1
+ $cacheService.ProcessIdentity.Deploy()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : InvalidOperationExceptionJá verifiquei o serviço e ele está iniciado no Gerenciador de Serviços da Administração Central.
Alguma idéia do que possa ser?
-
Sempre :)
Execute por favor o seguinte comando e compartilhe o resultado aqui:
sc query "spadminv4"
Abraços
David
SharePoint Support Engineer
Blog: http://spinternals.blogspot.com.br/Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
-
-
humm e net start "spadminv4"
Abraços
David
SharePoint Support Engineer
Blog: http://spinternals.blogspot.com.br/Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
-
-
Execute o comando como administrador :)
Abraços
David
SharePoint Support Engineer
Blog: http://spinternals.blogspot.com.br/Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
-
-
perfeito. Execute o script da primeira resposta novamente no PowerShell do SharePoint utilizando uma conta administrativa do SharePoint.
Abraços
David
SharePoint Support Engineer
Blog: http://spinternals.blogspot.com.br/Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
-
Realmente era esse o problema... eu estava logada com o usuário de administrador do farm e não da máquina... :(
Depois que executei, fui conferir no gerenciamento das credenciais da administração central e está certinho agora :)
Obrigada pela ajuda!
-
Sempre :)
Abraços
David
SharePoint Support Engineer
Blog: http://spinternals.blogspot.com.br/Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
-
Executei todos os comandos que foram falados, mas o erro persiste.
Mensagem de erro:
You cannot call a method on a null-valued expression.
At line:1 char:1
+ $farm = Get-SPFarm $cacheService = $farm.Services | where {$_.Name -eq "AppFabri ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull