Public folder migration from Exchange 2013 to Exchange online.

Copper Contributor

We need to move our PFs to Exchange online. We are currently in 2012 R2 with Exchange 2013.

We are following:

The issue starts at step 5 wherein we are supposed to use the script Sync-ModernMailPublicFolders.ps1

This script has the Exchange Online V2 module included. This module cannot be installed unless we have WMF 5.1 which as per MS cannot be installed on a server running Exchange 2013

Now, we have also tried to install the older version of EXO V2: 2.0.3 but that also returns an error when we try to connect.

“Index was out of range. Must be non-negative and less than the size of the collection.”

Who else has done a migration from 2012/Exchange 2013 and faced the same issue – and how was it resolved?

3 Replies

Quick fix? Install a windows 2016 server with exchange 2016 ... use it as the connection with the cmdlets you need.

When everything is migrated cleanup the 2013 and use the new exchange server as remote management. Ofcourse you can do also with exchange 2019.

If you dont have a license you still can use this setup for 180 days.


dont forget to quick configure the spn to exchange 2013 back or just configure all the important stuff on the new exchange. 

Use a managent server with the Exchange management tools, install EXOv2 (or v3) and run the scripts to sync those MEPF from there a.o. No need to add another Exchange server to the infrastructure, with all the additional side-effects. You can always do that post-migration.
Thank you Michel. Correct me if I am wrong.

We cannot install Exchange server 2013 management tools because that is not supported on server 2016.

And on 2016 server, we cannot install EX 2016 because that would mean a schema upgrade. Is that correct?