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