Remove specific message form our Exchange 2010 organization.

Dear All;

Can anyone help me to know how delete specific message from all organization users mailboxes in exchange 2010.

June 25th, 2015 4:46am

Hello;

Actually i have wrote an article for this topic, you can check this Link

Prerequisites:

Make sure the account running the PS command has the appropriate permissions; you need to specifically have access to the New-MailboxImportRequest cmdlet. If you dont have the correct permissions you will get an error The term New-MailboxImportRequest is not recognized as the name of a cmdlet.

To add the permission run the following command:

New-ManagementRoleAssignment -Name Import Export Mailbox Admins -user User Account -Role Mailbox Import Export

Change User Account in the above cmdlet to the actual username

Using EMS Exchange Management Shell to know who received this message and remove it from their mailboxes.

{First}  If you just need to know who is received the message you can use the following command:

Get-Mailbox -Server ServerName -ResultSize unlimited | Search-Mailbox -Targetfolder deleted items -Targetmailbox Mybackupmailbox -SearchQuery Received:11/24/2013 AND Subject:Type Subject Here -loglevel full

Note: the result of this search will be send to the target mailbox Mybackupmailbox and you can determine mailbox for this reason or you can use your mailbox if you is the administrator and you will get a copy of this message under the target folderdeleted items and also you can change it to be Inbox for example, also preferred to determine the date of this message that you look-up for, using the subject to determine the message subject and using Loglevel full to get attachment with the result details.


In the previous screen the ResultItemsCount refer to the number of the message founded in this user mailbox and the ResultItemsSize refer to the message size.

 {Second} To remove the message from mailbox server level use the following command:

Get-Mailbox -Server ServerName -ResultSize unlimited | Search-Mailbox -targetfolder deleted items -targetmailbox Mybackupmailbox -SearchQuery Received:11/24/2013 AND Subject:Type Subject Here -loglevel full -DeleteContent -force



Free Windows Admin Tool Kit Click here and download it now
June 25th, 2015 4:53am

Hi Mahmoud;

Thanks a lot it's working with me.

June 25th, 2015 5:12am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics