Link to home
Start Free TrialLog in
Avatar of pramod1
pramod1Flag for United States of America

asked on

Exchange office 365

I want to query 1 mailbox for 1 email

I want to confirm that email is with that user

I have the subject of the email
Avatar of Saif Shaikh
Saif Shaikh
Flag of India image

Run the message trace using mail flow tab in O365 with the subject and recipient option.
ASKER CERTIFIED SOLUTION
Avatar of timgreen7077
timgreen7077

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pramod1

ASKER

How do I run it against whole organization
Avatar of timgreen7077
timgreen7077

To run against entire org you can do this:

Get-Mailbox | Search-Mailbox -SearchQuery subject:"verbatim subject line" -TargetMailbox "your mailbox" -TargetFolder inbox -LogOnly
Avatar of pramod1

ASKER

i need to delete one  suspicious email from the company
This will search your entire org and delete the email from all the mailboxes that have that subject line.

Get-Mailbox | Search-Mailbox -SearchQuery subject:"verbatim subject line" -deletecontent -confirm:$false

Be careful using this cmdlet though.