9.4. Forcing Public Folder Replication
Problem
You've made changes to a public folder and you want those changes immediately replicated.
Solution
Using a graphical user interface
To force replication of a folder, do the following:
Launch the Exchange System Manager (Exchange System Manager.msc).
In the left pane, expand the appropriate Administrative Groups container; this should be the administrative group that contains the server that contains the replica whose contents you want to send. This will typically be the most up-to-date replica.
Expand the Folders and Public Folders nodes.
Right-click the folder you want and select Send Contents.
When the Send Contents dialog box appears, select the source and target servers and fill in the number of days for which you want changes sent.
Click OK.
When the confirmation dialog box appears, click Yes.
Using VBScript
' This code sends the contents of all public folders on the specified
' server to any other servers that have those folders in their replica list.
' ------ SCRIPT CONFIGURATION ------
strComputerName = "<serverName>" ' ------ END CONFIGURATION --------- strE2K3WMIQuery = "winmgmts://" & strComputerName &_ "/root/MicrosoftExchangeV2" Set folderList = GetObject(strE2K3WMIQuery).InstancesOf("Exchange_PublicFolder") ' Get the replica count. For any folder that has multiple replicas, ' force the replica *on this server* to request any changes that it ' knows of but hasn't gotten. For each Exchange_PublicFolder in folderList replicaCount ...