MXS 2013
Would like to be able to delete specific email from entire organization.
Email with malware, confidential email that was sent wrong or just junk removal.
Maybe search with subject or attachment name.
Technology Tips and News
MXS 2013
Would like to be able to delete specific email from entire organization.
Email with malware, confidential email that was sent wrong or just junk removal.
Maybe search with subject or attachment name.
This would help you...
Search and delete messages - https://technet.microsoft.com/en-us/library/Ff459253(v=EXCHG.150).aspx
I get error below:
[PS] C:\>Search-Mailbox -Identity "receptionist" -SearchQuery 'Subject:"car wash"' -DeleteContent
A parameter cannot be found that matches parameter name 'DeleteContent'.
+ CategoryInfo : InvalidArgument: (:) [Search-Mailbox], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Search-Mailbox
+ PSComputerName :
Make sure you have proper permission mentioned in the article....
You need to be assigned the following management roles to search for and delete messages in users' mailboxes:
Mailbox Search This role allows you to search for messages across multiple mailboxes in your organization. Administrators aren't assigned this role by default. To assign yourself this role so that you can search mailboxes, add yourself as a member of the Discovery Management role group. See Assign eDiscovery permissions in Exchange.
Mailbox Import Export This role allows you to delete messages from a user's mailbox. By default, this role isn't assigned to any role group. To delete messages from users' mailboxes, you can add the Mailbox Import Export role to the Organization Management role group. For more information, see the "Add a role to a role group" section in Manage role groups .
Yes, added administrator as member of Discovery Management roles.
Also added Mailbox Import Export role to Org Mgmt role groupAlso added Mailbox Import Export role to Org Mgmt role group
I believe this is what you mean by adding mailbox import export role to org mgmt role group...
new-ManagementRoleAssignment -Role "Mailbox Import Export" -SecurityGroup "Organization Management"
Did you reopen the Exchange Management Shell after this?
yep, u r right. I just didn't re-open the shell after the changes.
Thank you very much!!!!