Solved

Mailbox-Search cmdlet by date range

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In this video we show how to create a User Mailbox 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 Recipients >> Mailb…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

813 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

15 Experts available now in Live!

Get 1:1 Help Now