使用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
相关产品推荐
相关产品推荐

