Migrate public folder Exchange 2010 to Exchange 2016

img 5c29c0f2def69 img 5c29c0f2def69

Hello guys, In this post I am going to show you how to migrate Migrate public folder Exchange 2010 to Exchange 2016 which including step by step based Microsoft best practice, this post began due to
the last project that I’ve done of Exchange servers and as part of the project the public folder is one of the steps we should perform in order to complete the project, thereby I would like to share the steps I did over there in this post.

First of all, we have to download the following files in Exchange 2010 and Exchange 2016:
Public Folders Migration Scripts:

Prepare the migration- Follow my steps:
Let’s get some information about existing or non-existing public folders.

Get-PublicFolder -Recurse | Export-CliXML C:\PFMigration\Legacy_PFStructure.xml

Make sure there is no PF migration job that created history:

Get-OrganizationConfig | Format-List PublicFoldersLockedforMigration, PublicFolderMigrationComplete

Run the following command:

Set-OrganizationConfig -PublicFoldersLockedforMigration $false -PublicFolderMigrationComplete $false

Go to Exchange 2016 and make sure there are no public folders migration requests

Get-PublicFolderMigrationRequest | Get-PublicFolderMigrationRequestStatistics -IncludeReport | Format-List

Remove any existing PF request:

Get-PublicFolderMigrationRequest | Remove-PublicFolderMigrationRequest
Get-Mailbox -PublicFolder
Get-Mailbox -PublicFolder | Where {$_.IsRootPublicFolderMailbox -eq $false} | Remove-Mailbox -PublicFolder -Force -Confirm:$false
Get-Mailbox -PublicFolder | Remove-Mailbox -PublicFolder -Force -Confirm:$false

Go back to Exchange 2010 and start with the migration process, it generates the “name-to-folder

.\Export-PublicFolderStatistics.ps1 <Folder to size map path> <FQDN of source server>:

.\PublicFolderToMailboxMapGenerator.ps1 <Maximum mailbox size in bytes> <Folder to size map path> <Folder to mailbox map path>:

Copy the file “Foldertomailboxmap.csv” to script folder that you downloaded in exchange 2016 (Same like 2010).

Go to Exchange 2016 and open Exchange Powershell, then, run the following command:

.\Create-PublicFolderMailboxesForMigration.ps1 -FolderMappingCsv Foldertomailboxmap.csv -EstimatedNumberOfConcurrentUsers:<estimate>

Continue with Y:


Then, run the following command which starts the batch migration job:

New-MigrationBatch -Name PFMigration -SourcePublicFolderDatabase (Get-PublicFolderDatabase -Server <Source server name>) -CSVData (Get-Content <Folder to mailbox map path> -Encoding Byte) -NotificationEmails <email addresses for migration notifications>

You should start the batch manually by clicking on “Play” icon or running below command:

Start-MigrationBatch "PFMigration"


Once the PF is “Synced” we can like “Logoff” users from the previous public folder by running the following command on Exchange 2010:

Set-OrganizationConfig -PublicFoldersLockedForMigration:$true
Set-OrganizationConfig -PublicFolderMigrationComplete:$true

Go back to Exchange 2016 Powershell windows and finalize the public folder migration using the following command:

Set-OrganizationConfig -PublicFoldersEnabled Remote

Complete the batch post it’s synced:

Running the final synchronization between public folders.

If you can’t complete this from here, try to dismount the PF in the source and mount it again.
# Be patient it takes time

My public folder size was 7GB and it lasted for an hour just for completing it:

Then delete the batch.
Once you made sure that everything is playing and running properly you are allowed to remove the PF DB from the old Exchange server, please re-check twice every folder, accessing office version, OWA access, check out the hierarchy, Check permissions, Create and delete public folders, create content to and delete content from a public folder.

And the last command we have to run in Exchange 2016 is:

Set-OrganizationConfig -PublicFoldersEnabled Local

And now you should wait a couple of minutes and then you will be able to see the public folder in the outlook, it should 5-10 minutes do not get stress.
For any question please leave a comment.


  1. Adi 7 months ago

    Hi Meir
    First of all it was pleasure to read such clear and understandable post.

    I have one question if you don’t mind

    I’m curious about the part of exporting the PF Structure, What should i do with this xml file?

    When i ran the command for create PFMailboxes It’s not showing all the PF Structure in the CSV file.

    Am I doing something wrong?

    BTW, I’m From Israel too 🙂

    • Meir Peleg 7 months ago

      Hi Adi, thanks for kinds words, appreciate it.
      The XML is just for structures viewing.

  2. Prashant N 5 months ago


    I am planning migrate from Exchange 2010 SP3 RU29 to Exchange 2016. I dont have any user / admin created Public Folders. The way I checked this is MMC-> Add/Remove Snap-in-> Select “Public Folder Management Console Snap-in”, Click on Add -> Right Click on the Public folders Icon in the MMC and Click on Connect to Server ->
    I have no content / list in the “Default Public Folders”
    The “System Public Folders” has listing of : “EFORMS REGISTRY” , “OFFLINE ADDRESS BOOK” and “SCHEDULE+ FREE BUSY”

    Should these be migrated OR not?

Leave a Comment

Your email address will not be published.

Comment moderation is enabled. Your comment may take some time to appear.

In the news
Load More