微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

创建到 Microsoft Exchange 的 PowerShell 会话

如何解决创建到 Microsoft Exchange 的 PowerShell 会话

我正在尝试通过 PowerShell 连接到 Microsoft Exchange,但我不断收到“拒绝访问”错误。 我正在使用具有营业执照的全局管理员进行连接,所以这应该不是问题。

我运行的命令:

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

错误信息:

New-PSSession : [outlook.office365.com] Connecting to Remote Server
outlook.office365.com Failed with the following error message : Access
denied. For more information,see the about_Remote_Troubleshooting
Help topic. At line:1 char:12 $Session = New-PSSession
-ConfigurationName Microsoft.Exchange -Conne ...
+ CategoryInfo: OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession],PSRemotingTransportException FullyQualifiedErrorId :
AccessDenied,PSSessionopenFailed

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。