How would i go about deleting an email that was sent out to everyone by accident. I have this command line that work for number email subject, but when there is a special character it doesn't seem to work.
Get-Mailbox -Server "exchangeserver.cb.smbmi.local" | Search-Mailbox -SearchQuery 'Subject:"test message to delete" -deletecontent
it doesn't work if the subject has # or any special characters in them. example
Get-Mailbox -Server "cascbex04.cb.smbmi.local" | Search-Mailbox -SearchQuery 'Subject:"#test# message/test to delete" -deletecontent
this exchange 2010
how do i get around that.
thanks in advance.