Update AutoArchive Settings on Multiple PST Files

B

bill

Hello,

I have a number of pst archives that I need to update the AutoArchive
settings. Specifically i need to disable AutoArvhive for all pst files
while maintaining my AutoArchive settings for my Exchange account ost.
When the daily AutoArchive runs it not only processes my Exchange
Mailbox but runs through each pst file. The pst files contain around
100-150 folders each and there 6 pst files. Therefore the AutoArchive
process takes quite some time. What i would like to do is loop through
each pst file and disable AutoArchive for every item in the pst. I'm
familiar with vbscript and frequently write my own scripts but I'm
unfamiliar with the internals of Outlook and pst databases. Can
someone help me accomplish this?

Thanks,

bill
 
K

Ken Slovak - [MVP - Outlook]

None of the autoarchive settings are exposed in the Outlook object model.
You'd need to use a lower level API such as CDO 1.21(optional installation)
or Redemption (3rd party library at www.dimastr.com/redemption) or Extended
MAPI (long learning curve and only C++ or Delphi).

The settings are all stored in hidden items in Outlook folders and in the
registry.

I'd recommend searching on "autoarchive" at www.outlookcode.com and you'll
turn up a lot of samples for that using various API's.
 
B

bill

None of the autoarchive settings are exposed in the Outlook object model.
You'd need to use a lower level API such as CDO 1.21(optional installation)
or Redemption (3rd party library atwww.dimastr.com/redemption) or Extended
MAPI (long learning curve and only C++ or Delphi).

The settings are all stored in hidden items in Outlook folders and in the
registry.

I'd recommend searching on "autoarchive" atwww.outlookcode.comand you'll
turn up a lot of samples for that using various API's.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm


I have a number of pst archives that I need to update the AutoArchive
settings. Specifically i need to disable AutoArvhive for all pst files
while maintaining my AutoArchive settings for my Exchange account ost.
When the daily AutoArchive runs it not only processes my Exchange
Mailbox but runs through each pst file. The pst files contain around
100-150 folders each and there 6 pst files. Therefore the AutoArchive
process takes quite some time. What i would like to do is loop through
each pst file and disable AutoArchive for every item in the pst. I'm
familiar with vbscript and frequently write my own scripts but I'm
unfamiliar with the internals of Outlook and pst databases. Can
someone help me accomplish this?

bill

Thanks, that should help.

bill
 
B

bill

None of the autoarchive settings are exposed in the Outlook object model.
You'd need to use a lower level API such as CDO 1.21(optional installation)
or Redemption (3rd party library atwww.dimastr.com/redemption) or Extended
MAPI (long learning curve and only C++ or Delphi).

The settings are all stored in hidden items in Outlook folders and in the
registry.

I'd recommend searching on "autoarchive" atwww.outlookcode.comand you'll
turn up a lot of samples for that using various API's.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm


I have a number of pst archives that I need to update the AutoArchive
settings. Specifically i need to disable AutoArvhive for all pst files
while maintaining my AutoArchive settings for my Exchange account ost.
When the daily AutoArchive runs it not only processes my Exchange
Mailbox but runs through each pst file. The pst files contain around
100-150 folders each and there 6 pst files. Therefore the AutoArchive
process takes quite some time. What i would like to do is loop through
each pst file and disable AutoArchive for every item in the pst. I'm
familiar with vbscript and frequently write my own scripts but I'm
unfamiliar with the internals of Outlook and pst databases. Can
someone help me accomplish this?

bill

Thanks, I went there which led me to here:

http://blogs.msdn.com/jmazner/archi...es-on-a-folder-hierarchy-in-outlook-2007.aspx

which was exactly what i was looking for.

bill
 
B

bill

Be aware that the code referenced is Outlook 2007 or later only since it
makes use of objects such as PropertyAccessor and StorageItem. For earlier
versions of Outlook using an alternate API such as CDO 1.21 or Redemption
would be needed.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm

We are using 2007, but thanks for the heads-up.

bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top