get mailboxes where items not older 30 days in inbox folder
Hi everyone!
I have a SCC cluster.
I need to get mailboxes where items not older more then 30 days in inbox folder via powershell. Can you help ?
MVP | MCP Club lead, Moscow
August 1st, 2011 11:50am
On Mon, 1 Aug 2011 15:43:48 +0000, Alexey Karmo wrote:
>
>
>Hi everyone!
>
>I have a SCC cluster.
>
>I need to get mailboxes where items not older more then 30 days in inbox folder via powershell. Can you help ?
The get-mailboxfolderstatistics with the "-FolderScope" and
"-IncludeOldestAndNewestItems" parameters will get the information
from the mailboxes. You can pipe the output into a "where" that checks
on the date of the oldest item in the folder.
---
Rich Matheisen
MCSE+I, Exchange MVP
--- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
August 1st, 2011 10:44pm
Hi Alexey,
You can use EWS Managed API to help on this issue.
Here is related information for you, hope can give you some help:
PowerShell Report to Display items older than 30 days in users mailboxes?
http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/thread/a0dc376b-6cb0-40b1-8045-39c59d3a66ba
HOW TO: Build a complex search using SearchFilter and SearchFilterCollection in EWS Managed API 1.0
http://blogs.msdn.com/b/akashb/archive/2010/03/05/how-to-build-a-complex-search-using-searchfilter-and-searchfiltercollection-in-ews-managed-api-1-0.aspx
Thanks,
Evan Liu
TechNet Subscriber Support
in forum
If you have any feedback on our support, please contact
tngfb@microsoft.com
August 2nd, 2011 12:30am
We made this one:
[PS] C:\so>Get-Mailbox -server DC-CLMB01 -ResultSize Unlimited -RecipientTypeDetails UserMailbox | Get-MailboxFolderStatistics
-FolderScope Inbox -Inc
ludeOldestAndNewestItems | Where-Object {$_.OldestItemReceivedDate -ge ($($d.addDays(-31)))} | ft identity > c:\so\new1.txt
But it's that we need. Because itis folders. Not alias of user.
MVP | MCP Club lead, Moscow
Free Windows Admin Tool Kit Click here and download it now
August 2nd, 2011 12:30pm