Thanks. I'll just have to incorporate the current FAI's into my script for now. 
I don't fancy learning EWS at the moment :)

From: bounce-9578404-8066...@lyris.sunbelt-software.com 
[mailto:bounce-9578404-8066...@lyris.sunbelt-software.com] On Behalf Of Michael 
B. Smith
Sent: 29 January 2013 17:35
To: MS-Exchange Admin Issues
Subject: RE: The true number of messages in a folder

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 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe exchangelist

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

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

Reply via email to