I am looking for some kind of automated method to move mail items older than N months from my Exchange inbox (and "Online Archive", also Exchange hosted I believe) into a pst file. Preferably also preserving the subfolder hierarchy within the Inbox.
I've looked all over SO and google but surprisingly this seems more complicated than it should be. I'm thinking some kind of script (VBScript, Powershell, VBA) for Outlook 2013 would be best.
The closest thing I could find was this, but it's not exactly what I'm after.
Anyone have any tips, pointers, links, code or even suggestions where to start?
My thought is basic pseudo-code would be:
- Run Once per day (automated, via some job scheduler)
- Scan all folders and items with INBOX
- If item age > N months, move to pst file (create folder if doesn't exist in target
Thanks!