Quantcast
Channel: Exchange Server 2013 - General Discussion forum
Viewing all articles
Browse latest Browse all 4521

How to search and delete an email from the mailbox

$
0
0

hi,

have a hybrid scenario, exchange 2013 and office 365

what command should I use to search and delete an email from the organization mailbox i.e. I do not want that email to be in any users inbox.

I have tried this command but it does not work, it says search-mailbox is not recognized as the name of the command let.

Get-Mailbox -ResultSize unlimited | Search-Mailbox -SearchQuery 'Subject:"Download this file"' -DeleteContent

kindly assist.


Kind Regards, Khuzema R.


Viewing all articles
Browse latest Browse all 4521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>