Hello,
We are using adaxes with a M365 hybrid environment and right now we have to manually create a remote mailbox on prem after user creation.
We have the M365 Tenant setup so that a user is automatically added in M365 and licensed. They also already have their M365 mailbox created and the address user@mydomain.onmicrosoft.com
Is there a way to create a custome command to auto-create the on prem remote mailbox.
This is the current command we are using in exchange shell to accomplish this manually
Enable-MailUser -Identity "user@mydomain.com" –ExternalEmailAddress "user@mydomain.onmicrosoft.com"
Enable-RemoteMailbox "user"