2016-04-05 6 views
0

Ich versuche, eine Verbindung zu meinem O365 Exchange Online herzustellen, dabei aber WinRM-Fehlermeldungen zu erhalten.Office 365 - Herstellen einer Verbindung mit Exchange mithilfe von PowerShell WinRM-Probleme

$user = "[email protected]" 
$cred = Get-Credential -Credential $user 

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

beim Laufen, dass ich die folgende Fehlermeldung erhalten:

> 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 

Ich habe online rund um WinRM- und Standardauthentifizierung aussehen. Ich habe die Standardauthentifizierung über GPO aktiviert, aber dies hat nicht viel bewirkt.

Jede Information wäre großartig.

Dank

+0

Es ist nichts wert, dass ich über PowerShell eine Verbindung mit dem O365 Admin-Portal und SharePoint herstellen kann. – Dansc91

Antwort

0

mir Sieht aus wie Sie MFA für das Admin-Konto aktiviert haben - das deaktivieren. Prost.

+0

Wenn Azure MFA aktiviert ist: Sie können ein App-Passwort verwenden. – bluuf

Verwandte Themen