Solved

Search-Mailbox for missing/misplaced email

Posted on 2014-04-25
1
4,468 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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This article will help you understand what HashTables are and how to use them in PowerShell.
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

11 Experts available now in Live!

Get 1:1 Help Now