• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 759
  • Last Modified:

Exchange 2010 SP1 Purge

I want to purge a few e-mails from a users "purge" and when I do a search query the same e-mails still show up.
  I run the follow exshell  
1.get-mailbox <user> | search-mailbox -searchquery "From:'xxx@xxx.com'" -deletecontent -searchdumpsteronly -Force

2.just in case...
get-mailbox <user> | search-mailbox -searchquery "From:'xxx@xxx.com'" -deletecontent -searchdumpster -Force  

Then I do a search to make sure...

get-mailbox <user> | search-mailbox -searchquery "From:'xxx@xxx.com'"
 -searchdumpsteronly -Targetmailbox "Discovery search Mailbox -Targetfolder "Inbox"

I am trying to avoid deleting the dumpster altogether.

Exchange 2010 Sp1 Win2K8 R2
I have a CAS Arrey with a DAG set up.....
  • 2
2 Solutions
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
Your first 2 commands tell me that your trying to delete content from User Mailbox whereas the 3 command says for DiscoverMailbox ?

What if you run the below command ..... do you get the Output ?
Get-Mailbox "UserName" | search-mailbox -searchquery "From:'xxx@xxx.com'" -searchdumpsteronly

- Rancy
TenchaAuthor Commented:
I found the answer, you have to take of single item recovery...set to $false. After that you can run the search query and delete.
TenchaAuthor Commented:
Without the rights pulled off, you can not delete...you can search but nothing else.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now