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.
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.
Before You Begin :
To perform the following procedures, the account you use must be delegated the following:
To move all public folder content from Server01 to Server02, run the following command:
Exchange Server Administrator role and local Administrators group for the target server.
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:
Code:
ReplaceReplicaOnPFRecursive.ps1 -TopPublicFolder "\Legal" -ServerToAdd Server02 -ServerToRemove Server01
Bookmarks