4 Lines To Export Outlook Rules To Excel/CSV Using PowerShell

Read Time:1 Min, 29 Sec

I used to use a ton of Outlook Rules to organize the thousands of emails that I receive each day. Yep, I said “thousands”. I work for a very successful Managed Services provider and we have many clients. In order to ensure the highest level of service we are sent all alerts/notifications/etc. as to the health of our client’s systems. Then, each team member sets up Outlook Rules to narrow the scope of the emails we see to only those clients with which we are directly involved. This method isn’t perfect, but it does cut down on the amount of distribution list management.

With that many emails coming in, you can imagine that I had 50+ Outlook Rules configured. Unfortunately, with that man Outlook Rules there would be times that I would miss messages because they got caught in an Outlook Rule that didn’t intend for it to get caught in.

To get more control over the filing of my incoming emails, I decided I needed to consolidate my Outlook Rules. However, I first needed to get a better idea of what I already had out there. That’s when I put together this simple PowerShell script to export all my Outlook Rules to a .csv file.

set-executionpolicy bypass
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline
Get-InboxRule | Export-Csv -NoTypeInformation "$HOME\Downloads\rules.csv"

Using the code above, I was able to export my Outlook Rules to a .csv file. From there, I found rules with common criteria and combined them. I was also able to find other Outlook Rules that no longer applied and deleted those. In the end, I was able to reduce my 50+ Outlook Rules to only 17 Outlook Rules.

Now, that is a much more manageable number or Outlook Rules.

Author

Stewart Schatz

Career: Principal CNC Consultant for Syntax Systems Limited specializing Oracle JD Edwards EnterpriseOne and the technology that supports it. Side Hustle: Owner/Operator of E1Tips.com Location: Lancaster, PA USA  What I like to do: Invest in Family, Explore Technology, Lead Teams, Share Knowledge/Experience, Hunt, Hike, etc.
Happy
Happy
0
Sad
Sad
0
Excited
Excited
0
Sleepy
Sleepy
0
Angry
Angry
1
Surprise
Surprise
0

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Previous post Get The Size & Record Count Of All Tables In A SQL Server Database
E1Tips Qucik Tip Next post How To Test A SQL Server Connection