Microsoft Download Center Archive

Microsoft Exchange 2013 Public Folders Directory Sync Support Scripts

  • Published:
  • Version: 15.00.1017.003
  • Category: SDK
  • Language: English

Scripts to enable creation of public folder related objects in the O365 Active Directory and synchronization of public folder related Active Directory objects between on-premise and O365 directories.

  • Use this scripts if you need to do one of the following - - Initial creation of mail enabled public folder objects in the destination Active Directory for public folder migration from Exchange 2007 or 2010 to Exchange 2013- Synchronization of mail enabled public folder objects from cloud to on-premise Active Directory- Synchronization of mail enabled public folder objects from on-premise to cloud Active Directory- Synchronization of public folder mailbox objects from cloud to on-premise Active Directory

Files

Status: Deleted

This download is no longer available on microsoft.com. The downloads below are archives provided by the Internet Archive Wayback Machine from the Microsoft Download Center prior to August 2020.

FileSHA1 HashSize
DirSync/Import-MailPublicFolders.ps1685ab027646bc08128a4af9fe7722c637ba1339a11 KB
DirSync/Import-PublicFolderMailboxes.ps1257d23bdb9e62b5098aa788f276698798ca76fa010 KB
DirSync/MailPublicFolders.strings.psd140f007b3c96b6d02ff61e4d3d4c612b9a20970111 KB
Export-MailPublicFoldersForMigration.ps14b8201ab4562b271ed044627061e6cb23a1d30ab3 KB
Import-MailPublicFoldersForMigration.ps1c2a03207ce74621eadbd17cadd94abc13e3df7853 KB

System Requirements

Operating Systems: Windows Server 2003 Service Pack 2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2008 R2 SP1, Windows Server 2008 Service Pack 2

    • Review the Technical Documentation for detailed instructions on performing Public Folder Migration
    • Review the Technical Documentation for detailed instructions on configuring Public Folder cross-premise access
    • Exchange Server to 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

  • For creating mail public folder objects in the destination Active Directory during migration, use the Export-MailPublicFoldersForMigration.ps1 and Import-MailPublicFoldersForMigration.ps1 scripts. For synchronizing objects for cross-premise public folder access, we recommend running these scripts every 30 minutes as part of a scheduled task. For detailed instructions on configuring Public Folder cross-premise access go to Technical Documentation------------------------------------------------------------------------------------------------------------------------Script name - Export-MailPublicFoldersForMigration.ps1Description - This script needs to be run by a local admin on the legacy (Exchange 2007 or 2010) Exchange server. Run the Export-MailPublicFoldersForMigration.ps1 to create the XML file containing the list of mail-enabled public folders from on-premise Active Directory.Usage - NOTE - Before running the script, copy the MailPublicFolders.strings.psd1 file in the same directory as the Export-MailPublicFoldersForMigration.ps1 script..\Export-MailPublicFoldersForMigration.ps1 [path to mail public folder xml]• Path to mail public folder xml equals the file name and path on a network shared folder where you want the XML file saved. If you specify only the file name, the file will be generated in the current PowerShell directory on the local computer.------------------------------------------------------------------------------------------------------------------------Script name - Import-MailPublicFoldersForMigration.ps1Description - This script needs to be run remotely against the Exchange Online server (Exchange 2013). Run the Import-MailPublicFoldersForMigration.ps1 to import the list of mail-enabled public folders from on-premise Active Directory in the the XML file generated by the Export-MailPublicFoldersForMigration.ps1.Usage - NOTE - Before running the script, copy the MailPublicFolders.strings.psd1 file in the same directory as the Import-MailPublicFoldersForMigration.ps1 script..\Import-MailPublicFoldersForMigration.ps1 [path to mail public folder xml]• Path to mail public folder XML equals the file name and path of the mail-enabled public folder XML file generated by the Export-MailPublicFoldersForMigration.ps1 script.------------------------------------------------------------------------------------------------------------------------Script name - Import-MailPublicFolders.ps1Description - This script needs to be run against the remote Exchange 2013 server to import mail public folder objects to the local Active Directory. Use this script for configuring cross-premise public folder access between two Exchange 2013 environments.Usage - Import-MailPublicFolders.ps1 -Credential [credential] -ToCloud• Credentials parameter specifies the tenant admin credentials. If running this script as part of a scheduled task, store these credentials in a variable and pass is to the script as follows Import-MailPublicFolders.ps1 -Credential $credentialVar -ToCloud• ToCloud is an optional parameter. Specify this only if your public folders are hosted on-premise and are configured for cross-premise access by cloud users.------------------------------------------------------------------------------------------------------------------------Script name - Import-PublicFolderMailboxes.ps1Description - This script needs to be run on the on-premise Exchange server to import public folder mailbox objects from cloud to the on-premise Active Directory. Use this script for configuring cross-premise public folder access between two Exchange 2013 environments or between Exchange 2007/2010 on-premise and Exchange 2013 cloud environment.Usage - Import-PublicFolderMailboxes.ps1 -ConnectionUri [cloud url] -Credential [credential]• ConnectionUri parameter is the Connection Uri to the O365 server. In most cases, the value for this will be https://outlook.office365.com/powerShell-liveID• Credentials parameter specifies the tenant admin credentials. If running this script as part of a scheduled task, store these credentials in a variable and pass is to the script as follows Import-PublicFolderMailboxes.ps1 -ConnectionUri [cloud url] -Credential $credentialVar