Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Symptoms

When running an admin search request that includes a possible date within the query string, you get unexpected results if the date string is in a UK format (day/month/year). This doesn’t include the date property of the search query.

Examples:

Search-Mailbox -Identity User1 -TargetFolder SearchResults -TargetMailbox SearchUser -SearchQuery ‘attachment:”SEG 12 12 2019.txt”’

Search-Mailbox -Identity User1 -TargetFolder SearchResults -TargetMailbox SearchUser -SearchQuery ‘subject:”Born 12 12 2019 USA”’

Cause

This is a known issue in the word breaker.

Workarounds

Method 1:

Don’t use dates in the SearchQuery string.

Note You can still use dates for searchable date properties. 

Method 2:

Break up the date with a wildcard.

Here are two examples showing how to use the wildcard:

Search-Mailbox -Identity User1 -TargetFolder SearchResults -TargetMailbox SearchUser -SearchQuery ‘subject:”Born 12 12 * 2019 USA”’

Search-Mailbox -Identity User1 -TargetFolder SearchResults -TargetMailbox SearchUser -SearchQuery ‘attachment:”SEG 12 12 * 2019 txt”’

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×