Solved

PST Automatic autoarchive and compact

Posted on 2012-03-30
5
1,886 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 2

Expert Comment

by:Kubejunkie
ID: 37788968
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
ID: 37789169
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
ID: 37789191
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
ID: 37791854
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
ID: 37803054
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
can i read my emails on lamp ftp 4 70
Email question 19 91
A special purpose email host. 6 55
Windows 10 and multi programs open freezing 6 62
What does UTC stand for?  “Coordinated Universal Time” – Think of this as the true time on Planet Earth that never changes with the exception of minor leap seconds here and there to account for the changes in the planet's rotation.   What does th…
This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
This Micro Tutorial will demonstrate the easy use of Gmail embedding images in your email so the recipient of your email can view them in context.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

734 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