Exchange 2007 migration to Exchange 2013

Posted on 2016-09-06
Medium Priority
Last Modified: 2016-09-07
We have an old Exchange 2007 server that is running out of disk space, both on the C: partition and data partition, so much so that a service pack can not be installed to do a proper migration.  Is there a way to back up everyone's PST files, pretend that the EX 2007 server crashed, bring in the EX 2013 server, and then import everyone's PST files?  And does any site have a step by step process to follow this kind of set up?
Question by:fletchman
  • 7
  • 3
LVL 33

Accepted Solution

Scott C earned 2000 total points
ID: 41786578
How to export mailboxes to PST with Exchange 2007

Friday, March 11, 2016
4:02 PM

Exchange 2007 Sp1 included a feature that allows mailboxes to be exported to .PST files. This is handy because users can natively open and interact with a PST file in Outlook.
We recently had a need to export 40 mailboxes to PST file and here is what it takes:
What you need
      • 32-Bit Exchange 2007 (SP1) admin tools.
      • Outlook 2007 or higher
      • Permission on the mailboxes
      • Additional storage to compensate for PST bloat (explained below)
      • Some powershell knowledge
      • Time (explained below)
Once you stand up a virtual machine running Outlook and have installed the 32-bit Exchange 2007 (SP1) tools, then you can proceed to the next step of granting yourself permission to the mailboxes that you need to export.
Add-MailboxPermission -Identity userYouWanttoExport -User YourAdminAccount -Accessright Fullaccess -InheritanceType all -Confirm
Then, before running the export command, it is advisable to calculate the size of the PST files that would be generated to insure that you have adequate disk space to accommodate. I found that the resulting PST file is 8.25 percent larger than the mailbox size. So if you have 40 mailboxes, multiply the total size by 8.25% to get the additional size beyond the total mailbox size needed to hold all of the data.
So for example, to get the size of a mailbox you can type:
Get-MailboxStatistics –id ‘John Doe’ | ft displayname, totalitemsize
DisplayName                             TotalItemSize
———–                             ————-
John Doe                          1584624412B
The size is in bytes, this would be a 1.5 GB mailbox. After adding the 8.25% for PST bloat, the resulting exported mailbox for John Doe would be 1.7GB.
Now you’re ready to run the export command by typing the following at an Exchange Management shell prompt:
export-mailbox –id ‘John Doe’ -PSTFolderPath z:\John.Doe.pst
To run this on multiple mailboxes, you can create a text file with a .ps1 extension and add the –confirm:$false command to the end of each line. This will allow the commands to execute in sequence without prompting for conformation. For example, scriptname.ps1 would contain multiple lines like this:
      export-mailbox -id usera -PSTFolderPath z:\usera.pst -Confirm:$false
      export-mailbox -id userb -PSTFolderPath z:\userb.pst -Confirm:$false
      export-mailbox -id userc -PSTFolderPath z:\userc.pst -Confirm:$false
You can then run the script by simply typing scriptname.ps1 at an Exchange Management shell  prompt.
The time it takes to export a mailbox to pst is dependent upon the size of the mailbox being exported, and the speed of the systems and disk subsystem.

From <http://blogs.catapultsystems.com/jstocker/archive/2010/01/27/how-to-export-mailboxes-to-pst-with-exchange-2007/

I did something like this for a customer who buggered up an O365 migration.  I exported all of the mailboxes to .PSTs, copied them to the cloud then imported them into O365.

A suggestion....Why not go to Exchange 2016?  It is basically Exchange 2013 SP2.  You will have a newer product with a longer life.
LVL 33

Expert Comment

by:Scott C
ID: 41786583
I don't know what SP level you are at, but for this to work, you must be on SP1 for Exchange 2007.

Author Comment

ID: 41786584
Ok.  So, doing this will not cause any domain issues, as long as DNS is configured correctly?  Do you know of any articles that help with this?
Easily manage email signatures in Office 365

Managing email signatures in Office 365 can be a challenging task if you don't have the right tool. CodeTwo Email Signatures for Office 365 will help you implement a unified email signature look, no matter what email client is used by users. Test it for free!

LVL 33

Expert Comment

by:Scott C
ID: 41786585
If you aren't at at least SP1 you will have to find some way to free up space to install the SP.
LVL 33

Expert Comment

by:Scott C
ID: 41786588
No, no domain issues.  But what you will want to do is once you have exported the mailboxes to PSTs, you will want to do an un-install  of Exchange 2007.  Be sure to export any certificates.  Also you will want to make a back up of your server.

Author Comment

ID: 41786589
The SP level is the issue, not SP 1.  I recently took over a network that the last IT just left them, and I'm left to clean up the mess.  I was hoping to just shut down the old EX 2007 (pretend it's dead), and just install the new EX 2013, if possible.
LVL 33

Expert Comment

by:Scott C
ID: 41786597
You don't want to just shut it down because items will be left in AD.  These can cause issues down the road.  For example if/when you want to go to Exchange 2016, it won't install because Exchange 2007 pieces will be left behind.

If you're not at on at least SP1, you won't be able to export to PST from the server.  You'd have to do it manually by going to each machine.

I would not want to do it this way.  Something is sure to be missed.

Author Comment

ID: 41786604
Great feedback.  Thank you!  So it sounds like I need to find a way to get SP1 installed to go forward.
LVL 33

Expert Comment

by:Scott C
ID: 41786615
Once you do have your .PSTs here is the import command.



Anytime.  Glad I can help.

Yes you do.

Some suggestions on getting some more space....add a drive, and move the log files, messaging queue to that drive.

See if there are some log files you can backup and delete.  If they are old enough, you won't need them, but back them up anyways.
LVL 33

Expert Comment

by:Scott C
ID: 41786629
You might as well install SP3.  It will make your system more stable.
LVL 37

Expert Comment

ID: 41786697
fix the space issues first. I have done many offline backups of servers, to either a file share on another file server, or to a USB connected disk, then rebuilt with more disk space and restored the backup.

I would usually use clonezilla for an offline backup.

I would usually replace all of the disks in the server at the same time, so if there was an issue with the backup that was only discovered when restoring, it is possible to go back to the original disks without any data loss.

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

I am posting this in case anyone runs into similar issues that I did, this may save you a lot of grief: Condition: 1. Your NetBIOS domain name contains an ampersand " & " character.  (e.g. AT&T) 2. You've tried to run any Microsoft installation…
In this post, we will learn to set up the Group Naming policy and will see how it is going to impact the Display Name and the Email addresses of the Group.
how to add IIS SMTP to handle application/Scanner relays into office 365.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question