Thursday, December 24, 2009

Do You Need to clear contents of a particular folder in all Exchange mail users Mailboxes??


Eg: To clear contents of sync Issues folder from all users (MS Exchange 2007)

Export-Mailbox -identity -IncludeFolders '\Sync Issues' –DeleteContent

for all mailboxes/per database, below command should work.

Get-Mailbox -Database |Export-Mailbox -IncludeFolders '\Sync Issues' -DeleteContent

It requires FullAccess Rights on all mailboxes for our user ID & below command can be used.

Get-Mailbox -Server "" | Add-MailboxPermission -User -AccessRights FullAccess

High Mail queue /Mail flow issue -
________________________________________________



1. Check the queue & observe - Identify what kind of mails are stuck ( there are chances of spam / autogenerated or application relaying mails causing issue) .

2. Check any Services are stopped ? - Ensure all necessary services started

3. Check in Event Viewer for any error.