Howto use PowerShell to search the server for all mail older than a certain date
We are preparing to implement a new retention policy and do not want email on our server older than 2 years. What would the syntax be for a PowerShell command to search across the entire server for email beyond that time frame? Is there a way for the command to output the statistics of how many email items and the total size that they take up?
November 20th, 2009 6:38pm

Hi, I am afraid that there is no Powershell command that we can use to get the number and size of messages which older than a certain day. Maybe you can use Export-Mailbox command with StartDate parameter to export the messages older than a certain date. ~~~~~~~~~~~~~~~~ Mike Shen TechNet Subscriber Support in forum If you have any feedback on our support, please contact tngfb@microsoft.com ~~~~~~~~~~~~~~~~
Free Windows Admin Tool Kit Click here and download it now
November 23rd, 2009 12:23pm

Hi,Export-Mailbox would be your friend here, though you will not be able to get all details, you will have to look at results and analyze.Refer: http://technet.microsoft.com/en-us/library/aa998579.aspxNitin Gupta (gupnit) | MVP - Exchange | http://www.nitingupta.in/blogs
November 23rd, 2009 12:46pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics