My company needs to archive our email for security purposes. We have all
mail being sent to one mailbox now. We are manually archiving these emails
to a PST. I'd like a way to have a scheduled task run that will archive (and
remove in the fashion that Outlook 2003 does) all email from that inbox from
a certain time (the time and date that the command was started) and send an
email to confirm that it either completed or failed. I have been browsing
the Internet trying to find something. The only thing I could find was the
Export command in PowerShell. But it doesn't look like it removes the mail
from the inbox, just makes a copy of it. Is that correct? Any ideas on how
I could write this command? Thanks for your help!
Export-Mailbox has the -DeleteContent switch to delete messages from the
mailbox
Export-Mailbox
http://technet.microsoft.com/en-us/library/aa998579(EXCHG.80).aspx

Signature
Bharat Suneja
Microsoft Corporation
blog: exchangepedia.com/blog
This posting is provided "AS IS" with no warranties, and confers no
rights. Please do not send email directly to this alias. This alias is for
newsgroup purposes only.
----------------------------
> My company needs to archive our email for security purposes. We have all
> mail being sent to one mailbox now. We are manually archiving these
[quoted text clipped - 13 lines]
> how
> I could write this command? Thanks for your help!
Jim Oltman - 21 Jul 2008 22:44 GMT
OK, so it looks like the export command will look something like this:
Export-Mailbox -Identity archiver@mydomain.com -DeleteContent -EndDate
07/21/2008 -PSTFolderPath C:\Archives\072108.pst
Now I just need to figure out how to import the current date and change the
pst name to the current date. I just started researching PowerShell today,
so I'm sure it'll take some time. I think I have to call the Outlook COM
object as well.
Jim
> Export-Mailbox has the -DeleteContent switch to delete messages from the
> mailbox
[quoted text clipped - 19 lines]
> > how
> > I could write this command? Thanks for your help!