I think you will have to use EWS and exclude FAIs.

Sent from my Windows Phone
________________________________
From: Sobey, Richard A
Sent: 1/29/2013 12:31 PM
To: MS-Exchange Admin Issues
Subject: The true number of messages in a folder

I’ve been asked to write a very simple script to monitor the number of items in 
the Inbox of a particular mailbox, and email an alert if this number goes above 
a threshold. Works perfectly.

The problem is, using Outlook, the Inbox is empty. Using 
Get-MailboxFolderStatistics, there are 10 items in the mailbox. (Using my own 
mailbox as another example, Outlook says 8257, Powershell says 8340).

I understand there could be hidden messages, or other things that may 
contribute to this, but is there any way I can query the number of actual 
messages that the user would see?

Thanks

Richard

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
[email protected]<mailto:[email protected]>
with the body: unsubscribe exchangelist

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe exchangelist

Reply via email to