Connect-ExchangeOnline doesn't work on server 2012

Stephen 1 Reputation point

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

Thank you,

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,393 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Stephen 1 Reputation point

    We have ExchangeOnlineManagement 2.0.3 installed.

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


    0 comments No comments

  2. Andy David - MVP 142.8K Reputation points MVP
    0 comments No comments

  3. Martin Buist 1 Reputation point

    use this first

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

    0 comments No comments