Hi,
I am looking for a way to run a report on exactly how many items are in a users inbox (inbox only, not subfolders). We are running Exchange 2013 and the newest version of SAM.
I have tried this command in power shell:
Get-Mailbox | Get-MailboxFolderStatistics | Where {$_.Name -match “Inbox”} | Select Identity, Name, ItemsInFolder | Sort-Object ItemsInFolder -descending | Export-csv c:\temp\MailboxItemCountInbox.csv
This command in PowerShell actually shows more items that are really in my inbox.
I have read that this is the reason:
That is because when you use Get-MailboxFolderStatistics it includes NON_IPM_DATA (either third-party add-on stuff or other internal items which help your mailbox function.
Is there anyway to use SAM to help for me to seek this information? If not, does anyone know a powershell command to do so?