There are more than 100 public folder mailboxes on one Exchange Server 2013. It slows the system down, and the number PF mailboxes needs to be reduced.
According to the new MS policy, there should be not more than 100 public folder mailboxes on one Exchange Server 2013.
The attched script allows to move all public folders residing in the specified PF mailbox to another. The process of execution should be manually reviewed on the Exchange side. After the script execution ends, the empty PF mailbox can be deleted on the Exchange server. The script should be run on the Management Node.