Automate Outlook Export to OLM file.

pblake
Contributor III

Anyone had a script or an idea of how I can automate creating a OLM backup of a user's Outlook. We are replacing a large amount of machines over a weekend, and I am looking to automate the user's creating an OLM backup the day or two before.

Any ideas?

1 REPLY 1

talkingmoose
Moderator
Moderator

Outlook's AppleScript dictionary includes an "import olm" but not "export olm" command. I don't see any way to export to any format, unfortunately.

I'd recommend creating a script that first quits Outlook and then quits the Microsoft Database Daemon. Then you can copy the entire "~/Documents/Microsoft User Data" folder to a drive or zip file. By quitting the daemon you should avoid having to rebuild the database the next time Outlook is launched and all user data and preferences should be preserved.