无法通过PowerShell连接ExchangeOnline的问题求助
各位好,我现在碰到了一个PowerShell连接Exchange Online的难题,有没有朋友能给点解决建议呀?
我已经尝试过以下操作了:
- 以管理员身份运行PowerShell
- 重新安装了ExchangeOnline模块
我的脚本代码如下:
Import-Module MSOnline -DisableNameChecking; Import-Module ExchangeOnlineManagement; Connect-MsolService -Credential $LiveCred; Disconnect-ExchangeOnline -confirm:$false; $ExchangeSession = Connect-ExchangeOnline -Credential $LiveCred -UseRPSSession;
运行后出现了以下错误信息:
New-PSSession : [outlook.office365.com] Connecting to remote server outlook.office365.com failed with the following error message : For more information, see the about_Remote_Troubleshooting Help topic.
- CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTransportException
- FullyQualifiedErrorId : -2144108173,PSSessionOpenFailed
PS G:\Mijn Drive\scripts\office365> TerminatingError(New-ExoPSSession): "Connecting to remote server outlook.office365.com failed with the following error message : For more information, see the about_Remote_Troubleshooting Help topic."
PS G:\Mijn Drive\scripts\office365> TerminatingError(): "Connecting to remote server outlook.office365.com failed with the following error message : For more information, see the about_Remote_Troubleshooting Help topic."
TerminatingError(): "Connecting to remote server outlook.office365.com failed with the following error message : For more information, see the about_Remote_Troubleshooting Help topic."
Connecting to remote server outlook.office365.com failed with the following error message : For
more information, see the about_Remote_Troubleshooting Help topic.At C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\3.2.0\netFramework\ExchangeOnlineManagement.psm1:743 char:21
throw $_.Exception;~~~~~~~~~~~~~~~~~~- CategoryInfo : ResourceUnavailable: (:) [], ParentContainsErrorRecordException
- FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemotingDataStructureException
备注:内容来源于stack exchange,提问作者ken.vanhuffel

