Remove Public Folder Replication in a DAG

Copper Contributor

Hi, we have 2 servers (srv1 and srv2) in da DAG. Now we want to use only srv1 without DAG. To do this i have also to uninstall exchange on srv2. Before uninstalling i have to delete the public folder database on srv2. Up to now there is a replication btw both servers. 


So my question is: How to remove the replication and delete the public folder on srv2 without loosing data at srv1 ?


I tried to delete the replication manually on one test public folder. But if i delete the folder at srv2, than the folder is also delete on srv1.


So how can i manage this in a save way...


Best Regards


1 Reply

You must not remove the folder, but you need to remove the replicas from srv2, provided everything is replicated to srv1. Check which PF's are hosted only on srv2 (using its DB name):
Get-PublicFolder -Recurse | Where {$_.Replicas -eq 'SRV2 DB'} | Select Name, ParentPath, Replicas
To move all replicas hosted on srv2 to srv1, you can use a standard provided script, located in $exscripts\Scripts, e.g.
.\MoveAllReplicas.ps1 -Server srv2 -NewServer srv1
Wait until all replicas have been succesfull moved to srv1. After that, you can remove the public folder DB from srv2, after you have done some checks, such as checking if all mailbox databases are pointing to the PF database on srv1:
Get-MailboxDatabase | select Name, publicFolderDatabase
OAB generation is performed by srv1:
Get-OfflineAddressBook -Identity 'Default Offline Address Book'