Link to home
Start Free TrialLog in
Avatar of ajdratch
ajdratch

asked on

Exchange 2010 power shell command wants "identy"

I am trying to get all the mailbox sizes in an Exchange 2010 database. When I run commands I have used before, it asks for the "identity"
When I run
Get-MailboxStatistics | fl Displayname,{$_.TotalItemSize.Value.ToMB()}

It comes back with:

cmdlet Get-MailboxStatistics at command pipeline position 1
Supply values for the following parameters:
Identity:

This happens for other commands also. What is it looking for?
ASKER CERTIFIED SOLUTION
Avatar of chakko
chakko
Flag of United States of America 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 Akhater
chakko's solution would work if you have only one server, if you have more than one server you can use the below

I also added an export to csv option if you need it


$mbxs = Get-Mailbox -ResultSize unlimited
$mbxs | %{ Get-MailboxStatistics $_ } | select-object Displayname,{$_.TotalItemSize.Value.ToMB()} | export-csv c:\stats.csv

Open in new window