4

I have a Microsoft Exchange server 2007 running on Windows 2003 R2. I need to search everyone's emails for legal discovery purposes. I'd like to do this in some centralized fashion with administrator rights rather than going account to account. Is there a way to do this?

user9517
  • 114,104
  • 20
  • 206
  • 289
Knox
  • 2,453
  • 2
  • 26
  • 33

1 Answers1

3

You can use the Export-Mailbox command to extract messages form all mailboxes in a mailbox database, that meet your search critera. This will create a folder for each user that will contain the emails that meet this criteria. To do this, you need to run the following command from the Exchange command line

get-mailbox –Database <DB1> | Export-Mailbox –SubjectKeywords <Search Keywords> –TargetMailbox <Administrator> –TargetFolder <MyData>

The above command will search all mailboxes in DB1 for any emails that meet the search keywords critera, it will then copy these emails to folder call MyData in the Administrators mailbox. Fields marked with <> should be replaced with your own values.

For more details, have a read of this article.

Sam Cogan
  • 38,158
  • 6
  • 77
  • 113
  • Here's another helpful link http://msexchangeteam.com/archive/2006/11/28/431669.aspx – Knox Feb 23 '10 at 10:20
  • I tried this and I get error code `-2147221233`. Do I need special permissions? Do I have to take the mailbox user account (where the emails should be copied to) and put him to the group `Exchange Public Folder Administrators`? With which account do I have to log on when using this snippet? – testing Mar 02 '12 at 18:18