Jump to content

Connect-ExchangeOnline - SSL Connection cannot be established


Der letzte Beitrag zu diesem Thema ist mehr als 180 Tage alt. Bitte erstelle einen neuen Beitrag zu Deiner Anfrage!

Empfohlene Beiträge

Geschrieben

Hallo,

 

ich habe folgenden PS Code

$username = 'user'
$password = 'password'
$credential = New-Object System.Management.Automation.PsCredential($username, $password)
 

Connect-ExchangeOnline -credential $credential -Verbose

 

Dieser wirft mir folgenden Fehler:

VERBOSE: ExchangeEnvironment : O365Default
VERBOSE: ConnectionUri : 
VERBOSE: AzureADAuthorizationEndpointUri : 
VERBOSE: DelegatedOrganization : 
VERBOSE: Prefix : 
VERBOSE: FormatTypeName :*
VERBOSE: CommandName :*
VERBOSE: Importing cmdlet 'Add-EXOClientTelemetryWrapper'.
VERBOSE: Importing cmdlet 'New-EXOClientTelemetryFilepath'.
VERBOSE: Importing cmdlet 'Push-EXOTelemetryRecord'.
VERBOSE: Importing cmdlet 'Clear-ActiveToken'.
VERBOSE: Importing cmdlet 'New-ExoPSSession'.
VERBOSE: Importing cmdlet 'Test-ActiveToken'.

New-ExoPSSession : Connecting to remote server outlook.office365.com failed with the following error message : The SSL connection cannot be established. 
Verify that the service on the remote host is properly configured to listen for HTTPS requests. Consult the logs and documentation for the WS-Management 
service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to 
analyze and configure the WinRM service: "winrm quickconfig -transport:https". For more information, see the about_Remote_Troubleshooting Help topic.
At C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\2.0.5\netFramework\ExchangeOnlineManagement.psm1:475 char:30
+ ... PSSession = New-ExoPSSession -ExchangeEnvironmentName $ExchangeEnviro ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [New-ExoPSSession], PSRemotingTransportException
    + FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemotingDataStructureException,Microsoft.Exchange.Management.ExoPowershellSnapin.NewExoP 
   SSession

 

 

Ist das nun ein Fehler auf meinem Server (Microsoft Windows Server 2016 Standard)? Fehlt ein SSL Zertifikat?  Oder was genau ist der Fehler? Vielleicht stehe ich hier auch einfach auf dem Schlauch.

 

Danke und VG 

 

 

Geschrieben
vor 6 Minuten schrieb tesso:

Du kannst das Passwort nicht im Klartext übergeben. 


$password = ConvertTo-SecureString 'MySecretPassword' -AsPlainText -Force

 

Ahja danke, hab das eigentlich in einen SecureString konvertiert, hatte das nur hier abgeändert. Aber ja stimmt :)

Der letzte Beitrag zu diesem Thema ist mehr als 180 Tage alt. Bitte erstelle einen neuen Beitrag zu Deiner Anfrage!

Erstelle ein Benutzerkonto oder melde dich an, um zu kommentieren

Du musst ein Benutzerkonto haben, um einen Kommentar verfassen zu können

Benutzerkonto erstellen

Neues Benutzerkonto für unsere Community erstellen. Es ist einfach!

Neues Benutzerkonto erstellen

Anmelden

Du hast bereits ein Benutzerkonto? Melde dich hier an.

Jetzt anmelden
×
×
  • Neu erstellen...