Ok we have a DAG of two members and two dedicated public folder servers.
The first node of the DAG got a public folder database installed as exchange dedected the Exchange 2003 environment (was installed fisrt). Now we have created our dedicated public folder servers and database, and need to remove the defaultly created public folder database created on the first node.
We have checked the Replication list in ESM (Exch2003) and removed the default Exchange 2010 database from the replication list where vissable. Then we wanted to run the RemoveReplicaFromPFrecursive.ps1, to remove all replicas to that server in order to remove that server.
Cmdlet used: RemoveReplicaFromPFrecursive.ps1 -TopPublicFolder "\" -ServerToRemove "ServerName"
When we run the commandlet nothing happens, it just ends without an error. Yet we are still unable to remove that Public Folder database as it still in a Replication list.
When I try to find out where, by running following command:
Get-PublicFolder -recurse -resultsize Unlimited | ? {$_.Replicas -Like "ServerName*"} | Ft Name, replicas
The command ends without any result, in which it cannot find any replicas for that Server. As it is production i am verry reluctant to remove the Public Folder database using Adsiedit.
Answers provided are coming from personal experience, and come with no warranty of success. I as everybody else do make mistakes.