Stuck mail in Outbox – Powershall Exchange 2010

Check all mailboxes with “stuck” e-mails in Outbox:

Get-Mailbox -OrganizationalUnit ‘domain.com/exchange resources’ |
Get-MailboxFolderStatistics -FolderScope Outbox |
ft identity,name,itemsinfolder -AutoSize

Script for getting all mailboxes with items more than 0 in Outbox:

Get-Mailbox -resultsize unlimited|
Get-MailboxFolderStatistics -FolderScope Outbox |
where {$_.itemsinfolder -gt ‘0’} |
ft identity,name,itemsinfolder -AutoSize

Source:

This entry was posted in Exchange. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *