Exchange 2010 addreplicatopfrecursive script RRS feed

  • Question

  • Hi,

    Doing an upgrade from Exchange 2003 to Exchange 2010 before the final move to Exchange 2013. There are loads of articles out there that explains how to migrate public folders from Exchange 2003 to Exchange 2010 using the provided scripts AddReplicaToPFRecursive.ps1 and MoveAllReplicas.ps1.

    Problem description:

    There is one Active Directory forest with a single domain. The Active Directory contains multiple sites, a site for each office/country. All countries have their own set of Public Folders mainly, however some PF's are replicated cross sites. If I run the script 'AddReplicaToPFRecursive.ps1 –server “<Exch_2010_siteA>” –TopPublicFolder “\” –ServerToAdd “<Exch_2010_siteA>”' will that only add the Public Folders from my Exchange 2003 in site A to Exchange 2010 in site A, or will it add all Public Folders from all sites to the Exchange 2010 in site A?

    The switch to specify the source server only works if it's an Exchange 2007 server and as described in the help index, it will choose a convenient server if the connection to the specified server fails. I cannot find information about how to control the behaviour for Exchange 2003 servers.

    From the AddReplicaToPFRecursive.ps1 help file:

    -Server (optional)
    The server to operate against. Must be an Exchange 2007 Mailbox server
    with a public folder database. Defaults to a convenient server.

    Hope someone is able to shed some light on this issue.

    Monday, November 25, 2013 7:26 PM


  • The script walks through all folders in the hierarchy, and since you have only one hierarchy, it updates all folders.

    You can change the -TopPublicFolder to a regional root, if one exists.

    You can use your own PowerShell command to replicate what you want, but it won't be easy to just add a replica. 

    You can modify the script to filter folders that have replicas in a certain space.  I can't do that for you as it would take more time than I have available for free tech support, sorry.

    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

    • Proposed as answer by Niko.ChengModerator Tuesday, November 26, 2013 8:16 AM
    • Marked as answer by May June Tuesday, November 26, 2013 9:53 AM
    Monday, November 25, 2013 7:34 PM