Connectors information

Roger Roger 7,301 Reputation points
2025-08-13T22:45:56.19+00:00

I am using an Exchange 2016 hybrid environment. I want to export the configuration of the on-premises send connectors to a text file. Is the below syntax correct?

Get-SendConnector "Send Connector01" | Out-File "C:\Windows\Temp\onpremconnector1.txt"

I also want to export connector configurations from the Exchange Online Admin Center to a text file. I have the following connectors:

1.Name: Outbound to 9a1c7e24-3d6b-4b65-a98e-... From: O365 To: Partner Org

Get-OutboundConnector "Outbound to 9a1c7e24-3d6b-4b65-a98e-41cbf2a7d9b3" | Out-File "C:\Windows\Temp\exoconnector1.txt"

2. Name: Inbound from on-premises Exchange 2016 From: Your Org To: O365

Get-InboundConnector "Inbound from on-premises Exchange 2016" | Out-File "C:\Windows\Temp\exoconnector2.txt"

3. Name: Gateway to M365 From: Partner Org To: O365

Get-InboundConnector "Gateway to M365" | Out-File "C:\Windows\Temp\exoconnector3.txt"

Exchange | Hybrid management
{count} votes

Accepted answer
  1. Jade-T 4,945 Reputation points Microsoft External Staff Moderator
    2025-08-14T03:58:45.0866667+00:00

    Hi @Roger Roger

    Thank you for your question and for sharing the PowerShell commands you're using. This is a great approach to exporting your connector configurations! 

    As a forum moderator, my role is to help guide you towards the right answers and reliable resources. While I’m not able to provide detailed technical support myself, I can offer a clear explanation and outline standard steps to help you move forward. 

    You’ve got a solid start with your commands. Here are a few tips to ensure you get the best results. 

    On-Premises Send Connector

    Your command for the on-premises send connector is correct. To make the exported file easier to read, many administrators use Format-List in the command. This formats each property on a separate line, making it much clearer. For example: 

    Get-SendConnector "Send Connector01" | Format-List | Out-File "C:\Windows\Temp\onpremconnector1.txt" 
    

    For comprehensive and official guidance, you may find the following Microsoft documentation helpful: 

    Exchange Online Connectors 

    Your commands for exporting the Exchange Online connectors are also correct. Just like with the on-premises command, adding Format-List will make the output much more readable. For example: 

    # Connect to Exchange Online first: 
    Connect-ExchangeOnline 
     
    # Export outbound connector: 
    Get-OutboundConnector "Outbound to 9a1c7e24-3d6b-4b65-a98e-..." | Format-List | Out-File "C:\Windows\Temp\exoconnector1.txt" 
      
    # Export inbound connectors: 
    Get-InboundConnector "Inbound from on-premises Exchange 2016" | Format-List | Out-File "C:\Windows\Temp\exoconnector2.txt" 
      
    Get-InboundConnector "Gateway to M365" | Format-List | Out-File "C:\Windows\Temp\exoconnector3.txt" 
    

    Note: Always run Connect-ExchangeOnline before executing any Exchange Online PowerShell commands to ensure a proper connection. 

    You can refer to the official Microsoft documentation for these cmdlets for more details: 

    I hope this helps you successfully export the configuration files you need! If you encounter any errors or have further questions, please feel free to post them here so the community can assist you. 


    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.