Solved

Mailbox-Search cmdlet by date range

Posted on 2014-03-26
3
7,483 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 39

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
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.
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

838 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