Поделиться через


Microsoft Exchange 2013 Public Folders Migration Scripts for Office 365

Overview

Use these scripts to migrate public folders from Exchange 2010 or 2007 to Exchange 2013. In order to migrate Exchange 2010 or 2007 Public Folders to Exchange 2013 on O365, we need to analyze the existing Public Folder hierarchy for size to figure out the number of Public Folder mailboxes that are required on O365 and the distribution of folders across mailboxes.

Download from Source

 

Script name - Export-PublicFolderStatistics.ps1
Description - This script needs to be run by a local admin on the legacy Exchange server.
Run the Export-PublicFolderStatistics.ps1 script to create the folder name-to-folder size mapping file.
The output CSV file will contain two columns: FolderName and FolderSize. The values for the FolderSize column will be in displayed bytes. For example, \PublicFolder01,10000.
Usage -  .\Export-PublicFolderStatistics.ps1 [Folder to size map path] [FQDN of source server]
NOTE - Before running the script, copy the Export-PublicFolderStatistics.strings.psd1 file in the same directory as the Export-PublicFolderStatistics.ps1 script.
• FQDN of source server equals the fully qualified domain name of the Mailbox server where the public folder hierarchy is hosted.
• Folder to size map path equals the file name and path on a network shared folder where you want the CSV 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 - PublicFolderToMailboxMapGenerator.ps1
Description - This script needs to be run by a local admin on the legacy Exchange server.
Run the PublicFolderToMailboxMapGenerator.ps1 script to create the public folder-to-mailbox mapping file. This file is used to calculate the correct number of public folder mailboxes required in Exchange Online.
Usage -  .\PublicFolderToMailboxMapGenerator.ps1 [Maximum mailbox size in bytes] [Folder to size map path] [Folder to mailbox map path]
NOTE - Before running the script, copy the PublicFolderToMailboxMapGenerator.strings.psd1 file in the same directory as the PublicFolderToMailboxMapGenerator.ps1 script.
• Maximum mailbox size in bytes equals the maximum size you want to set for the new public folder mailboxes. In Exchange Online, the maximum size of public folder mailboxes is 25 GB.
• Folder to size map path equals the file path of the CSV file you created when running the Export-PublicFolderStatistics.ps1 script.
• Folder To mailbox map path equals the file name and path of the folder-to-mailbox csv file that you’ll create with this step. If you specify only the file name, the file will be generated in the current PowerShell directory on the local computer.

Comments

  • Anonymous
    January 01, 2003
    Thanks for the tip Jamie! it is now corrected.
  • Anonymous
    January 27, 2014
    Usage is .Export-PublicFolderStatistics.ps1 [Folder to size map path] [FQDN of source server] not .Export-PublicFolderStatistics.ps1 [FQDN of source server] [Folder to size map path]