How to Move Public Folder Content from one Public Folder Database to Another Public Folder Database

Microsoft Exchange Server 2007 will reach end of support on April 11, 2017. To stay supported, you will need to upgrade. For more information, see Resources to help you upgrade your Office 2007 servers and clients.

 

Applies to: Exchange Server 2007, Exchange Server 2007 SP1, Exchange Server 2007 SP2, Exchange Server 2007 SP3

This topic explains how to use the Exchange Management Shell to move public folders to a different database or server.

Note

You cannot use the Exchange Management Console to perform this procedure.

Note

If you are performing this procedure as part of a migration from Exchange Server 2003 to Exchange Server 2007, you can use either Exchange System Manager in Exchange 2003 or the Exchange Management Console in Exchange 2007 to move Exchange 2003 public folders to an Exchange 2007 server. For more information about migrating public folders, see the Microsoft Exchange Team blog article, Moving Public Folder Replicas from Exchange 2000 to Exchange 2007. For more information about removing public folder databases, see Removing Public Folder Databases.

When moving public folders, there are two scenarios to consider:

  • Move all public folder content in a database to a new public folder database   To move all public folders in a public folder database to a new public folder database, use the MoveAllReplicas.ps1 script. This script replaces a server with a new server in the replication list for all public folders, including system folders. For more information about using public folder scripts, see Scripts for Managing Public Folders in the Exchange Management Shell.

  • Move content in a tree of folders from one server to another   To move all the replicas of a public folder subtree from one server to another server, use the ReplaceReplicaOnPFRecursive.ps1 script. This script adds a new server to the replication list for a public folder and all the folders that are beneath it in the hierarchy. If the server is already listed in the replication list for a folder, nothing is changed for that folder. For more information about using public folder scripts, see Scripts for Managing Public Folders in the Exchange Management Shell.

Before You Begin

To perform the following procedures, the account you use must be delegated the following:

  • Exchange Server Administrator role and local Administrators group for the target server

For more information about permissions, delegating roles, and the rights that are required to administer Microsoft Exchange Server 2007, see Permission Considerations.

Procedure

To use the Exchange Management Shell to move all public folder content in a database to a new public folder database

  • To move all public folder content from Server01 to Server02, run the following command:

    MoveAllReplicas.ps1 -Server Server01 -NewServer Server02
    

To use the Exchange Management Shell to move content in a tree of folders from one server to another

  • To move the public folder called Legal and all of the folders within that hierarchy from Server01 to Server02, run the following command:

    ReplaceReplicaOnPFRecursive.ps1 -TopPublicFolder "\Legal" -ServerToAdd Server02 -ServerToRemove Server01 
    

For detailed syntax and parameter information, see the Set-PublicFolder reference topic.

For More Information

For more information about public folders, see the following topics: