Posts Tagged ‘mailbox’

Resolve Quarantined Mailbox Issues in Exchange

Thursday, October 24th, 2013

Exchange 2010 will quarantine a corrupt, or poisoned, mailbox in the Information Store database. If a  mailbox is corrupt, dirty or poisoned, rather than forcing us to run eseutil or isinteg while the database is offline, Exchange just quarantines the mailbox. If you run into one of these, you can remove from the quarantine to run a mailbox repair by deleting a registry key. To figure out which key to run, first locate the GUID of the mailbox using PowerShell:

Get-MailboxStatistics -identity USERNAME | fl

Then copy the mailbox GUID and open up the registry and make a backup (which I do every time I change the registry btw) of the registry. Then view the following key:

HKLM\SYSTEM\CURRENTCONTROLSET\SERVICES\MSEXCHANGEIS\\PRIVATE-(DB GUID)\QUARANTINEDMAILBOXES\MAILBOXGUID

Delete the key for the mailbox that displays as poisoned. Then, restart the Information Store and run a quick iisreset.

Export Exchange 2007 Mailbox Users Sorted By size

Tuesday, November 20th, 2012

Let’s say you need to run a report in Exchange 2007 containing the following items:

  • AD Display Name
  • Mailbox Size
  • Mailbox Item Count
  • Current Storage Limit (if applicable)

And you need this list sorted by Mailbox Size, descending, you would run the following command in Exchange Management Shell, on the Exchange 2007 server, using AD/Exchange admin rights:

Get-MailboxStatistics | where {$_.ObjectClass –eq “Mailbox”} | Sort-Object TotalItemSize –Descending | ft @{label=”User”;expression={$_.DisplayName}},@{label=”Total Size(MB)”;expression={$_.TotalItemSize.Value.ToMB()}},@{label=”Items”;expression={$_.ItemCount}},@{label=”StorageLimit”;expression={$_.StorageLimitStatus}} -auto >c:\mx_size_report.txt

The above will output to a txt file called “mx_size_report.txt”

Let’s say you want to view this in Excel, simply open Excel and import this TXT file.  You will now have an Excel manageable file with the report values you just generated.