Note: This article was originally published in 2013. Some steps, commands, or software versions may have changed. Check the current Exchange 2010 documentation for the latest information.
In this step-by-step guide, you’ll learn move folder replicas to another public folder database. Microsoft Exchange Server 2010 brought improvements in high availability with Database Availability Groups (DAGs), role-based access control, and enhanced Outlook Web App.
Prerequisites
Before you begin, make sure you have:
- Exchange Server 2010 SP3 or later
- Exchange Management Console or Exchange Management Shell access
- Appropriate administrative permissions
How to: Move folder (http://en.wikipedia.org/wiki/Replica “Replica”) to another public folder database
Another common error to run across when uninstalling (http://www.microsoft.com/exchange “Microsoft Exchange Server”) is the following:
Error: Uninstall cannot continue. Database ‘Public Folder Database 1587193804’: The public folder database “Public Folder Database 1587193804” contains folder replicas. Before deleting the public folder database, remove the folders or move the replicas to another public folder database. For detailed instructions about how to remove a public folder database, see (http://go.microsoft.com/fwlink/?linkid=81409&clcid=0x409). Click here for help… (http://go.microsoft.com/fwlink/?linkid=30939&l=en&v=ExBPA.14&id=b6e3b32a-8848-46cb-9567-72288ac15f60)
I recommend reading the (http://www.microsoft.com “Microsoft”) site as it is full of information and details. In my case I just wanted to move those public folders to my new Exchange Server so it was too much so here is the summary: You can use scripts to move public folders to a different database or server. The collection of (http://en.wikipedia.org/wiki/Shell_script “Shell script”) described in this topic is installed, by default, at <Exchange Installation Path >v14 ServerScripts. ”
C:Program FilesMicrosoftExchange ServerV14Scripts
Use the MoveAllReplicas.ps1 script to move all public folder content from one server to another server
You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the “Public folders” entry in the (http://technet.microsoft.com/en-us/library/dd638132\(v=exchg.140\).aspx) topic. To move all public folders in a public folder database on one server to a public folder database on another server, 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 (http://technology.bauzas.com/microsoft/servers/exchange/exchange-2010/scripts-for-managing-public-folders-in-the-exchange-management-shell/ “Scripts for Managing Public Folders in the Exchange Management Shell”) This example moves all public folder content from Server01 to Server02.
.MoveAllReplicas.ps1 -Server Server01 -NewServer Server02
Use the ReplaceReplicaOnPFRecursive.ps1 script to move replicas in a public folder subtree to another server
You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the “Public folders” entry in the (http://technet.microsoft.com/en-us/library/dd638132\(v=exchg.140\).aspx) topic. 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 within that 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 (http://technet.microsoft.com/en-us/library/aa997966\(v=exchg.140\).aspx). This example moves the public folder replica Legal and all the folders within that hierarchy from Server01 to Server02.
.ReplaceReplicaOnPFRecursive.ps1 -TopPublicFolder “Legal” -ServerToAdd Server02 -ServerToRemove Server0
Of course there is the easier way to just use the “Public Folder (http://en.wikipedia.org/wiki/Microsoft_Management_Console “Microsoft Management Console”)” found under the Toolbox in your Exchange Management Console UI, lol.
On a side note: I did perform all the above and ended up with a replica on my new server but I was never able to get rid of my old public db. I ended up deleting the public folder so I could remove the database but because of the replica it did the same to my new server. I restored the public folder on the new server but figuring that took a good hour so be careful.
(http://img.zemanta.com/zemified_h.png?x-id=5e7d9093-f542-4e5f-9727-21969439d5eb)](http://www.zemanta.com/?px “Enhanced by Zemanta”)
Summary
You’ve successfully learned move folder replicas to another public folder database. If you run into any issues, double-check the prerequisites and ensure your Exchange 2010 environment is properly configured.