Help with export-mailbox command
Hi,
I've been looking at the export-mailbox command and had a question. I'm looking to search all mailboxes for keywords and export those messages to a folder on my mailbox. Here's what I have so far:
get-mailbox –Database Mailbox Database | Export-Mailbox –SubjectKeywords "IT guy is a jerk" –TargetMailbox Administrator –TargetFolder 'People to block youtube.com access'
But I want to search both subject and body of the messages. Can anyone help me with the syntax?
Thanks.
May 19th, 2011 2:52pm
n/m I think I found it.
-AllContentKeywords will look in subject, content, body, and attachment.
I don't want to search attachments, but it looks like there is no way to search on the body of the message.
Free Windows Admin Tool Kit Click here and download it now
May 19th, 2011 5:49pm
Check out Lucid8's DigiScope http://www.lucid8.com/product/digiscope.asp it can do what you need against a live mailbox as well as an offline Exchange Database (EDB)Troy Werelius
www.Lucid8.com
May 20th, 2011 12:15pm
Hi,
AllContentKeywords parameter will export those messages if the command finds a keyword that you specify in the message body,
attachment content, or subject.
As per my knowledge, Export-Mailbox command can’t only export mailboxes according to body of messages.
Hope this helps.
ThanksPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
May 23rd, 2011 5:39am