Quantcast
Channel: Exchange Server 2013 - Administration, Monitoring, and Performance 论坛
Viewing all articles
Browse latest Browse all 3457

New-MailboxExportRequest -ContentFilter Received filter issue

$
0
0

I'm trying to search for key words in emails that were received after a certain date. When I run the script below, I get emails with the correct words, but it also exports all the ones from dates prior to what i'm requesting.

Any ideas? 

$username = "User"
$date ="06/01/2015"

((All -like "*Word*") -and (Received -ge $date)) -or ((Attachment -like "*Word*") -and (Received -ge $date)) -or
((All -like "*Word2*") -and (Received -ge $date)) -or ((Attachment -like "*Word2*") -and (Received -ge $date)) -or
((All -like "*Word3") -and (Received -ge $date)) -or ((Attachment -like "*Word3*") -and (Received -ge $date)) -or
((All -like "*Word4*") -and (Received -ge $date)) -or ((Attachment -like "*Word4*") -and (Received -ge $date)) -or
((All -like "*Word5*") -and (Received -ge $date)) -or ((Attachment -like "*Word5*") -and (Received -ge $date)) -or
((All -like "*Word6*") -and (Received -ge $date)) -or ((Attachment -like "*Word6*") -and (Received -ge $date)) -or
((All -like "*Word7*") -and (Received -ge $date)) -or ((Attachment -like "*Word7*") -and (Received -ge $date)) -or
((All -like "*Word8*") -and (Received -ge $date)) -or ((Attachment -like "*Word8*") -and (Received -ge $date)) -or
((All -like "*Word9*") -and (Received -ge $date)) -or ((Attachment -like "*Word9*") -and (Received -ge $date))} -FilePath \\XXXX\XXXX\$username.pst


Viewing all articles
Browse latest Browse all 3457

Trending Articles



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