Quantcast
Channel: Exchange Server 2013 - Administration, Monitoring, and Performance forum
Viewing all articles
Browse latest Browse all 1453

Search-Mailbox date range no results

$
0
0

I am trying to delete messages from a single mailbox that are between a given date range.  Below is the command.  

Search-Mailbox -identity MailArchive -searchquery {(Received:> 10/01/2017 and Received:< 11/30/2017)} -DeleteContent -Force

I have also tried:

Search-Mailbox -identity MailArchive -searchquery {(Received:> 10/01/2017 00:00:00 and Received:< 11/30/2017 23:59:59)} -DeleteContent -Force

Both commands runs successfully (as in no errors) but shows ResultItemsCount = 0.

If I map myself to that mailbox I can see plenty of messages with a date range that falls within scope.

The mapped mailbox is online and not in exchange cached mode.  I have recycled outlook and remapped the mailbox many times.

Why is this command not delete these messages?

This command should delete well over 200,000 emails from this mailbox.  

Exchange 2010 SP3 Update Rollup 16


Viewing all articles
Browse latest Browse all 1453

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>