jclsandiego
asked on
Exchange 2013 delete all sent email from one user to all users in domain.
So I was asked to do something funky in exchange. The owner is selling the company and he is worried one of his employees might come back and take him to court. He occasionally sends out border line jokes or makes border line comments. His task to me: Delete from the server every email I have ever sent my employees. I guess I can log into every computer and delete from outlook but is there an easier way?
Thank you much.
Jorge
Thank you much.
Jorge
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you!!
ASKER
Looking for some follow up help. I created a test email and preceded to run the command.
After I press enter I get this:
Get-Mailbox -Server "*exchange*" | Search-Mailbox -SearchQuery 'Sender:"test@xyx.com" -DeleteContent
>> _
a blinking cursor on the next line after the >>
no errors.
Am I missing a step?
After I press enter I get this:
Get-Mailbox -Server "*exchange*" | Search-Mailbox -SearchQuery 'Sender:"test@xyx.com" -DeleteContent
>> _
a blinking cursor on the next line after the >>
no errors.
Am I missing a step?
you're missing a '
you write: Get-Mailbox -Server "*exchange*" | Search-Mailbox -SearchQuery 'Sender:"test@xyx.com" -DeleteContent
you shoul write
Get-Mailbox -Server "*exchange*" | Search-Mailbox -SearchQuery 'Sender:"test@xyx.com" '-DeleteContent
you write: Get-Mailbox -Server "*exchange*" | Search-Mailbox -SearchQuery 'Sender:"test@xyx.com" -DeleteContent
you shoul write
Get-Mailbox -Server "*exchange*" | Search-Mailbox -SearchQuery 'Sender:"test@xyx.com" '-DeleteContent
If you just want to search current mailboxes you should take a look at this - https://technet.microsoft.com/en-us/library/dd298059(v=exchg.150).aspx