Script for showing mailbox size and quota
Hi, Can anyone help me to get a script to show both mailbox size and quota (send prohibit). I am finding it very difficult to combine get-mailbox & get-mailboxstatistics Thanks Spinv
May 1st, 2010 12:03pm

Did you check this : http://blogs.flaphead.dns2go.com/archive/2008/11/14/get-mailboxstatistics-with-totalitemsize-in-mb-to-a-csv-file.aspx http://www.petri.co.il/getting-mailbox-sizes-in-powershell.htm Anil
Free Windows Admin Tool Kit Click here and download it now
May 1st, 2010 4:29pm

Hi, Can anyone help me to get a script to show both mailbox size and quota (send prohibit). I am finding it very difficult to combine get-mailbox & get-mailboxstatistics Thanks Spinv Try this $mailboxes = get-mailbox -ResultSize Unlimited ForEach ($mailbox in $mailboxes) { # For each Mailbox get the stats $stats = Get-MailboxStatistics $mailbox.Identity $ReturnedObj = New-Object PSObject $ReturnedObj | Add-Member NoteProperty -Name "Name" -Value $mailbox.DisplayName $ReturnedObj | Add-Member NoteProperty -Name "Max Mailbox Size (MB)" -Value $mailbox.PrihibitSendReceiveQuota $ReturnedObj | Add-Member NoteProperty -Name "Current Mailbox Size (MB)" -Value $stats.TotalItemSize Write-Output $ReturnedObj } Save the lines in a .ps1 file and put this file in the scripts folder in Exchange installation folder and then just put the name of .ps1 file in EMS and press Enter. Regards, Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
May 1st, 2010 11:33pm

$mailboxes = get-mailbos -ResultSize Unlimited Small typo. Should be: $mailboxes = get-mailbox -ResultSize Unlimited MCTS: Messaging | MCSE: S+M | Small Business Specialist
Free Windows Admin Tool Kit Click here and download it now
May 2nd, 2010 12:16am

$mailboxes = get-mailbos -ResultSize Unlimited Small typo. Should be: $mailboxes = get-mailbox -ResultSize Unlimited MCTS: Messaging | MCSE: S+M | Small Business Specialist Thanx Jon, typo corrected. Regards,Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
May 2nd, 2010 12:19am

Or you can try this Get-MailboxStatistics | Where {"IssueWarning","ProhibitSend","MailboxDisabled" -Contains $_.StorageLimitStatus} | Format-Table DisplayName,TotalItemSize,StorageLimitStatus From: A Day in the Life of an Exchange Administrator http://technet.microsoft.com/en-us/library/bb738403(EXCHG.80).aspxFrank Wang
Free Windows Admin Tool Kit Click here and download it now
May 4th, 2010 11:53am

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

Other recent topics Other recent topics