• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2049
  • Last Modified:

PST Automatic autoarchive and compact

How can I schedule (For example using a command line tool), the process of autoarchive and compact the PST Outlook files?

Our problem, is that the PST files of the users grow too much and I need to archive and compact every month

Regards
0
lnrivera
Asked:
lnrivera
  • 3
  • 2
1 Solution
 
KubejunkieCommented:
I'm not sure i understand the question. Outlook has its own autoArchive function that you can use to Archive the email from the server/.ost file. The compact function should perform automatically.

I will need to know exactly the process you want to use and have automated. I will need to know what version of office you are running and version of windows. I will also need to know if you will want any user interaction at all or everything done in the background.
0
 
lnriveraAuthor Commented:
The pst files are Outlook 2007, I want to do the autoarchive and compact task without user interaction, all must be done in the background.

(The pst are in a server, and I want to schedule this tasks during the night)

Regards
0
 
KubejunkieCommented:
Ok

What is the process you want to run?

Example:
User runs auto archive at predetermined time setup on local client. Emails move from OST to PST file. You setup a task to run a backup of that PST file (archive.pst) and rename to another file name at night (archive%date%.pst. User runs auto archive the next day and it creates a "new pst" with same name as original pst name (archive.pst).

Is that what you are looking for? mabye not on a day by day basis but process would be pretty much the same.

If that is not what you are looking for Please give me an exact process that you are looking for End to End.
0
 
lnriveraAuthor Commented:
I want to do the same that autoarchive can do with the user interaction in outlook, but do this task as automatic process (Autoarchive for examle the emails that are one moth old, moving to another pst, and compact to reduce the size of the main pst file)
0
 
KubejunkieCommented:
are the pst's on the server in a User Home path (example : \\servername\home$\username\archive.pst).

I ask because if they are you can use the Example i gave in my last post to resolve your problem.

Setup the Built in AutoArchive in outlook to run at a specific time such as a day before your backup script will run and to use a specifc path such as (example : \\servername\home$\username\archive.pst)
Then build a .bat script on your server to Run robocopy to move your archives to your backup location.
http://ss64.com/nt/robocopy.html
Then setup a windows task on the server with task schedule to run the .bat file at a predetermined time each month.
this will work because outlook will create a new PST each time it is run if there is no archive in that location.

If this is what you are using to backup your email for your company i would recommend against it and go for a much more robust service like sonavault. Pst files can become confusing especially if you are seperating them by each month for every user.

http://www.sonasoft.com/products/sonavault-email-archiving-software/
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now