How to Export and Import Mailboxes with Exchange 2007

There are various reasons why organizations would want to import and export mailboxes from Exchange 2007. The primary reason most often being to have a backup of the users’ mailboxes.  There are a number of ways to effectively back up mailboxes off Exchange 2007; however, most of these require third-party tools. Luckily, Exchange 2007 offers a useful cmdlet to allow an administrator to export mailboxes from Exchange 2007 into PST files. It should be noted that cmdlets are commands intended to be used under Windows PowerShell. Other reasons to export mailboxes are forensics and compliance.

Having a secure periodic backup for all emails from your Exchange server might be useful to conduct investigations should someone delete emails off the Exchange server or if some emails are manipulated to hide possible wrong doing. This information is also essential for the organization to meet compliance and eDiscovery. In order to ensure chain of custody and forensic integrity, the administrator should also hash the export PST and keep the hash in some secure escrow – ideally under the care of an impartial third-party. In addition, a chain of custody document should be created specifying where the data is being stored and who is responsible for it. If one needs to change the data it is best to make these changes on a copy to ensure the uncompromised integrity of the original. Should data move or change ownership this document will need to be updated.  Same process also applies in terms of compliance.

Backing up mailboxes in Exchange 2007 is pretty straight forward although there are a couple of pitfalls to look out for.

Exporting:

Before we begin we must ensure our environment is properly set up to support the export operation.

There are a few things you will need in order to export a mailbox from Exchange 2007 into a PST file:

  • Outlook 2003 (SP2) or Outlook 2007 (do not install this on the same machine that has Exchange 2007)
  • 32 bit version of the Exchange Management tools (note: 64 bit version will not work due to 32 bit / 64 bit compatibility issues)
  • The user you’ll be using for the operation needs to have full access rights on the mailbox being exported. For this you can either use an administrator account or you can add FullAccess rights to any user. This can be done using the Add-MailboxPermission cmdlet. The command to execute for this operation should be as follows:

Add-MailboxPermission -Identity [Mailbox] -User [user to assign rights to] -AccessRights FullAccess.

To export the mailbox you need to use the Export-Mailbox cmdlet.

You need to use this on a machine that has the Outlook installation and the 32 bit version of the Exchange management tools, and not on the machine which has Exchange 2007 installed, or else the operation will not work.

You will need to export the contents of the mailbox to a PST file; this should be done by running the command:

Export-Mailbox –Identity [Email Address] -PSTFolderPath [Path and Filename of the resulting PST]

The above command will export the mailbox of the specified email address into the file you would have requested. At this stage if you intended to use this export for forensics or to comply with certain compliance requirements, before doing anything else the exported PST should be hashed and a chain of custody should be recorded on the chain of custody document. Make sure the hash is stored in a safe place where there will be no doubt about the hashes integrity.

Importing

When you want to import a PST file into Exchange 2007 the process is quite similar.

Things to keep in mind:

  • You must run the process from a machine that has:
    • Outlook 2003 (SP2) or Outlook 2007 (do not install this on the same machine that has Exchange 2007)
    • 32 bit version of the Exchange Management tools (note: 64 bit version will not work)
    • You can only import PST files into Exchange server 2007 using this method, one needs to use the Microsoft Exchange Server Mailbox Merge wizard for Exchange server 2003 or prior
    • The mailbox you’re importing into needs to exist.

To import the PST file into your mailbox all you need to do is run the command:

Import-Mailbox –Identity [Email Address] -PSTFolderPath [Path and Filename of the resulting PST]

IF you want your data to be forensically valid, this operation should also be recorded in the chain of custody document to ensure there will be no gaps that might result in unexplained data changes.

Following these simple steps you can successfully import and export to and from PST files on an Exchange 2007 installation.

Understanding Exchange Storage Group

Categories:Exchange 2007 Videos

This video will give you the basics of Exchange storage which you need to know before you start creating your Exchange storage groups and databases.

 

The process of installing Exchange will see to the creation of a default Exchange storage group with a single database.  In addition, a public folder database will also be created if the “free Outlook 2007 clients” option was selected during the installation process.

Examining the Exchange folders from Windows Explorer, it is possible to see the various Exchange storage groups and their respective database, which has an EDB extension. The size of this database increases as email is added, with a size limit of 50 GB for Exchange Standard Edition and no limits for Exchange Enterprise Edition.  The size limitation of the former can be modified through the registry, though it should be noted that a larger database will take longer for recovery in the event of a hard disk crashes, or database corruption.

Also present in the same folder would be files with an LOG extension called transaction logs. When new e-mail enters the server, it goes into the memory and is written to these logs, before being written to the database eventually. Each log is 1 MB in size, and helps provide redundancy for your mail. The current log is e00.log, which will be closed and renamed with a longer name when it reaches the 1MB limit.

The Exchange storage group can handle more than one database, but the logs for these databases will be intertwined within the storage group’s folder with no separation between the two. As such, having several databases within the same storage group may be a negative impact on performance or recoverability at some point. For this reason, Microsoft recommends using one storage group for one database.

Finally, it is recommended that log files and the Exchange database be kept on a separate drive from the one that holds the operating system. An even better option would be to use a RAID 5 storage volume for the Exchange database file and a RAID 1 storage volume for the transaction logs.  This will allow data recovery from the transaction logs should the Exchange storage database fail or become corrupted. These are the best practices for your Exchange storage group.

 

An Overview of Exchange 2007 SP1

Categories:Exchange 2007 Videos


This video presents a quick overview and briefing of some of the key features in Exchange Server 2007 SP1.  This ranges from Active Directory (AD) integration with Exchange Server 2007 and a new GUI in the form of the Exchange Management Console used to manage Exchange 2007.

Thanks to the new command line interface PowerShell, Exchange has been designed with an Exchange Management Shell, a command line interface that allows administrators to perform powerful tasks with simple CmdLets.  In addition, there are now five server roles which can be deployed separately, or combined in a single server; the Edge Transport Server Role cannot be combined with any other roles, however.  New transport features also bring capabilities such as anti-spam, journaling for compliance with government regulations, as well as the use of transport rules to control mails in transit.

Finally, a new unified messaging capability has also been added to Exchange, and four different types of high-availability solutions that can be deployed.  Exchange 2007 RTM came with three while Exchange 2007 SP1 added a fourth solution.  Subsequent lessons will explain the above-mentioned features (and many others) in order to facilitate a greater understanding of Exchange 2007.

Performing a Typical Installation of Exchange 2007 SP1

Categories:Exchange 2007 Videos

Today’s video shows you the typical Exchange 2007 SP1 installation.

 The Exchange Administrator is taken through a typical installation of Exchange Server 2007 SP1 starting from Step 4 of the Exchange Server installation menu. The walk-through operates on the assumption that the .NET Framework 2.0, Microsoft Management Console and Windows PowerShell components have already been installed.

One advice for administrators new to SP1 is to read the introductory page in order to acquaint themselves to the new features found in this update. Moving ahead, the administrator is presented with a License Agreement, followed by an error reporting screen where error reporting can be selected to feedback problems back to Microsoft. Next would be a prompt to select either a “Typical” or “Custom” installation of Exchange Server.

A glance at the Custom Installation option reveals that it is possible to have multiple server roles on a single server – unless installing an Edge Transport Server or one of the Clustered Mailbox Roles. Assuming a “Typical” installation, the installation wizard will next prompt for a name and a query if the organization has any pre-Outlook 2007 clients to decide whether to install a public folder database. In the case that the answer is “no,” the wizard will proceed to install only the mailbox database and skip the public folder database.

A readiness check is conducted next, followed by the actual installation and configuration of the various roles. The Exchange Management Console is launched once the installation process, which in this case takes more than 30 minutes, is completed. Further instructions are available there at the Exchange Management Console to assist in the completing and finalizing of the Exchange deployment.

 

The EdgeSync Process

Categories:Exchange 2007 Videos

As the Edge Transport Server is not a member of Active Directory, connections between an Edge Transport Server and a Hub Transport Server must be manually performed.  This process is called the EdgeSync process. Essentially, this involves the creation of an EdgeSync XML file on the Edge Transport Server.  This file is then copied over to the Hub Transport Server and imported using either the Exchange Management Shell, or the Exchange Management Console by using a wizard.

The only way to create the EdgeSync XML file is through the Exchange Management Shell on the Edge Transport Server.  To create the file, open the Exchange Management Shell and type “New-EdgeSubscription –FileName” followed by a logical file name like “EdgeSubscriptionInfo.XML” or “EdgeSubInfo.XML”.  The exact file name and location is not important as long as it is copied over to the Hub Transport Server.  Note that there has to be FQDN connectivity between the Hub Transport Server and the Edge Transport Server, and not just physical network connectivity.

Over at the Hub Transport Server, one method of importing the EdgeSync XML file is performed using the Exchange Management Shell.  This is done using the New-EdgeSubscription command to specify the file location as well as the name of the site.  The second, easier method involves using the Exchange Management Console.  From within the Exchange Management Console, expand the Organization Configuration work center.  Click on “Hub Transport” and select the action “New Edge Subscription.”  Select the site from the list shown, browse to the correct EdgeSync XML file and click on “New” to create the subscription process.

Once completed, the Test-EdgeSynchronization Cmdlet can be used to determine if there is a problem between the Edge Transport Server and the Hub Transport Server and if the EdgeSync process can be created.