Exchange Manangement Shell for 2019 Connecting to an Exchange 2016 Mailbox Server

Dougherty, Brian E 36 Reputation points
2022-10-25T13:06:55.653+00:00

GOod Morning,

We are in the process of upgrading our on-premises Exchange to EX2019 from EX2016.
I use a jump box to connect to Exchange management products. I recently upgraded this server to W2019, removed EX2016 and installed EX2019.
This server only has Exchange Management tools, does not hold any maillboxes or any other roles. The EX2016 mailbox servers are still up and running and will be until we complete the cut over.

When I go to the Exchange 2019 folder in start menu, and launch Exchange Management shell, it still connects to one of the current EX2016 mailbox servers. I would of thought it would of connected an EX2019 mailbox server. I can run Connnect-Server -Server ex2019Server.domain.com, but it still defaults to the EX2016 mailbox server at each launch. Is there a way to make sure when I launch EX2019 Management Shell it defaults to connect to an EX2019 Mailbox server.

Thank You

Exchange | Exchange Server | Management
{count} votes

Accepted answer
  1. KyleXu-MSFT 26,396 Reputation points
    2022-10-27T04:17:07.123+00:00

    @Dougherty, Brian E

    This is an expected behavior. You could find the connect script for EMS by follow step:
    254585-1.png

    254500-2.png

    From the ConnectFunctions.ps1 script, we can know that EMS will try to connect to the local computer first, if the local computer isn't an Exchange role hosted computer, it will try to connect to another computer in the same site by the order of installation.

    So, in your organization, it will try to connect the Exchange 2016 server, because there doesn't exit Exchange role on the computer that you installed the management tools.

    If you want to connect to Exchange 2019, I would suggest you open PowerShell, then run script below in it: 254545-temp.txt (You need modify the $User, $PassWord, -ConnectionUri before running)
    254530-3.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Andy David - MVP 157.8K Reputation points
    2022-10-25T14:32:47.547+00:00
    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://<ServerFQDN>/PowerShell/ -Authentication Kerberos -Credential $UserCredential  
    

    Set the ServerFQDN to the 2019 server

    https://learn.microsoft.com/en-us/powershell/exchange/connect-to-exchange-servers-using-remote-powershell?view=exchange-ps

    0 comments No comments

  2. Dougherty, Brian E 36 Reputation points
    2022-11-02T11:39:34.533+00:00

    Kyle-Xu,

    Thank you for the response.
    We will utilize the command lines for now to connect to the EX2019 from my proxy server.

    Thank You

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.