Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Inbox mail count

$
0
0
 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


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>