Sunday, August 19, 2018

First off, I never like moving replicas without first replicating the data first (take a two step process).  Also note, put your server names in quotes as I see you have a dash in one of them.

From Exchange 2010 server open an elevated EMS and navigate to: c:\Program Files\Microsoft\Exchange Server\V14\Scripts\

.\AddReplicaToPFRecursive.ps1 -TopPublicFolder "\" -ServerToAdd "exchange2010new"

Make sure the ".\" is at the front of the script.  This will add the new database to the replica list and will replicate the data.  When all data is replicated and you wish to remove the original database, you will need to move all replicas to the new database (this will remove the old server).  Run:

.\MoveAllReplicas.ps1 -Server "Exchange2007old" -NewServer "Exchange 2010new"