Link to home
Start Free TrialLog in
Avatar of SnAkEhIpS
SnAkEhIpSFlag for United States of America

asked on

Mailbox-Search cmdlet by date range

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.
ASKER CERTIFIED SOLUTION
Avatar of Adam Brown
Adam Brown
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SnAkEhIpS

ASKER

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

Thank you.