cmdlet for querying users inbox

i have over 600 users. i would like to know who has the most emails in their inbox. is there a cmdlet for powershell to give me these stats?

thanks
ttrbrtsnAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Adam FarageSr. Enterprise ArchitectCommented:
You can get a nice report by using a powershell script I always use, which is Get-MailboxReport from Paul Cunningham: http://exchangeserverpro.com/get-mailboxreport-ps1-v1-02-released/

I would recommend this. You can format the Excel spreadsheet out so it is presentable, and then figure out who has what in each folder listed within the mailbox. I use this report all the time for Exchange sizing.
0
Justin YeungSenior Systems EngineerCommented:
Get-Mailbox -Database DatabaseName -resultsize unlimited | % {Get-MailboxStatistics $_ | select DisplayName,ItemCount | Sort-Object ItemCount}
0
suriyaehnopCommented:
Do the 600 users are on same DB or located on different DB. If they are on same DB then you can use cmdlet posted by Justin but if they are on different DB the best way to use preparing the CSV file.

Say, your CSV has Username as header..

Username
User1
User2
.....
.....
User600

Import-Csv C:\Filename.csv | foreach { Get-MailboxStatistics $_.Username } | Format-Table Displayname,ItemCount

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ttrbrtsnAuthor Commented:
not exactly what im looking for
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.