Eu desabilitei a autenticação de negociação para o serviço winrm no meu servidor executando:
winrm put winrm/config/service/Auth @{Negotiate="false"}
E agora eu posso executar qualquer operação com o winrm. Eu recebo o erro:
Message = The WinRM client cannot process the request. The WinRM client trie
d to use Negotiate authentication mechanism, but the destination computer (local
host:47001) returned an 'access denied' error. Change the configuration to allow
Negotiate authentication mechanism to be used or specify one of the authenticat
ion mechanisms supported by the server. To use Kerberos, specify the local compu
ter name as the remote destination. Also verify that the client computer and the
destination computer are joined to a domain. To use Basic, specify the local co
mputer name as the remote destination, specify Basic authentication and provide
user name and password. Possible authentication mechanisms reported by server:
Entendo o erro, mas o problema é que a única maneira que encontro na Web para habilitar a autenticação do Negociate é executando:
winrm put winrm/config/service/Auth @{Negotiate="true"}
O que obviamente dá o erro acima. Existe outra maneira de ativar a autenticação de negociação?
gpedit.msc
e selecioneComputer Configuration
->Administrative Templates
... #