New-PSSession无法连接Exchange-WinRM客户端无法处理请求

时间:2018-09-24 05:38:50

标签: powershell exchange-server

我正在尝试建立PSSession以在Exchange服务器上运行Powershell脚本,但收到错误消息'WinRM客户端无法处理该请求。它无法确定 来自目标计算机的HTTP响应的内容类型。内容类型不存在或无效。有关更多信息,请参见about_Remote_Troubleshooting帮助主题。'

下面是我正在尝试的示例代码。关注了https://blogs.technet.microsoft.com/exchange/2010/02/04/troubleshooting-exchange-2010-management-tools-startup-issues/和其他博客,但仍然没有。

$LiveCred = Get-Credential

$uri = "http://" + $exchangeServerName + "/powershell";
New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri $uri -Credential $LiveCred

0 个答案:

没有答案
相关问题