0
11
views

Export Exchange Online Transport Rules

In this post, I will focus on how to export Exchange Online Transport rules using PowerShell.

To get started we first need to establish a connection to Exchange Online or Office 365.

  1. Connect to Exchange Online PowerShell

Then

And Finally, We need to import the newly created session.

Alternatively you can download the following script from TechNet to Connect: https://gallery.technet.microsoft.com/office/Connect-To-Office-365-9b235018

Once we have established a connection to Exchange Online, we can then run the following cmdlets to export the current Transport Rules.

The data is first exported to a variable $file, and then written to an XML file using

Set-Content and then saved to a path specified. In this case its “C:\Export\Rules.Xml”.

The Exported file will look as follows

The Xml file will look as follow, with the details of the Transport Rule etc.

#ThatLazyAdmin

@ShaunHardneck

Sharing is caring!

Previous articleHow to find your Office 365 Tenant Location.
Next article
About Me ? I Guess i would start by saying i am a family guys and full time SysAdmin and Tech Junky. This Blog is my first attempt to share information about daily issues i come across as a SysAdmin as well as some new deployments i am part of. Topics that i will cover will mostly be about Office 365,Windows,Exchange as well as Active Directory. I hope some of my Blog posts helps someone #LiveLongAndBeLazy #Exchange #Office 365 #ActiveDirectory #Hyper-V
SHARE

LEAVE A REPLY

Please enter your comment!
Please enter your name here