无法从 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 (将#修改为@)