I needed to find all shared mailboxes and check if they had any "stuck" mail in Outbox:
Get-Mailbox -OrganizationalUnit 'domain.com/exchange resources' | `
Get-MailboxFolderStatistics -FolderScope Outbox | `
ft identity,name,itemsinfolder -AutoSize
I also wrote a quickliner 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
2 comments:
Thanks for the scripts. Very useful.
Thanks, just what I was looking for. The script did show one email stuck in the outbox for one account. Question: How can I actually view the Outbox in OWA for Exchange 2013 since I don't have ready access to the desktop system configured for this account?
Post a Comment