Solved

Mailbox-Search cmdlet by date range

Posted on 2014-03-26
3
6,911 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
  • 2
3 Comments
 
LVL 38

Accepted Solution

by:
Adam Brown earned 500 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
In this video we show how to create an email address policy 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 Mail Flow…
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…

743 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

13 Experts available now in Live!

Get 1:1 Help Now