所以我有机器:
客户端计算机:域A上的Windows 7服务器计算机:域B上的Windows 2008 R2,运行winrm quickconfig
我正在使用以下命令作为testing脚本:
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. WinRM cannot process the request. The following error occurred while using Kerberos authentication: The network path was not found. 。
当我尝试用<ipaddress>replaceServername ,我得到一个不同的错误:
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.
我的用户是在客户端和服务器上的本地pipe理员,当我尝试通过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.
我已validation服务在服务器上运行,但在服务器上的事件查看器日志中没有看到任何错误。 我在这里错过了什么?
在进一步的故障排除过程中还logging了一些额外的事情:这是一个SQL Server,因此没有configuration或安装IIS,我需要configurationIIS还是安装任何特定的function?
此外,如果我指定的端口(5985,在quickconfig期间设置),我得到以下错误:
Winrs error:The server certificate on the destination computer (<ipaddress>) has the following errors: Encountered an internal error in the SSL library.
这是指向没有安装或configurationIIS?
事实certificate,SQL Server没有安装SSL证书,所以我不能使用SSL。 相反,我使用HTTP,并确保使用以下设置将服务器标记为受信任的主机(尽pipe服务器IP而不是*会起作用)。
winrm set winrm/config/client @{TrustedHosts="*"}