Retrieving a copy of all Emails Sent To or Received From a Specific Domain in Exchange 2007

I recently received a request to locate and create a copy of every email sent to or received from a specific domain. Exchange 2010 possesses some inherent litigation hold and compliance management tools that could do this for you, and I even found a VB script for Exchange 2003, there was not much information out there for Exchange 2007.

Here’s what I did…

Step 1: Ensure that your account has “FullAccess” permissions to all mailboxes in your Exchange Database by running this command in Exchange Management Shell:

get-Mailbox -Database "[Database Name]" | Add-MailboxPermission -User [Your Admin Acocunt] -AccessRights FullAccess -InheritanceType All

Step 2: This hefty commandlet tells Exchange to search every mailbox in the database for a messages received from a specific domain, excluding the target mailbox as you can’t export a mailbox to itself:

Get-Mailbox -Database "[Database Name]" |?{$_.Name -ne '[Username of the Target Mailbox]'} | Export-Mailbox -TargetMailbox [Username of the Target Mailbox] -TargetFolder [Name of Folder] -senderKeywords:'*[domain name]'

Step 3: The last command does the same as the above, but looks for any emails sent to a specific domain:

Get-Mailbox -Database "[Database Name]" |?{$_.Name -ne '[Username of the Target Mailbox]'} | Export-Mailbox -TargetMailbox [Username of the Target Mailbox] -TargetFolder [Name of Folder] -recipientKeywords:'*[domain name]'

Once done, you can open the target mailbox in Outlook and save it to a PST. So there you have it!

Teaming Intel PRO 1000 NIC cards in Server 2008 R2

I’m getting ready to upgrade Exchange from 2007 to 2010 at my office and have been having a tough time getting the Intel PRO 1000 Gb dual-port NIC cards to team (load balance) properly using their Advanced Network Services (ANS) software.

Beginning with Server 2008 R2, Intel started bundling those drivers with the OS Installation media, but without the ANS tools – the OS recognized the drivers, but without teaming or any other extended functionality.

After some digging, I came across a forum post on intel.com that shed some light on the issue:

http://communities.intel.com/message/69112

I was using a similar server (Dell Power Edge 2850) for the new Exchange 2010 installation, and naturally, I wanted to run it on the latest Microsoft Server OS, so I’d installed Server 2008 R2 and encountered the same issue as the author of the above post.

If you scroll down far enough, one of the members suggests using the Intel Networking solutions CD v15.3, extracting the contents, then using Device Manager to manually update the drivers for each NIC and browsing to the ..\PRO1000\Winx64 folder and searching it.

The next step suggested that you run the “..\V15.3_CD\APPS\PROSETDX\Winx64\ProSetDX.msi” file to install the ANS features after updating the drivers from the CD. This didn’t work for me and returned the following error:

Error 2869. The dialog SetupError has the error style bit set, but is not an error dialog.

This cryptic message didn’t really help, so I tried another executable in that folder, “DxSetup.exe”

Running that .exe file worked perfectly and I was able to setup ANS Team balancing on my Intel PRO 1000 dual port NICs.

I hope this helps someone!