Forum Discussion

OSuperfly's avatar
OSuperfly
Copper Contributor
Mar 17, 2021

Error while "Batch migration to migrate Exchange Server public folders to Exchange Online"

Hi there,

I'm currently in the process migrating OnPrem Exchange 2013 public folders to M365.

 

My problem is, that the PowerShell script " Sync-ModernMailPublicFolders.ps1" provided by Microsoft throws the following errors:

 

(see attached screenshot)

I'm sorry it's in german language, I'll try to translate that):

 

RemoveMailEnabledPublicFolder : The name "Remove-EXOSyncMailPublicFolder" was not recognized as the name of a cmdlet, function, script file, or executable program. Check the spelling of the name or whether the path is correct (if included) and try again.

 

The environment consists of 3 servers, the Hybrid ist 2016 CU18. All have KB5000871:

 

I also tried to execute the script on the other 2 servers, without result.

 

Any idea?

Oliver

  • OSuperfly's avatar
    OSuperfly
    Copper Contributor
    I've possibly found the problem, but I need help from Microsoft:

    It seems that the required EXO Powershell commands aro no longer available in Exchnage Online Powershell!

    The provided PowerShell script "Sync-ModernMailPublicFolders.ps1" by Microsoft referres to the EXO commands:

    - Remove-EXOSyncMailPublicFolder
    - New-EXOSyncMailPublicFolder
    - Set-EXOMailPublicFolder

    Uhmmm Microsoft?

Resources