command to find oldest email in mailbox
how to find oldest email date on a particular mailbox through exchange management shell command ?
March 27th, 2015 10:18pm

Hello Karthick,

I'd suggest asking Exchange Server specific questions on the Exchange Server Development forum instead. The current one is for Outlook specific questions.  

Free Windows Admin Tool Kit Click here and download it now
March 28th, 2015 3:25am

Get-MailboxFolderStatistics -IncludeOldestAndNewestItems -Identity <mailbox> | 
    Where OldestItemReceivedDate -ne $null | 
    Sort OldestItemReceivedDate | 
    Select -First 1 OldestItemReceivedDate

March 28th, 2015 9:17am

Karthick asked in The Official Scripting Guys Forum!, but Bill_Stewart moved it here for some reason. Exchange Server 2013 - General Discussion or Windows PowerShell would be more appropriate.
Free Windows Admin Tool Kit Click here and download it now
March 28th, 2015 9:26am

Karthick asked in The Official Scripting Guys Forum!, but Bill_Stewart moved it here for some reason. Exchange Server 2013 - General Discussion or Windows PowerShell would be more appropriate.

Actually any forum BUT Outlook would be OK. I was also confused by the wording of the question at first. Not the OPs fault but just one of wording and visual/perceptual interpretation.

As you have shown, the request can be handled by the Exchange Shell quite easily although, with the Exchange 2010 shell, the "where" may have to be reverted.

March 28th, 2015 12:30pm

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

Other recent topics Other recent topics