Applies to: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1, Exchange Server 2007
Topic Last Modified: 2008-01-21

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

You cannot use the Exchange Management Console to perform this procedure.
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:

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.


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:

    Copy Code
    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:

    Copy Code
    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: