我已通过执行以下命令来禁用服务器上Winrm服务的协商身份验证:
winrm put winrm/config/service/Auth @{Negotiate="false"}
现在,我可以使用winrm执行任何操作。我得到错误:
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:
我理解该错误,但是问题是,我在网上找到启用协商身份验证的唯一方法是执行以下命令:
winrm put winrm/config/service/Auth @{Negotiate="true"}
当然哪个会出现上述错误。还有另一种启用协商身份验证的方法吗?
gpedit.msc
,然后选择Computer Configuration
- >Administrative Templates
...