使用PowerShell在线连接到Microsoft Exchange的问题 - 仅应用身份验证
我无法连接到 Exchange Online,连接时出现以下错误
获取令牌时出错: System.Exception:对于联合用户(由联合 IdP 拥有,而不是 Azure AD 租户中拥有的托管用户) ID3242:安全令牌无法进行身份验证或授权。用户不存在或输入了错误的密码 SwordInnerException:联合服务
PowerShell代码
$AppCredential= New-Object System.Management.Automation.PSCredential(<UPN>,<Token>)
Connect-ExchangeOnline -Credential $AppCredential
参考
I could not connect to Exchange Online, I get the below error while connecting
Error Acquiring Token:
System.Exception: In the case of a Federated user(that is owned by a federated IdP, as opposed to a managed user owned in an Azure AD tenant)
ID3242: The security token could not be authenticated or authorized.The user does not exist or has entered the wrong pas
swordInnerException : Federated service
PowerShell Code
$AppCredential= New-Object System.Management.Automation.PSCredential(<UPN>,<Token>)
Connect-ExchangeOnline -Credential $AppCredential
Reference
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用仅应用程序身份验证连接到 Exchange Online EXO V2 中不提供此功能。
仅应用程序身份验证无法进行委派。安全应用程序模型允许在委派方案中进行无人值守的脚本编写。
此功能不支持委派。
请参阅 此处
Connect to Exchange Online using App-only authentication Feature is not available in EXO V2.
Delegation is not possible with app-only authentication. The Secure App Model allows for unattended scripting in delegation scenarios.
Delegation is not supported in this Feature.
Refer here