[server.mydomain.local] Connecting to remote server failed withthe following error message : The client cannot connect tothe destination specified inthe request. Verify thatthe service onthe destination isrunningandis accepting requests. Consult the logs and documentation forthe WS-Management service runningonthe destination, most commonly IIS or WinRM. If the destination isthe WinRM service, runthe following command onthe destination to analyze and configure the WinRM service: "winrm quickconfig". For more information, see the about_Remote_Troubleshooting Help topic. + CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportException + FullyQualifiedErrorId : PSSessionOpenFailed
这个错误在网上查了好久,都没发现有用的答案,包括重装 WinRM IIS 扩展,重新配置 PowerShell 虚拟目录,运行 WinRm QuickConfig 等等,都没有用,最后发现问题还是出在IIS上面,Default Web Site 一开始给禁用了,而且默认的端口也从80改到了8080,EMS在打开的时候需要访问 Default Web Site 下面 PowerShell 的虚拟目录,找不到,报错,改回去80,错误解决。