Microsoft Download Center Archive
Mail-enabled Public Folders - directory sync from EXO to On-Prem script. |
Script to syncronize mail public folder objects from EXO AD to on-premise for hybrid access.
- 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.
Files
Status: LiveThis download is still available on microsoft.com. The downloads below will come directly from the Microsoft Download Center. |
File | Size |
---|---|
Import-PublicFolderMailboxes.ps1 SHA1: e80a43c17cdc197b3559af11b053ada97f81dbfa | 3 KB |
ImportPublicFolderMailboxes.strings.psd1 SHA1: 6662c732b9f73084338021f25b30c9f119362870 | 1 KB |
Sync-MailPublicFoldersCloudToOnprem.ps1 SHA1: 9388376dec2ff9b52905ef79c5d0f677862805d1 | 4 KB |
SyncMailPublicFoldersCloudToOnprem.strings.psd1 SHA1: ca97c3bbd51d7b1fa287a5e4c887bda27fe0a777 | 2 KB |
File sizes and hashes are retrieved from the Wayback Machine’s indexes. They may not match the latest versions of files hosted on Microsoft servers.
System Requirements
Operating Systems: Windows Server 2008 R2, Windows Server 2008 R2 Datacenter, Windows Server 2008 R2 Enterprise, Windows Server 2008 R2 SP1, Windows Server 2008 R2 Standard, Windows Server 2012 Datacenter, Windows Server 2012 Essentials, Windows Server 2012 R2
- Review the Technical Documentation for detailed instructions on configuring Public Folder cross-premise access
- Exchange Server should be installed on the server where the script will be run. See Instructions for details on Exchange Server versions.
- PowerShell 2.0 or later
Installation Instructions
- Script usage examples:
Example 1: .\Sync-MailPublicFoldersCloudToOnprem.ps1 -Credential (Get-Credential) -CsvSummaryFile:sync_summary.csv
This example shows how to sync mail-public folders from Exchange Online to your local deployment. Note that the script outputs a CSV file listing all operations executed, and possibly errors encountered, during sync.
Example 2: .\Sync-MailPublicFoldersCloudToOnprem.ps1 -Credential (Get-Credential) -CsvSummaryFile:sync_summary.csv -ConnectionUri:"https://partner.outlook.cn/PowerShell"
This example shows how to use the script with a different URI to connect to Exchange Online and sync mail-public folders to your local deployment.- Required parameters:
- Credential - Exchange Online user name and password
- CsvSummaryFile - The file path where sync operations and errors will be logged in a CSV format
- Optional parameters:
- ConnectionUri - The Exchange Online remote PowerShell connection uri. If you are an Office 365 operated by 21Vianet customer in China, use "https://partner.outlook.cn/PowerShell".