How can I purge older email from Exchange 2007

How can I purge older email from Exchange 2007
PPFAAsked:
Who is Participating?
 
lucid8Connect With a Mentor Commented:
The other option would be to use one of the following commands which actually exports the data to a PST prior to deletion which IMO would be wise in case you find you accidentally delete something you want later.  Even if you don't want the data I would still do this in case there is a misunderstanding etc, then you can tell the boss OK the data is out of the server but its in these PSTs and we can keep for archival OR if you give me the order I will delete upon your command, but why don't we wait a few days. weeks etc just in case we find we need them...

ALL MAILBOXESGet-Mailbox -Server MailServerName| Export-Mailbox -PSTFolderPath G:\temp\ -EndDate "12/31/2009 12:01:00" -DeleteContent -ValidateOnly

NOTE: The ValidateOnly switch instructs the command to which it is applied to evaluate all the conditions and requirements that are needed to perform the operation before run the full command.

So when applied to a command it runs through the whole process and performs each action as it would without the ValidateOnly switch. HOWEVER the command doesn't change any objects instead when the command completes its process, it displays a summary with validation results. If it indicates that the command was successful, you can run the command again and just remove the ValidateOnly switch. from the end of the command

SPECIFIC MAILBOX
Export-mailbox JoeH -PSTFolderPath G:\temp\ -DeleteContent -EndDate "12/31/2009 12:01:00"

I would suggest that you also setup a test mailbox to play with using the specific mailbox command first before attempting the ALL MAILBOXES COMMAND sample above
0
 
lloydclintonCommented:
Agreed Lucid8.  Also if you just want to keep the email server clean but require retention of email you should check into an email archiving solution.  I suggest Barracuda Networks Email Archiving appliance.
0
 
lucid8Commented:
Agreed, just comes down to the immediate business drives and long term data retention needs.
0
 
Glen KnightCommented:
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0
All Courses

From novice to tech pro — start learning today.