How to export storage Quotas list for all user in database

Dear sir

I would like to ask you about storage quotas.
How can I export storage quotas of user in database ? I don't want to get one by one user because many user in exchange server 2010


thanks
Joe
Joe_komkribAsked:
Who is Participating?
 
MichaelVHConnect With a Mentor Commented:
Hi there,

you can specify the server running

Get-Mailbox -Server 'Servername'

and you can specify the database using

Get-Mailbox -Database 'Databasename'

For more info on the possibilities of the Get-Mailbox cmdlet, I refer you to:
http://technet.microsoft.com/en-us/library/bb123685.aspx

Greets,

Michael
0
 
Mahmoud SabryCommented:
use the below command

Get-Mailbox | Get-MailboxStatistics | ft DisplayName,StorageLimitStatus,TotalItemSize
0
 
Joe_komkribAuthor Commented:
Dear msabry

Thank you very much for your comment .Could you please tell me more as below question ?
1.Can l specify database name ?
2.Please tell me .How to export to text file .

thanks
Joe
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
MichaelVHCommented:
Joe,

1. you can either use the Out-File cmdlet to write the output to a file eg
Get-Mailbox | Get-MailboxStatistics | Out-File C:\test.txt

or you can use the Export-CSV cmdlet and pipe it to that:
e.g. Export-Csv c:\scripts\test.txt

2. You can certainly filter based on a server, simply add a -Server parameter to the Get-Mailbox cmdlet!

Greets,

Michael
0
 
Joe_komkribAuthor Commented:
dear all
Thanks , could you tell me if i want to speicy database neme? How can i use command?

regards,
komkrib
0
 
MichaelVHCommented:
Get-Mailbox -Server 'Servername'
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.

All Courses

From novice to tech pro — start learning today.