I need to identify the number of mails in each inbox folder of every mailbox on exchange 2007.
This command outputs the number of items. However, this is different to the actual number of mails in each inbox. Can this script be edited to ignore hidden items or is there another command that will output the inbox mail count, not item count?
Get-Mailbox -ResultSize unlimited | Get-MailboxFolderStatistics -FolderScope Inbox | Where
{$_.FolderPath -eq "/inbox"} | Sort-Object –Property ItemsinFolder |
Select Identity,FolderSize,ItemsinFolder
`joe prior