Link to home
Start Free TrialLog in
Avatar of Zee
ZeeFlag for United States of America

asked on

Export list and item count of mailboxes

I have Exchange 2013 and have the command to get a list of mailboxes and total size of each but I'd like pull a list with the item count in each of the mailboxes as you can in Outlook on individual mailboxes.  How would I do this?
Avatar of Saif Shaikh
Saif Shaikh
Flag of India image

(Get-MailboxFolderStatistics -Identity Username@Domain.com) |sort itemsinfolder -descending |ft folderpath,itemsinfolder,FolderSize

The results will look like this:

User generated image

OR

Get-MailboxFolderStatistics -Identity <username> | Sort-Object FolderSize -Descending | FT folderpath, foldersize, ItemsinFolder -autosize
ASKER CERTIFIED SOLUTION
Avatar of DEMAN-BARCELO (MVP) Thierry
DEMAN-BARCELO (MVP) Thierry
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Zee

ASKER

Saif, thank you.  That looks good but it shows 1 mailbox.  We are trying to get  our users to do some cleanup and wanted to get stats before and after.  Total Mailbox items and Mailbox size.  It does help to have that script for individuals, though.  Thanks again.
Avatar of Zee

ASKER

Deman, thank you.  This gets me the info I need.  I appreciate your input.