首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Office 365 -使用PowerShell WinRM问题连接到Exchange

Office 365 -使用PowerShell WinRM问题连接到Exchange
EN

Stack Overflow用户
提问于 2016-04-05 22:34:39
回答 1查看 2K关注 0票数 0

我正在尝试连接到O365 Exchange Online,但在连接时收到WinRM错误消息。

代码语言:javascript
复制
$user = "user@domain.co.uk"
$cred = Get-Credential -Credential $user

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

运行时,我收到以下错误消息:

代码语言:javascript
复制
> New-PSSession : [outlook.office365.com] Connecting to remote server
> outlook.office365.com failed with the following error message : The
> WinRM client cannot process the request. Basic authentication is
> currently disabled in  the client configuration. Change the client
> configuration and try the request again. For more information, see the
> about_Remote_Troubleshooting Help topic. At line:1 char:20
> + $exchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -Connecti ...
> + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession],
> PSRemotingTransportException
>     + FullyQualifiedErrorId : -2144108321,PSSessionOpenFailed

我已经在网上查找了WinRM和基本身份验证。我已经通过GPO启用了基本身份验证,但这并没有起到多大作用。

任何信息都是很棒的。

谢谢

EN

回答 1

Stack Overflow用户

发布于 2017-08-12 00:09:35

在我看来,您已经为管理员帐户启用了MFA -禁用它。干杯。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36429428

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档