Search exchange 2007 mailboxes

adpro
adpro used Ask the Experts™
on
I need to do a search on all our exchange 2007 mailboxes for certian keywords.   I then need to export these emails into PST files.   HELP !!!  
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
ok, try this one, only restriction is that it must be in a particular database..

Get-Mailbox -Database "ServerName\First Storage Group\Mailbox Database" |
Export-Mailbox -TargetMailbox <mailboxname> -TargetFolder "DataFolder" -SubjectKeywords "
Hello"
Commented:
Hi,

You need to use powershell with Export-Mailbox. Try this I have not tested it: -

Get-Mailbox -Database DBNAME | Export-Mailbox -PSTFolderPath C:\PSTFiles  -ContentKeywords "KEYWORD"

You will need to replace DBNAME and KEYWORD you can also change the path but this should search all the mailboxes in that database for the KEYWORD and export to a PST for each mailbox.

Export-Mailbox
http://technet.microsoft.com/en-us/library/aa998579.aspx

Author

Commented:
THANKS !

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial