Jump to content

Recommended Posts

Posted

Is there a powerless cmd that will enable me to delete e-mails from the Sent Items folder for all users?

 

I have a command that I run to delete all items, but I am hoping to narrow it down. Below is the command that I run to delete e-mails between certain dates.

 

Get-Mailbox -organizationalunit "Teaching Staff" | Search-Mailbox -SearchQuery '(Received:01/01/2011..01/09/2012)' -deletecontent

 

Does anyone have a way of doing this?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...