Skip to main content

Migrate public folder Exchange 2010 to Exchange 2016

Source link: https://pelegit.co.il/migrate-public-folder-exchange-2010-to-exchange-2016/ 

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:
https://www.microsoft.com/en-us/download/details.aspx?id=38407

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.

Comments

Popular posts from this blog

[RAID] SWITCH FROM AHCI TO RAID WITH INTEL C600 CONTROLLER

I personally have used other ways to do this. Manipulating some registry settings in combination with a safe boot before booting normally does the trick as well. This works with both SATA SSD and M.2 NVMe drives and it enables relatively fast switching between back and forth between AHCI and RAID. I have described this method below.  I have also tried the same process used to switch from RAD to AHCI and that works as well. Switch to safe boot Reboot into BIOS Change from AHCI to RAID in the BIOS Boot into safe mode Turn off safe mode and reboot normally again Nothing else and that also did the trick, just like with moving from RAID to AHCI.  So the link above and my step by step below is here for completeness. You have options in case one of them doesn’t work! Step by step AHCI to RAID registry method This procedure I describe below works on Windows 10 1803/1809 and has been tested on Dell Latitude E6220 an XPS 13 9360. Editing the registry is...

[Hyper-V] - Lỗi không boot vào được sau khi convert máy vật lý sang máy ảo

XỬ LÝ LỖI KHÔNG BOOT ĐƯỢC VÀO MÁY ẢO SAU KHI CONVERT TỪ MÁY VẬT LÝ BẰNG DISK2VHD Sau khi convert server vật lý sang file VHD để import vào Hyper thì khi start máy ảo lên màn hình máy ảo chỉ nhấp nháy con trỏ chuột trên màn hình đen (blinking cursor) NGUYÊN NHÂN Do máy vật lý sử dụng ổ đĩa cài OS được format theo chuẩn GPT (thay vì MBR như truyền thống, tham khảo GPT và MBR ) XỬ LÝ Bước 1: chuyển ổ GPT thành MBR Copy file VHD của ổ đĩa chứa OS về 1 máy tính Windows 8 trở lên Trên máy Windows 8+ click phải chuột lên file VHD vừa copy, chọn lệnh Mount . Lúc này dùng 1 phần mềm miễn phí (vd: Mini Partition Wizard ) để convert ổ đĩa vừa mount từ GPT  -> MBR Sau đó Delete phần Partition dư ra ở phần đầu ổ đĩa được mount (khoảng vài trăm MB) Set " Active " cho ổ đĩa này để là ổ đĩa boot OS Nhấn Apply để phần mềm thực thi tác vụ Sau khi phần mềm làm xong, tắt phần mềm Mini Partition Wizard, vào My Computer chọn eject ổ đĩa đang mount . Copy file VHD vừa đư...

LỖI "The provided partition "Migration...." is not a valid Migration mailbox"

  Solution for a valid Migration mailbox could not be found for this organization To address this issue, we will: Delete Migration mailbox in Active Directory Users and Computers Recreate Migration mailbox with /PrepareAD command Enable Migration mailbox with Exchange Management Shell 1. Delete Migration mailbox in Active Directory Users and Computers We do see the mailbox in ADUC, let’s remove it. If you don’t see it, search for it. It might be in a different container than the default container  Users . We can always verify in Exchange Management Shell if the Migration mailbox is present. If it shows up in the output, it means that it’s present and enabled. The output should be empty. [PS] C:\> Set - ADServerSettings - ViewEntireForest $true ; Get - Mailbox - Identity "Migration.8f3e7716-2011-43e4-96b1-aba62d229136" - Arbitration | Format-Table Name , ServerName , Database , AdminDisplayVersion , ProhibitSendQuota Copy 2. Recreate Migration mailbox with /Prepare...