Wednesday , April 24 2019

Cross forest Move Mailbox in Bulk – Exchange2010 to Exchange 2010

As a Initial Process Please Follow

Cross Forest Migration Guide – Exchange 2010 to Exchange 2010

 

Lets see how to Move Mailboxes in Bulk in Cross forest scenario

Taking the Dump is always  the same way , Whatever the version your migrating to

I have collected the my users in the same OU so that I can take the Dump easily

 

my OU (Organizational Unit)  Name is “SourceUsers”

image

I need the Distinguish name of my OU (Organizational Unit)

View->Advance Features

image

Right Click – Properties of your OU (Organizational Unit) – Attribute Editor

Get the Value of “Distinguished Name”

In my case its “OU=SourceUsers,DC=CareExchange,DC=in”

image 

 

Open Command prompt

Run

csvde -d "OU=SourceUsers,DC=CareExchange,DC=in” -f c:\SourceUserDump.csv -r (objectclass=user) –l mail

image

Now it Collected the 5 Mailboxes available

Now your Notepad will look like this

image

Remove the first Column – Use Excel or Use Notepad – Its up to you –

Note – First Line contains the title – Identity

Now it should look like below

image

 

To Verify Run Import-Csv “SourceUserdump.csv”

image

 

Now you can Import the CSV Pipe it to the Script as Below

Import-Csv “SourceUserdump.csv” | .\Prepare-MoveRequest.Ps1 -RemoteForestDomainController "FQDN of Source DC" -RemoteForestCredential $RemoteCredentials -LocalForestDomainController "FQDN of Target Forest DC" -LocalForestCredential $LocalCredentials -TargetMailUserOU "Distinguished name of OU in TargetForest" –UseLocalObject

 

If your doing for many objects , Its going to run fast and Errors won’t get saved

I would recommend to run Start-Transcript C:\MoveDump.txt

So that you have the right data in hand

To stop the Transcript – Stop-Transcript

image

 

Now you got your disable accounts Created

image

 

Now move the Users using ADMT migrating with SIDs

How to Migrate Users Across forest (Cross Forest) using ADMT 3.2 with sid and Passwords

image 

 

Now accounts are activated with SID

image

 

Now Moving the mailbox using Remote Move

 

Import-Csv “SourceUserdump.csv” |New-MoveRequest –Remote –Remotehostname ‘sourceExchange.CareExchange.in’ -RemoteCredential $RemoteCredentials –TargetDeliverydomain ‘targetexchange.in

 

image

 

image

 

Now you won’t be able to logon on the new forest directly as you required to change password as first logon

To avoid that situation

see

How to Disable “User must change password at next logon” after cross forest move using ADMT 3.2

 

 

Great !!

 

you Learnt how to Move in Bulk in Cross forest Scenario

 

Regards

Satheshwaran Manoharan

About Satheshwaran Manoharan

Satheshwaran Manoharan is an Microsoft Exchange Server MVP , Publisher of CareExchange.in
Supporting/Deploying/Designing Microsoft Exchange for some years.
Extensive experience on Microsoft Technologies.

Check Also

Active Directory Database Corruption

Error issuing replication : 8451 (0x2103) The replication operation encountered a database error. Press F8 ...

25 comments

  1. Much informative and useful article… I like it personally…

  2. Will this work the same for source Exch2k7 – Target Exch2k10 ?

    • Satheshwaran Manoharan

      Yes, The method is the Same.

      As the Source (Exchange 2007) Doesn’t recognize “Remote” move – you got to use Remote Legacy

      Import-Csv “SourceUserdump.csv” |New-MoveRequest –Remotelegacy –Remotehostname ‘sourceExchange.CareExchange.in’ -RemoteCredential $RemoteCredentials –TargetDeliverydomain ‘targetexchange.in

      Other than that. All the other steps remains the same

  3. This article and

    http://careexchange.in/cross-forest-migration-guide-exchange-2010-to-exchange-2010/

    that article have saved me a ton of researching. Thank you very much!

  4. Fabian Hernandez

    Awesome Write up yet again!

    When running
    Import-Csv “SourceUserdump.csv” | .\Prepare-MoveRequest.Ps1 -RemoteForestDomainController “FQDN of Source DC” -RemoteForestCredential $RemoteCredentials -LocalForestDomainController “FQDN of Target Forest DC” -LocalForestCredential $LocalCredentials -TargetMailUserOU “Distinguished name of OU in TargetForest” –UseLocalObject

    I get Prepare-MoveRequest.ps1 cannot bind argument to parameter ‘Identity’ because it is an empty string.

    What am i doing wrong?

  5. thanks Satheshwaran…

  6. Thank you Sath, this is a great post, truly appreciate it.

  7. Sjoerd van den Nieuwenhof

    Hi,

    I receive the message: “invalid parameter: input file name required” when i like te export the users.
    Can you let me know what i’m doing wrong?

    Regards,

    Sjoerd

  8. Thanks for your help……appreciate your work

  9. Hi Satheshwaran Manoharan,

    It is possible to migrate from Exchange 2010 with Windows Server 2008 R2 to Exchange 2010 with Windows Server 2012R2 ?
    Hope you reply

  10. I know this web page gives quality based posts and additional data, is there any other website
    which provides these kinds of stuff in quality?

  11. Hello,

    Thanks for this interesting post. I have an issue when migrating bulk users. i get the error “target user already has a primary mailbox”. Any idea?

    Pape

  12. Hi

    in a cross forest migration scenario we are migrating from ex 2007 to ex 2013. our concern is customer wants to change logon name in target forest ex. source logon name firstname.lastname Target logon name would be his employee ID. we do not have any issue with AD account migration we are confuse what approach we should user for mailbox migration.
    how to map mailboxes to different AD ID in target environment?

  13. Hi

    in a cross forest migration scenario we are migrating from ex 2007 to ex 2013. our concern is customer wants to change logon name in target forest ex. source logon name firstname.lastname Target logon name would be his employee ID. we do not have any issue with AD account migration we are confuse what approach we should user for mailbox migration.
    how to map mailboxes to different AD ID in target environment?

  14. Hi,
    very informative post, i have a situation where i need to migrate exchange users cross forest to a server that already has user accounts. Current set-up has exchange and ad server on seperate forest. Does someone know how i can migrate the mailbox as mentioned above, disable/remove the migrated ad account and bind it to existing AD account? I know how to do it manualy but perhaps someone has a handy script for doing so?

Leave a Reply

Your email address will not be published.