Use this script if you need to do one of the following -
- Synchronization of mail enabled public folder objects from Exchange Online Active Directory to on-premise
This script syncs mail-enabled public folder objects from O365 into the local Exchange deployment . It uses O365 as master to determine what changes need to be applied to the local Exchange deployment. The script will create, update or delete mail-enabled public folder objects on the local Exchange deployment based on what exists in O365 Active Directory.
The script must be executed from local Exchange Management Shell window providing access to manupulate the objects in the local Exchange deployment. Then, using the credentials provided the script will create a session against Exchange Online, which will be used to read O365 Active Directory objects remotely.
NOTE - Before running the script, copy the SyncMailPublicFoldersCloudToOnprem.strings.psd1 file in the same directory as the Sync-MailPublicFoldersCloudToOnprem.ps1 script file.