Hi everyone<\/p>\n
I am trying find/create a report that shows me the top 10 users with the largest Exchange mailbox over a certain size.<\/p>\n
I am not having much luck, can anyone assit with this??<\/p>\n
Thanks<\/p>\n
Greg<\/p>","upvoteCount":5,"answerCount":8,"datePublished":"2012-11-20T13:27:22.000Z","author":{"@type":"Person","name":"gregfarmer7959","url":"https://community.spiceworks.com/u/gregfarmer7959"},"acceptedAnswer":{"@type":"Answer","text":"
This will give you the top 10 in Exchange 2010<\/p>\n
Get-MailboxDatabase “<insert database name or don’t enter one for all DB’s>” | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount | Select –first 10 >> C:*name_of_file*.txt<\/strong><\/p>\n Replace the proper items in that line of code with your environment.<\/p>\n -Jay<\/p>","upvoteCount":1,"datePublished":"2012-11-20T13:36:41.000Z","url":"https://community.spiceworks.com/t/mailbox-limits/178029/5","author":{"@type":"Person","name":"jay6111","url":"https://community.spiceworks.com/u/jay6111"}},"suggestedAnswer":[{"@type":"Answer","text":" Hi everyone<\/p>\n I am trying find/create a report that shows me the top 10 users with the largest Exchange mailbox over a certain size.<\/p>\n I am not having much luck, can anyone assit with this??<\/p>\n Thanks<\/p>\n Greg<\/p>","upvoteCount":5,"datePublished":"2012-11-20T13:27:22.000Z","url":"https://community.spiceworks.com/t/mailbox-limits/178029/1","author":{"@type":"Person","name":"gregfarmer7959","url":"https://community.spiceworks.com/u/gregfarmer7959"}},{"@type":"Answer","text":" In Management Shell use the below command to list all mailboxes by size.<\/p>\n Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | ft DisplayName,@{label=“TotalItemSize(MB)”;expression={$_.TotalItemSize.Value.ToMB()}},ItemCount<\/p>","upvoteCount":0,"datePublished":"2012-11-20T13:35:03.000Z","url":"https://community.spiceworks.com/t/mailbox-limits/178029/2","author":{"@type":"Person","name":"simonpearson8397","url":"https://community.spiceworks.com/u/simonpearson8397"}},{"@type":"Answer","text":" I just go into ESM, go to mailboxes, then sort by mailbox size. I then do a screenshot, then crop with paint.<\/p>\n I think there is a widget on the desktop homepage, but haven’t used it yet.<\/p>","upvoteCount":1,"datePublished":"2012-11-20T13:35:53.000Z","url":"https://community.spiceworks.com/t/mailbox-limits/178029/3","author":{"@type":"Person","name":"chadwetherington","url":"https://community.spiceworks.com/u/chadwetherington"}},{"@type":"Answer","text":" Can you start with this one?<\/p>\n http://community.spiceworks.com/reports/516<\/a><\/p>","upvoteCount":0,"datePublished":"2012-11-20T13:36:08.000Z","url":"https://community.spiceworks.com/t/mailbox-limits/178029/4","author":{"@type":"Person","name":"michael9595","url":"https://community.spiceworks.com/u/michael9595"}},{"@type":"Answer","text":" what version of exchange are you using ?<\/p>\n if you are running a single exchange and you are only looking for the top 10 mailboxes by size you can just you can just look at the mailbox store, mailboxes and order the list by size.<\/p>\n stef<\/p>","upvoteCount":0,"datePublished":"2012-11-20T13:37:07.000Z","url":"https://community.spiceworks.com/t/mailbox-limits/178029/6","author":{"@type":"Person","name":"stefuk","url":"https://community.spiceworks.com/u/stefuk"}},{"@type":"Answer","text":" Stefuk - We are using 2010.<\/p>\n Thanks for all your help guys. Super helpful<\/p>","upvoteCount":0,"datePublished":"2012-11-20T14:21:46.000Z","url":"https://community.spiceworks.com/t/mailbox-limits/178029/7","author":{"@type":"Person","name":"gregfarmer7959","url":"https://community.spiceworks.com/u/gregfarmer7959"}},{"@type":"Answer","text":" $a = “” <\/p>\n Get-Mailbox -database “Your Mailbox Database” | Get-MailboxStatistics | Sort-Object TotalItemSize -descending |Select-Object DisplayName,ItemCount,@{name=“MailboxSize”;exp={$_.totalitemsize}} -first 2500 | ConvertTo-Html -head $a -body $header|Out-File “c:\\Scripts\\ReportGetMailboxSizes.htm” $smtp = “Your_SMTP_SERVER. I use localhost” function Send-Mail{ $mail.IsBodyHtml = $true Send-Mail -smtpServer $smtp -from $from -to $to -subject $subject -body $body<\/p>","upvoteCount":0,"datePublished":"2012-11-20T18:05:59.000Z","url":"https://community.spiceworks.com/t/mailbox-limits/178029/8","author":{"@type":"Person","name":"dustymariehaberkern4849","url":"https://community.spiceworks.com/u/dustymariehaberkern4849"}}]}}
\n$a = $a + “BODY{font-family:Arial;background-color:peachpuff;}”
\n$a = $a + “TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}”
\n$a = $a + “TH{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:thistle}”
\n$a = $a + “TD{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:PaleGoldenrod}”
\n$a = $a + “”
\n$header = “<\/p>Users Mailbox Size Status<\/h1>”
\n#Invoke-Expression<\/span> C:\\Scripts\\ReportGetMailboxSizes.htm<\/p>\n
\n$from = “Your_From_Address”
\n$to = “Your_To_Address”
\n$body = get-content “C:\\Scripts\\ReportGetMailboxSizes.htm”
\n$subject = “Users Mailbox Size Status”<\/p>\n
\nparam($smtpServer,$from,$to,$subject,$body)
\n$smtp = new-object system.net.mail.smtpClient($SmtpServer)
\n$mail = new-object System.Net.Mail.MailMessage
\n$mail.from = $from
\n$mail.to.add($to)
\n$mail.subject = $subject
\n$mail.body = $body<\/p>\n<\/a>Send email in HTML format<\/h1>\n
\n$smtp.send($mail)
\n}<\/p>\n