How To Replicate Public Folders Recursively in Exchange 2007 / 2010

Thanks to Clint Boessen's Blog article, I saved quite a bit of time in configuring Public Folders to replicate from the Exchange 2003 environment to the Exchange 2010 Public Folder Databases.  Microsoft has a handy powershell script just for this purpose.  You can replicate an entire folder heirachry to another server database.

Command Syntax:

C:\path\AddReplicaToPFRecursive.ps1' -TopPublicFolder "\" -ServerToAdd Servername

Quick note that you will receive an error about the "top level" which cannot be replicated which is to be expected.  Hopefully MS will design a better DAG / Replication for Public Folders in the future.