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