Update AutoArchive Settings on Multiple PST Files

Status
Not open for further replies.
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.

"bill" <william.voyek@gmail.com> wrote in message

news:d7b8eab3-1cfa-4778-a7ad-6f086ab593d9@u15g2000prd.googlegroups.com...
> 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
 
B

bill

On Feb 17, 6:20 am, "
<kenslo...@mvps.org> wrote:
> 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.

> >

> http://www.slovaktech.com

> "bill" <william.vo...@gmail.com> wrote in message

> news:d7b8eab3-1cfa-4778-a7ad-6f086ab593d9@u15g2000prd.googlegroups.com...
>
> > 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


>


Thanks, that should help.

bill
 
B

bill

On Feb 17, 6:20 am, "
<kenslo...@mvps.org> wrote:
> 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.

> >

> http://www.slovaktech.com

> "bill" <william.vo...@gmail.com> wrote in message

> news:d7b8eab3-1cfa-4778-a7ad-6f086ab593d9@u15g2000prd.googlegroups.com...
>
> > 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


>


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
 
K

Ken Slovak - [MVP - Outlook]

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.

"bill" <william.voyek@gmail.com> wrote in message

news:c8ae786d-7977-4f1a-af0e-69841ce3e0e3@28g2000vbf.googlegroups.com...

<snip
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

On Feb 18, 5:59 am, "
<kenslo...@mvps.org> wrote:
> 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.

> >

> http://www.slovaktech.com

>


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

bill
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
Commodore Safe way to add or update holidays; Windows Notifications issue Using Outlook 8
O Batch update calendar Using Outlook 3
R Outlook 365 update sets delete from server flag Using Outlook 2
V Update new custom field Outlook VBA and Custom Forms 5
P Outlook 2019 UI changes after 20H2 update Using Outlook 1
D Change Microsoft Account password - what to do to update on all devices Using Outlook 4
K can't get custom form to update multiple contacts using VBA Outlook VBA and Custom Forms 3
B Outlook 2016 Retail C2R keeps logging since update? Using Outlook 0
C Not sync folders not found after MS Outlook 365 update Using Outlook 1
W September 2020 - No Default Email Client message after Office Update Using Outlook 1
D.Moore VBA script fail after Office 365 update Using Outlook 8
W April 2020 Office 365 Update - Add-Ons fail after Office 365 Update Using Outlook 6
M Outlook 2010 Problem with OutLook 2010 32 bit, after Windows Auto Update Using Outlook 3
Jennifer Murphy Grant R/W (update) access to a friend Using Outlook 3
L Favorites don't update Using Outlook 1
F Copy and replace not update contact in another pst Using Outlook 0
M Message list font changed after update Using Outlook 2
M Quicken One Step Update Bill Reminders Not Syncing to Outlook Using Outlook 1
O Windows 1803 update : QAT and toolbar changed, language pack gone... Using Outlook 5
J Updating existing entry on shared calendar wants to send update from delegate Using Outlook 0
N Using email notification to update calendar events? Outlook VBA and Custom Forms 4
K Update Appointment category when changed in Excel Using Outlook 3
V Outlook 2003 problem with Windows 10 Creators Update 1709 Using Outlook 0
G Windows Update Causes BCM Database Access Problem? BCM (Business Contact Manager) 4
K Update subject based on text in body Outlook VBA and Custom Forms 3
A Creating Progress Bar or Status Bar Update Outlook VBA and Custom Forms 0
M Recent Update Did not Fix Search Problems Using Outlook 7
R Custom Contact Form how to update when loaded. Outlook VBA and Custom Forms 6
C Update Notes for Meeting Attendees Using Outlook 8
A Attendee Update Outlook Meeting Invite Using Outlook 0
Diane Poremsky Outlook Email Security Update Using Outlook 0
S Task Update coming as email and not updating task Using Outlook 3
Diane Poremsky Remove Office 2013 Update Banner Using Outlook 0
B IMAP folders don't update when Outlook 365 opens Using Outlook 0
J Outlook Macro to Update Sharepoint Excel File Using Outlook 1
Diane Poremsky Task Request Status Update Address Missing Using Outlook 0
Christopher M Importing from Eudora Update Using Outlook 5
Cameron Piper Automatically update custom forms across multiple computers Outlook VBA and Custom Forms 1
M Update field codes when opening Outlook Template Outlook VBA and Custom Forms 2
Bachelle Macro to Update Existing Task from New Email Outlook VBA and Custom Forms 3
I Microsoft Security Update KB3097877 Using Outlook 14
S Outlook 2010: October 2015 Update Using Outlook 0
S Outlook 2013: October 2015 Update Using Outlook 0
Diane Poremsky Update Contacts with a New Company Name and Email Address Using Outlook 0
Diane Poremsky Update Contacts with a New Company Name and Email Address Using Outlook 0
F Update the notes field Exchange Server Administration 0
A BCM crashes after Windows 10 update BCM (Business Contact Manager) 1
H SQL update column BCM (Business Contact Manager) 0
Forum Admin BCM Update for Outlook 2010/2013 - Nov 2014 BCM (Business Contact Manager) 14
P Outlook 2007 update headers Using Outlook 2

Similar threads

Top