Unexpected error mail-enabling public folder "foldername": Shell: exception while executing PowerShell. Cause: Shell: exception while executing PowerShell.
This error occurs when:
- O365 truncates the public folder name to fit mail enabled Name and Alias requirements. If the source public folder name is longer than 64 characters (including spaces), and the 64th character is represented by a space, O365 will treat it like a trailing white space and not allow it to be mail enabled.
To resolve this issue, rename the source public folder so that the name is no longer than 64 characters.
- An attempt to mail-enable a Public Folder is made with an account that is not part of the "Organization Management" role group.
To resolve this issue, follow Microsoft's directions to mail-enable or disable a public folder, or run the command listed below in a remote PowerShell session connected to the Destination tenant. This command adds the migration account to the Organization Management role group. User is the Destination migration account being used:
Add-RoleGroupMember -Identity "Organization Management" -Member "<user email>"
Add-RoleGroupMember -Identity "Organization Management" -Member "email@example.com"