Exchange 2010 power shell command wants "identy"

Posted on 2011-10-12
Last Modified: 2012-05-12
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:

This happens for other commands also. What is it looking for?
Question by:ajdratch
    LVL 22

    Accepted Solution

    add the switch  -server YOURSERVERNAME
    LVL 49

    Expert Comment

    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


    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Easy CSR creation in Exchange 2007,2010 and 2013
    Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
    In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now