Solved

Search-Mailbox for missing/misplaced email

Posted on 2014-04-25
1
5,185 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
Read this checklist to learn more about the 15 things you should never include in an email signature.
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
how to add IIS SMTP to handle application/Scanner relays into office 365.

772 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