Connect-ExchangeOnline doesn't work on server 2012

Stephen 1 Reputation point
2022-06-27T17:08:43.307+00:00

Trying to run Connect-ExchangeOnline on an Exchange server 2012 and received the following error message...

It is an Exchange server running Windows Server 2012 Standard with Microsoft Exchange Server 2013 installed.

  • Firewall is not being blocked. Firewall is disabled on the server.
  • I was able to connect to Exchange Online from other machines in the same network (So I know the firewall is not being blocked)

New-ExoPSSession : An error occurred while sending the request..
At C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\2.0.3\Ex
changeOnlineManagement.psm1:426 char:30

  • ... PSSession = New-ExoPSSession -ExchangeEnvironmentName $ExchangeEnviro ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : NotSpecified: (:) [New-ExoPSSession], Exception
  • FullyQualifiedErrorId : System.Exception,Microsoft.Exchange.Management.E
    xoPowershellSnapin.NewExoPSSession

Thank you,
Stephen

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,345 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Stephen 1 Reputation point
    2022-06-27T17:10:39.557+00:00

    We have ExchangeOnlineManagement 2.0.3 installed.

    And I tried using ExchangeOnlineManagement 2.0.5, but I still received the same error message.

    Thanks,
    Stephen

    0 comments No comments

  2. Andy David - MVP 141.5K Reputation points MVP
    2022-06-27T17:27:51.57+00:00
    0 comments No comments

  3. Martin Buist 1 Reputation point
    2023-11-22T10:09:41.1466667+00:00

    use this first

    [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

    0 comments No comments