无法从 SMTP 地址解析租户名称 [FailureCategory=Cafe-HttpProxyException]
Failed to resolve tenant name from SMTP address [FailureCategory=Cafe-HttpProxyException]
我正在尝试从 powershell 连接 O365 exchange/Exchange Online,我正在使用这个 link 作为指南。
但是在 运行 这个 powershell 命令之后
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
我低于错误
这是错误信息
New-PSSession : [outlook.office365.com] Connecting to remote server outlook.office365.com failed with the following
error message :
[ClientAccessServer=SG2PR01CA0093,BackEndServer=,RequestId=2498a60b-034b-40d1-9e57-3e04fdae8d5f,TimeStamp=4/16/2019
9:48:00 AM] [FailureCategory=Cafe-HttpProxyException] Failed to resolve tenant name from SMTP address
'anna007@nitin.onmicorosft.com'. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:12
+ $Session = New-PSSession -ConfigurationName Microsoft.Exchange -Conne ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
gTransportException
+ FullyQualifiedErrorId : -2144108477,PSSessionOpenFailed
这是用户名/密码问题,我正在复制粘贴用户名和密码,而在复制粘贴时却输入了 space 密码。
这可能是由于缺少 Exchange 订阅造成的
我正在尝试从 powershell 连接 O365 exchange/Exchange Online,我正在使用这个 link 作为指南。
但是在 运行 这个 powershell 命令之后
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
我低于错误
这是错误信息
New-PSSession : [outlook.office365.com] Connecting to remote server outlook.office365.com failed with the following error message : [ClientAccessServer=SG2PR01CA0093,BackEndServer=,RequestId=2498a60b-034b-40d1-9e57-3e04fdae8d5f,TimeStamp=4/16/2019 9:48:00 AM] [FailureCategory=Cafe-HttpProxyException] Failed to resolve tenant name from SMTP address 'anna007@nitin.onmicorosft.com'. For more information, see the about_Remote_Troubleshooting Help topic. At line:1 char:12 + $Session = New-PSSession -ConfigurationName Microsoft.Exchange -Conne ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin gTransportException + FullyQualifiedErrorId : -2144108477,PSSessionOpenFailed
这是用户名/密码问题,我正在复制粘贴用户名和密码,而在复制粘贴时却输入了 space 密码。
这可能是由于缺少 Exchange 订阅造成的