所以我有机器:
客户端机器: Windows 7在域A服务器上: Windows 2008 R2 on域B,运行winrm quickconfig后
我使用以下命令作为测试脚本:
winrs /r:Servername /u:<domainA/ylogin> /p:<mypassword> ping 127.0.0.1
然而,当我尝试这样做的时候,我得到了WinRM cannot process the request. The following error occurred while using Kerberos authentication: The network path was not found.。
当我尝试用Servername替换<ipaddress>时,会得到一个不同的错误:
Winrs error:The WinRM client cannot process the request. Default authentication may be used with an IP address under the following conditions: the transport is HTTPS or the destination is in the TrustedHosts list, and explicit credentials are provided. Use winrm.cmd to configure TrustedHosts. Note that computers in TrustedHosts list might not be authenticated. For more information on how to set Trustedhosts run the following command: winrm help config.
我的用户是客户端和服务器上的本地管理员,当我试图通过HTTPS连接时,还会出现一个不同的错误:
The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests.
我已经验证了服务在服务器上运行,但是我没有在服务器上的事件查看器日志中看到任何错误。我在这里错过了什么?
在进一步故障排除过程中注意到的一些附加事项:这是一个SQL Server,因此没有配置或安装IIS,我是否需要配置IIS或安装任何特定的功能?
另外,如果我指定了端口(5985,正如在quickconfig中设置的那样),我将得到以下错误:
Winrs error:The server certificate on the destination computer (<ipaddress>) has the following errors: Encountered an internal error in the SSL library.
这是否意味着没有安装或配置IIS?
发布于 2014-03-17 15:21:58
结果是Server没有安装SSL证书,所以我不能使用SSL。相反,我使用HTTP,并确保使用以下设置将服务器标记为客户端上的受信任主机(尽管服务器IP而不是*将工作)。
winrm set winrm/config/client @{TrustedHosts="*"}
https://serverfault.com/questions/582610
复制相似问题