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.