exchange 2013 mailbox size report script

hello,

i need a script to get mailbox that rich 80% of quota.

thanks for help
cawasakiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jian An LimSolutions ArchitectCommented:
Hi,

in previous exchange 2010, you will run the get-mailboxstatistic and look at the storagelimitstatus. (and you set your mailbox warning to 80%)
however, in exchange 2013, by default that attribute is not being populate.
you need download a script  from https://gallery.technet.microsoft.com/Get-MyMailboxStatistics-a-858d1efa

MOre  refer to

http://eightwone.com/2014/05/22/get-mymailboxstatistics/
0
Minecraft_ EndermanCommented:
The script in this blog should meet your requirement

http://blog.haake.nu/2015/01/exchange-2013-mailbox-quota-usage-and.html
0
cawasakiAuthor Commented:
@Kiss, this script i have tested and not work properly like i have post on blog:

i have test the script and it work without error, but i have an incorect percentage :

DisplayName TotalItemSize TotalDeletedItemSize ProhibitSendQuota QuotaPercent
----------- ------------- -------------------- ----------------- ------------
user1 684223 1172668284 97280000 1206
user2 140895 1135036880 97280000 1167
user3 12494 1054149862 97280000 1084

this user are on exchange 2007 or on exchnage 2013 with default database quota used.

thanks for help
0
cawasakiAuthor Commented:
@limjianan

i am not sure that your link can help me
0
bobluisCommented:
You can sort the list of all database mailboxes in descending or ascending order in one go:

Get-MailboxStatistics -Server SERVERNAME | Sort-Object TotalItemSize -Descending | ft DisplayName,@{label=”TotalItemSize(MB)”;expression={$_.TotalItemSize.Value.ToMB()}},ItemCount  -auto

Get-MailboxStatistics -database "DATABASE NAME" | Sort-Object TotalItemSize -Descending | ft DisplayName,@{label=”TotalItemSize(MB)”;expression={$_.TotalItemSize.Value.ToMB()}},ItemCount -auto


Get-MailboxStatistics -Server SERVERNAME | Sort-Object TotalItemSize -Descending | ft Displayname,Totalitemsize

Source:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.

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.