微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

无法从 Linux 远程连接到本地 Exchage Powershell

如何解决无法从 Linux 远程连接到本地 Exchage Powershell

我正在尝试从 Centos 7 远程连接到我的本地 Exchange 2013 Powershell。

我按照 microsoft docs (https://docs.microsoft.com/en-us/powershell/exchange/connect-to-exchange-servers-using-remote-powershell) 中的所有步骤执行,除了将身份验证更改为“基本”。

当我运行 New-PSSession 命令提示符 (pwsh) 时,会冻结 5-10 分钟。 之后 Get-PSSession 返回状态为“已打开”的会话,但 Import-PSSession 退出失败。

Windows 上的相同步骤(还有 PowerShell 7.1.1)成功并且 New-PSSession 命令在 2 秒或更短时间后完成。

Exchange 的 IIS 日志显示此连接有 500 错误。请参阅以下内容

2021-01-22 10:20:28 192.168.1.3 POST /PowerShell Psversion=7.1.1&CorrelationID=<empty>;&ClientId=SR*--omitted--*PG&cafeReqId=7e*--omitted--*cb; 443 remotemg@contoso.com 172.16.2.9 - - 200 0 0 171
2021-01-22 10:20:28 192.168.1.3 POST /PowerShell Psversion=7.1.1&CorrelationID=<empty>;&ClientId=DH*--omitted--*EA&cafeReqId=85*--omitted--*1a; 443 remotemg@contoso.com 172.16.2.9 - - 200 0 0 703
2021-01-22 10:20:30 192.168.1.3 POST /PowerShell Psversion=7.1.1&CorrelationID=<empty>;&ClientId=JP*--omitted--*TW&cafeReqId=23*--omitted--*c5; 443 remotemg@contoso.com 172.16.2.9 - - 200 0 0 921
2021-01-22 10:20:30 192.168.1.3 POST /PowerShell Psversion=7.1.1&CorrelationID=<empty>;&ClientId=NR*--omitted--*WW&cafeReqId=a4*--omitted--*9a; 443 remotemg@contoso.com 172.16.2.9 - - 200 0 0 31
2021-01-22 10:22:29 192.168.1.3 POST /PowerShell Psversion=7.1.1 443 - 172.16.2.9 - - 500 0 64 119312
2021-01-22 10:23:30 192.168.1.3 POST /PowerShell Psversion=7.1.1&CorrelationID=<empty>;&ClientId=WS*--omitted--*VG&cafeReqId=e8*--omitted--*aa; 443 remotemg@contoso.com 172.16.2.9 - - 500 0 0 180047
2021-01-22 10:25:30 192.168.1.3 POST /PowerShell Psversion=7.1.1 443 - 172.16.2.9 - - 500 0 64 119500
2021-01-22 10:26:30 192.168.1.3 POST /PowerShell Psversion=7.1.1&CorrelationID=<empty>;&ClientId=CP*--omitted--*NG&cafeReqId=1d*--omitted--*e2; 443 remotemg@contoso.com 172.16.2.9 - - 500 0 0 180062
2021-01-22 10:29:30 192.168.1.3 POST /PowerShell Psversion=7.1.1&CorrelationID=<empty>;&ClientId=XA*--omitted--*UQ&cafeReqId=be*--omitted--*ec; 443 remotemg@contoso.com 172.16.2.9 - - 500 0 0 180047

有人可以帮忙吗?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。