?
Solved

Mailbox-Search cmdlet by date range

Posted on 2014-03-26
3
Medium Priority
?
8,183 Views
Last Modified: 2014-03-26
I'm looking at the Search-Mailbox examples on this site:

http://help.outlook.com/en-us/140/gg315525.aspx

I see where you can specify the date of a message that you want to search for but I'm wondering how you would be able to use a date range instead.
0
Comment
Question by:jcb431
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 42

Accepted Solution

by:
Adam Brown earned 2000 total points
ID: 39957545
You would create a search query like this:

search-mailbox -searchquery {sent:01/01/1980..01/01/2010}

Open in new window


to search a specific date range that the message was sent. Changed sent to received if you want to search for when the email was actually delivered. Note the two periods between the start and end date. That denotes the range.
0
 

Author Comment

by:jcb431
ID: 39957572
How do I correctly write this if I'm searching for multiple parameters?

Search-Mailbox -Identity mymailboxname -SearchQuery {(subject:"spongebob") -and (sent:"01/01/1980..01/01/2010")} -TargetMailbox administrator -TargetFolder Inbox -LogOnly

Open in new window

0
 

Author Closing Comment

by:jcb431
ID: 39957607
Thank you.
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
In this video we show how to create a mailbox database 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 Servers >> Data…
To show how to generate a certificate request 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 Servers >> Certificates…
Suggested Courses

770 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