You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

无法通过PowerShell连接ExchangeOnline的问题求助

无法通过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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.21 15:10:32