Avatar of DP230
DP230
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Search-mailbox in Exchang 2016 server

Dear Experts, is there anyway to search exchange mailbox with exact time range?

For example I 'd like to search an email with ketwork "abc" in content and was received before 2.45pm of 26 Dec 2019?

I tried Search-mailbox command on Exchange 2016 but it did not work
ExchangeEmail ServersWindows Server 2012Networking

Avatar of undefined
Last Comment
DP230

8/22/2022 - Mon
SOLUTION
FOX

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
DP230

ASKER
I tried to follow your instructions but it did not help, even when I specified the exact time of receiving email

It only succeed when I removed the time as you can see here

Capture.JPG
Any idea pls?
Qlemo

If you supply the time, you probably have to use the exact one  - down to the second -  or you should use a time range instead.
DP230

ASKER
Yes I used time range but did not work. Can you take screenshot of your testing?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
FOX

DP
1. run the command Get-Date to verify if your time on the machine is using 12 hour or a 24 hour clock so that your command will be correct
2. Reference this link below with Carloslaan's command and your correct time format and try to pull your information.
https://markgossa.blogspot.com/2015/11/search-mailbox-with-date-range-and-time.html?_sm_au_=iVV7DDQJF76fDJTTkRvMGK3JRp2ft
ASKER CERTIFIED SOLUTION
DP230

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.