Hi im trying to find all items regarding one of the clients companies. Looking for all emails that contains daughter company nameConsto in body or subject.
In Excahgne 2007 i did use Export-Mailbox without any problems. But now when I try to use in Exchange 2013
Get-Mailbox USER | Search-Mailbox -SearchQuery 'Subject:”*Consto*”' -targetmailbox “admin” -targetfolder “1”
Or
New-MailboxExportRequest -mailbox USER -ContentFilter {Subject -like "*Consto*"} -FilePath "\\SERVER\Export\2.pst"
Or
New-MailboxExportRequest -mailbox USER -ContentFilter {All -like "*Consto*"} -FilePath "\\SERVER\Export\2.pst"
Or
New-MailboxExportRequest -mailbox USER -ContentFilter {Body -like "*Consto*"} -FilePath "\\SERVER\Export\2.pst"
I either get empty pst or below result yet I know for the fact that I just sent email with subject Consto and with body text Consto 3hr ago from USER account. I did try variations of "" and ' ' with no luck. I'm must be missing something. Admin user is a member of Exchange Mailbox Import Export as well Exchange Trusted Subsystem have full access rights to export folder.
RunspaceId : 170f4b2e-d69e-40e5-bc1a-854044e927f3
Identity : consto.local/POLAND/Warsaw/USER
TargetMailbox : consto.local/Users/admin
Success : True
TargetFolder : \1\USER-12/10/2015 1:51:03 PM
ResultItemsCount : 0
ResultItemsSize : 0 B (0 bytes)
If you could help me It will be awsome. It is kind of important for client.
Thanks,
Maciej