mailbox recipient size
Hi all i would like to ask a question regarding Mailbox & recipient size see i have many users,with send\receive limits, and 3 different plan-size for mailboxes i would like to know a powershell command that allow me to list the Usermailboxname mailboxsize mailboxusage\free Thanks in AdvancedPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Remember to vote helpful,if the reply was helpful ,provinding information...
March 1st, 2011 2:21am

try using the get-mailboxstatistics cmdlet in order to get this information. get-mailboxserver | Get-MailboxStatistics | Sort -Property totalitemsize | ft DisplayName, @{expression={$_.totalitemsize.value.ToMB()};label="Mailbox Size (MB)"}, @{expression={$_.totaldeleteditemsize.value.ToMB()};label="Deleted Mails (MB)"}, itemcount, lastlogontime, lastlogofftime,lastloggedonuseraccount regards Thomas Paetzold visit my blog on: http://sus42.wordpress.com
Free Windows Admin Tool Kit Click here and download it now
March 1st, 2011 4:34am

Thanks Peddy for that PS cmd i would like to ask another noob question in Powershell is there anyway i can mix these 2 command in the same script: Get-Mailbox | format-list ProhibitSendQuota,OrganizationalUnit,windowsemailaddress with Get-MailboxStatistics | format-list totalitemsize hope anyone can guide me with this thanks in advanced /edit: enhanced details for the script : Get-Mailbox USER@DOMAIN.com| format-table Displayname,ProhibitSendQuota,windowsemailaddress Get-MailboxStatistics USER@DOMAIN.com| format-table displayname,totalitemsize Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Remember to vote helpful,if the reply was helpful ,provinding information...
March 1st, 2011 8:02am

OK in this case you have to write a powershell script it looks like $mailboxes = get-mailbox foreach($mailbox in $mailboxes) { # get the mailboxstatistics for a specified Mailbox $statistics = get-mailboxstatistics -identity $mailbox write-host $mailbox.displayname $mailbox.Prohibitsendquota $statistics.totalitemsize } now you are able to calculate each value/percentage you want. regards Thomas Paetzold visit my blog on: http://sus42.wordpress.com
Free Windows Admin Tool Kit Click here and download it now
March 1st, 2011 11:01am

There's an example here. Get-Mailbox –Database SRV1\SG01\DB01 Select-Object name,primarysmtpaddress,DisplayName,Database,@{n="Size(MB)";e = {$MBXstat = Get-MailboxStatistics $_.name; $MBXstat.totalItemsize.value.toMB()}},@{n="Items"; e = {$MBXstat = Get-MailboxStatistics $_.name ; $MBXstat.itemcount}} http://get-exchange.blogspot.com/2009/03/did-you-ever-needed-to-supply-list-of.htmlJames Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
March 1st, 2011 11:02am

Hi: Script is not my department. You can ask your question to http://social.technet.microsoft.com/forums/en-US/exchangesvrdevelopment/threads/
Free Windows Admin Tool Kit Click here and download it now
March 1st, 2011 10:46pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics