• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2784
  • Last Modified:

Cross Forest Migration

I think all i really need from this question is a little more understanding on the last piece of my migration.

Currently i am in the process of splitting business units from from the parent company.
To date, i have ADMT'd all the users, groups over to there new destination forests.
I have moved all resources such as file servers, app servers to there respective destination forest.

Now i have to move the 1000 + user mailboxes cross org and i think this is where i need some assistance.

my source forest has an exchange 2003 organization in it
Both destination forests have exchange 2007 enterprise in them

I have created all of my storage groups and databases to coincide with the companies SLA for mailbox recovery.

So here are a few questions that i believe i need some assistance on.
I have generated 2 move-mailbox scripts that i will paste the one below.

First, once i move the mailboxes to the 2007 org, do i still need to use the exprofre.exe tool to repoint the users profile as we needed to do in a 2k3 to 2k3 echange cross org move? Or is there some new function in Exchange 2007?

I have followed the following articles in creating my script:
http://msexchangeteam.com/archive/2006/11/02/430289.aspx
http://technet.microsoft.com/en-us/library/aa997599.aspx

$s=Get-Credential
$t=Get-Credential

Get-Mailbox -DomainController "file.domaina.com" -Credential $s -Identity "jtest@domaina.com" | move-mailbox -TargetDatabase "ssexchange\Second Storage Group\ssmailboxes" -SourceForestGlobalCatalog "ssfile.domainb.com" -GlobalCatalog "ssfile.domainb.com" -DomainController "ssfile.domainb.com" -SourceMailboxCleanupOptions none -SourceForestCredential $s -TargetForestCredential $t -Confirm:$false

while this does seem to work for single users, i want to find a way to automate the whole move of all mailboxes in a source mailbox store to a destination mailbox store.

Addtional Info:
Destination Forest:
exchange 2007 SP1
Windows 2008 Domain Controller
Forest Level Server 2008

Source Forest:
Exchange 2003 sp2 enterprise
Windows 2k3 domain controllers
Forest Level Server 2003 Native.

I also read somewhere that you could use exmerge to do this, but i tried to follow those articles and they were not successful, additionally i feel i should learn this new method, as scripting and running things as a scheduled task, is very powerful

Thanks for all the advice!!
0
advserver
Asked:
advserver
  • 6
  • 5
  • 2
1 Solution
 
HayesJupeCommented:
if you are running exchange 2007 and outlook 2007 clients, the autodiscovery service (if configured) will take care of updating the profiles... if not, you will still need to use another method of updating profiles (such as exprofre as you said)
just pipe in the the database to your exisiting command to do all mailboxes.
You definately can do it with exmerge - but i agree with your later comment. Exmerge is being "de-emphaised" - microsoft speak  for "we dont need you anymore".... so yes, your going to better off in the long run by learning Powershell.
0
 
Stephen CroftTechnical ArchitectCommented:
Also, if your Exchange 2003 is SP1, it should take care of this automatically. Exchange should reconise that the users mailbox has moved when they next logon, and force a profile change to redirect them to the new Mailserver.

0
 
advserverAuthor Commented:
hayes-jupe

so should my shell script look like so?

Get-Mailbox -DomainController "file.domaina.com" -Credential $s | move-mailbox -sourcedatabase "exchange\single\ssmailboxes" -TargetDatabase "ssexchange\Second Storage Group\ssmailboxes" -SourceForestGlobalCatalog "ssfile.domainb.com" -GlobalCatalog "ssfile.domainb.com" -DomainController "ssfile.domainb.com" -SourceMailboxCleanupOptions none -SourceForestCredential $s -TargetForestCredential $t -Confirm:$false
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
Stephen CroftTechnical ArchitectCommented:
Also, as Hayes said, your command would be;

Get-Mailbox -database "GUID" | move-mailbox -TargetDatabase "ssexchange\Second Storage Group\ssmailboxes" -SourceForestGlobalCatalog "ssfile.domainb.com" -GlobalCatalog "ssfile.domainb.com" -DomainController "ssfile.domainb.com" -SourceMailboxCleanupOptions none -SourceForestCredential $s -TargetForestCredential $t -Confirm:$false

Read up about get-mailbox here;

http://technet.microsoft.com/en-us/library/bb123685.aspx
0
 
advserverAuthor Commented:
djxtreme i believe that is only if the move is intra-org. Since i am moving cross forest, it was my understanding that the profile will need to be updated. Most clients have outlook 2003, so i am just going to use exprofre to make these client changes.
0
 
Stephen CroftTechnical ArchitectCommented:
The command you posted would work, but would move all maiboxes over.

Do a get-mailbox -user "a" | fl to see what database field is populated by user "a", then run the command (with some tweaking if you see fit) I posted.
0
 
advserverAuthor Commented:
hmm thanks for for the assistance, i will post my results tomorrow after i test.
I do want to move all mailboxes from a single source database to the new forest. I will read up on that article you posted.
0
 
Stephen CroftTechnical ArchitectCommented:
Advserver, I did mean SP2, and you are probably right.

Roll out Outlook 2007 if you can, will make life easier. In fact you could roll out now, and take the existing profile, then Autodiscover should kick in once you move mailboxes.


0
 
Stephen CroftTechnical ArchitectCommented:
Are all maiboxes currently in the same source database?

If so, the command you posted is correct.
0
 
advserverAuthor Commented:
they are all located in the same source DB. I am going to create a new test database and move 2 of my test accounts over to it and see if that all works out for me. Then i can just schedule the task to run the PS script.

I will be testing tomorrow.
0
 
HayesJupeCommented:
cool - that all sounds good.
Just to clarify on what i believe is correct, you will need to use exprofre to update profiles - if the the move is anything but intrasite (thats intra-administrative group technically), exchange is not capable of updating those profiles for you. Any intra-org move must have profiles update manually (when using outlook 2003)
0
 
advserverAuthor Commented:
alright so you can not enter a -sourcedatabase parameter, so i came up with the following script, which i think may work, but i am getting a new error.

Remember i moved all user accounts over using ADMT, so the SIDS should match, but i receive the following.

[2/9/2009 10:49:36 AM] [0] [jtest] No matched target NT account is found. To create an NT account in target forest, parameter NTAccountOU is required.
[2/9/2009 10:49:36 AM] [0] [ERROR] Error was found for jtest (jtest@singlesourceproperty.com) because: Error occurred in the step: Approving object. No matched target NT account is found. To create an NT account in target forest, parameter NTAccountOU is required., error code: -1056749136
[2/9/2009 10:49:36 AM] [0] [jtest] The operation has finished.

here is my script, it calls a txt file called mailbox.txt on the c:\ drive of my e2007 machine.

$s=Get-Credential
$t=Get-Credential

Get-Content C:\mailbox.txt | Get-Mailbox -DomainController file.imortgageservices.com -Credential $s |
move-mailbox -TargetDatabase "SSEXCHANGE\MailBox Storage Group\SSMailboxes" -SourceForestGlobalCatalog file.imortgageservices.com -GlobalCatalog ssfile.singlesourceproperty.com -DomainController ssfile.singlesourceproperty.com -SourceMailboxCleanupOptions none -SourceForestCredential $s -TargetForestCredential $t -Confirm:$false
0
 
advserverAuthor Commented:
OK i have made some further headway, i can now move the mailboxes cross forest, but the mailbox shows up as a linked mailbox, pointing back to the source forest. I am assuming this is where the deletesourcemailbox flag comes in?

any help appreciated...
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

  • 6
  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now