GCTTechs
asked on
Search-Mailbox for missing/misplaced email
What command or script can I run to search a particular mailbox for an email based on a subject?
Office 365 (Exchange Online)
Ive been trying :
1. Search-Mailbox -Identity "JohnDoe" -SearchQuery 'Subject:"Saturday Event"'
2. Get-Mailbox 'JohnDoe' | Search-Mailbox -SearchQuery 'Subject:"Saturday Event"'
3. Get-Mailbox | Search-Mailbox -SearchQuery 'Subject:"Saturday Event"' -TargetMailbox "JohnDoe"
4. Search-Mailbox -Identity "JohnDoe" -SearchQuery Subject:"Saturday Event"
Results:
Search-Mailbox : The term 'Search-Mailbox' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
Here's the weirdest part, in Outlook Web App, I can search, and find the email in the deleted items. When I look in Outlook, there's nothing in the inbox.
So I'm trying to locate the precise location of the email and assist the user.
Office 365 (Exchange Online)
Ive been trying :
1. Search-Mailbox -Identity "JohnDoe" -SearchQuery 'Subject:"Saturday Event"'
2. Get-Mailbox 'JohnDoe' | Search-Mailbox -SearchQuery 'Subject:"Saturday Event"'
3. Get-Mailbox | Search-Mailbox -SearchQuery 'Subject:"Saturday Event"' -TargetMailbox "JohnDoe"
4. Search-Mailbox -Identity "JohnDoe" -SearchQuery Subject:"Saturday Event"
Results:
Search-Mailbox : The term 'Search-Mailbox' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
Here's the weirdest part, in Outlook Web App, I can search, and find the email in the deleted items. When I look in Outlook, there's nothing in the inbox.
So I'm trying to locate the precise location of the email and assist the user.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.