• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3737
  • Last Modified:

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?
0
ajdratch
Asked:
ajdratch
1 Solution
 
chakkoCommented:
add the switch  -server YOURSERVERNAME
0
 
AkhaterCommented:
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

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now