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

使用PowerShell连接德国版Microsoft 365 ExchangeOnline始终超时求助

问题描述

我需要在Microsoft 365德国版的Outlook中配置会议室,使用macOS系统上的PowerShell 7.4.2操作,步骤如下:

  • 执行命令:Import-Module ExchangeOnlineManagement
  • 执行命令:Connect-ExchangeOnline -UserPrincipalName name@xxx.onmicrosoft.com -ExchangeEnvironmentName O365GermanyCloud

执行第二条命令后,需等待数分钟才会打开浏览器标签页访问https://login.microsoftonline.de/organizations/oauth2/v2.0/...,但页面持续加载直至超时。不得不手动终止命令,此时PowerShell抛出错误:

System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at System.Threading.CancellationToken.ThrowIfCancellationRequested()
   at Microsoft.Identity.Client.Platforms.Shared.DefaultOSBrowser.HttpListenerInterceptor.ListenToSingleRequestAndRespondAsync(Int32 port, String path, Func`2 responseProducer, CancellationToken cancellationToken)
   at Microsoft.Identity.Client.Platforms.Shared.Desktop.OsBrowser.DefaultOsBrowserWebUi.InterceptAuthorizationUriAsync(Uri authorizationUri, Uri redirectUri, Boolean isBrokerConfigured, CancellationToken cancellationToken)

已尝试使用租户下不同管理员账号,且在不同日期多次操作,问题依旧。请问是操作有误还是微软服务存在问题?

我的$PSVersionTable信息:

Name                           Value
----                           -----
PSVersion                      7.4.2
PSEdition                      Core
GitCommitId                    7.4.2
OS                             Darwin 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10…
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

内容的提问来源于stack exchange,提问作者Alexander Hörl

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.23 18:42:09