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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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
All Courses

From novice to tech pro — start learning today.