- Moved by Bill_Stewart Friday, March 27, 2015 10:46 PM Move to more appropriate forum
- Moved by Fei XueMicrosoft contingent staff 4 hours 26 minutes ago relative to Exchange
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
- Proposed as answer by jrv Saturday, March 28, 2015 12:24 PM
- Marked as answer by Simon_WuMicrosoft contingent staff, Moderator 58 minutes ago
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