Solved

PST Automatic autoarchive and compact

Posted on 2012-03-30
5
1,705 Views
Last Modified: 2012-04-05
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
Comment
Question by:lnrivera
  • 3
  • 2
5 Comments
 
LVL 2

Expert Comment

by:Kubejunkie
Comment Utility
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
 

Author Comment

by:lnrivera
Comment Utility
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
 
LVL 2

Expert Comment

by:Kubejunkie
Comment Utility
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
 

Author Comment

by:lnrivera
Comment Utility
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
 
LVL 2

Accepted Solution

by:
Kubejunkie earned 500 total points
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Outlook Free & Paid Tools
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
The purpose of this video is to demonstrate how to set up an account with Mailchimp. This will be demonstrated using a Windows 8 PC. Tools Used are: Mailchimp.com Go to Mailchimp.com : Enter an Email, Username, and Password. Click Create My Acco…
The purpose of this video is to demonstrate how to set up Lists in Mailchimp. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchimp account. : Click on Lists. Click on Create List Button : Choose the desi…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now