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

No comments:

Post a Comment