Solved

Search-Mailbox for missing/misplaced email

Posted on 2014-04-25
1
4,869 Views
Last Modified: 2014-05-21
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.
0
Comment
Question by:GCTTechs
1 Comment
 
LVL 20

Accepted Solution

by:
EndureKona earned 500 total points
ID: 40023837
This problem happens because your account is not a member of the Discovery Management role.    Make yourself a member of this role and you should be good.   Powershell does not import the Search-Mailbox cmdlet.


http://technet.microsoft.com/en-us/library/dd298059(v=exchg.150).aspx
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
Read this checklist to learn more about the 15 things you should never include in an email signature.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
This video discusses moving either the default database or any database to a new volume.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now