Exchange TransportServers

Rising Flight 5,456 Reputation points
2025-08-13T22:27:22.9166667+00:00

Hi All,

I am using an Exchange 2016 hybrid environment and plan to switch from Exchange 2016 to Exchange 2019. When I execute the command Get-HybridConfiguration, I see my Exchange 2016 servers listed:

ReceivingTransportServers : {Exch2016Srv02, Exch2016Srv01, Exch2016Srv03}

SendingTransportServers : {Exch2016Srv02, Exch2016Srv01, Exch2016Srv03}

I want to replace them with Exchange 2019 servers, i.e., Exch2019Srv01, Exch2019Srv02, and Exch2019Srv03. Please guide me with the PowerShell syntax to achieve this. I want to export the hybridconfiguration to text file is the below syntax correct:

Get-HybridConfiguration | Out-File "C:\temp\HybridConfig.txt"

Exchange | Hybrid management
{count} votes

Accepted answer
  1. Vergil-V 3,675 Reputation points Microsoft External Staff Moderator
    2025-08-14T04:03:07.1733333+00:00

    Hi @Rising Flight 
    Thank you for reaching out to Microsoft Learn Q&A!   
    Based on your description, I understand that you're seeking a PowerShell command to replace the ReceivingTransportServers and SendingTransportServers in your hybrid Exchange configuration. 
    After reviewing available documentation and community resources, I believe the following PowerShell command using Set-HybridConfiguration may help achieve your goal: 

    Set-HybridConfiguration -ReceivingTransportServers Exch2019Srv01, Exch2019Srv02, Exch2019Srv03  -SendingTransportServers  Exch2019Srv01, Exch2019Srv02, Exch2019Srv03   
    

    This command will update the list of Exchange servers responsible for handling mail flow between your on-premises environment and Exchange Online. 

    To ensure the change is successful and does not impact your mail flow, please follow these steps after running the command: 
    Step 1: Use Get-HybridConfiguration to confirm that the ReceivingTransportServers and SendingTransportServers have been updated correctly. 

    Step 2: Send test messages between on-premises and Exchange Online mailboxes (both directions) to ensure proper routing and delivery. 
    Step 3: Re-running the HCW is a best practice after making changes. It will re-synchronize your settings and update all related connectors, helping maintain a healthy hybrid environment. 

    Additionally, the command you mentioned for exporting the hybrid configuration to a text file also appears to be correct. 

    As forum moderators, we do not have access to a dedicated testing environment to replicate individual configurations. Therefore, while this command appears to be accurate, I cannot guarantee it will fully meet your specific needs without further testing in your environment. 

    Thank you for your patience and understanding.  I’d greatly appreciate any updates or additional suggestions you can share. 


    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 additional answers

Sort by: Most helpful

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.