Powershell – Script to export Outlook rules

outlook-2010powershell

Is there are way to script export and import of rules in Outlook 2010?

I am writing a script to remove and recreate user profiles (in Powershell), and as part of this I need to backup and reimport their rules.

Can enumerate through in PS, but I want to create a backup file (as if doing it through the outlook UI) and have that reimported.

Best Answer

Ed Wilson (aka Microsoft Scripting Guy) wrote up a script for doing this: Hey, Scripting Guy! How Can I Tell Which Outlook Rules I Have Created?

He does not state what version of Outlook he is working with but I imagine it works fine with Outlook 2010.