Setup
...
Troubleshooting
Other Mailbox Errors
2 min
the term 'add mailboxpermission" is not recognized as a name of a cmdlet, function, script file, or executable program this error occurred during the postcreatescript of create mailbox task this was identified as a bug in determining the correct exchange server to execute the cmdlet against it would always route to office365 exchange server, when we wanted to route it to a specific exchangeserver with the appropriate pscredentials parameter we worked around it by copying the pscredentials from the correct exchange server resource to the office365 exchange server resource this issue doesn't apply to single tenant environments pr#35417 has been raised to address this issue another cause of this issue could be exchangeserver setup, ensure your office365 exchange servers under //resources/exchange servers have identityprovider parameters that point at the appropriate identity provider, e g =//resources/active directory/external directories/azure