Trace Id is missing

Unlock your potential with Microsoft Copilot

Get things done faster and unleash your creativity with the power of AI anywhere you go.
Microsoft Copilot app being utilized to generate pictures of a singing dog, assisting to identify a flower, and helping to generate an email to congratulate a coworker on a promotion.

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.

Important! Selecting a language below will dynamically change the complete page content to that language.

  • Version:

    15.01.0493.000

    Date Published:

    5/29/2023

    File Name:

    ImportPublicFolderMailboxes.strings.psd1

    Import-PublicFolderMailboxes.ps1

    SyncMailPublicFoldersCloudToOnprem.strings.psd1

    Sync-MailPublicFoldersCloudToOnprem.ps1

    File Size:

    2.6 KB

    39.9 KB

    4.5 KB

    35.8 KB

      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.
  • Supported Operating Systems

    Windows Server 2012 Datacenter, Windows Server 2012 R2, Windows Server 2008 R2 Datacenter, Windows Server 2008 R2 SP1, Windows Server 2008 R2, Windows Server 2008 R2 Enterprise, Windows Server 2012 Essentials, Windows Server 2008 R2 Standard

    • 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
    • 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".
Follow Microsoft